126 Posted Topics

Member Avatar for Roshan92

You can use a switch statement. [Click Here](http://msdn.microsoft.com/en-us/library/06tc147t%28v=vs.90%29.aspx)

Member Avatar for Fenrir()
0
262
Member Avatar for aplh_ucsc

try inserting a breakpoint on that line. Breakpoint-> if (textboxusername.Text == Uname && textboxpwd.Text == PWord) Then check the value of textboxusername.Text and Uname by right clicking and adding a quick watch. You can then copy the two values over to something like notepad and see if there are any …

Member Avatar for aplh_ucsc
0
240
Member Avatar for Surendrasinh

[Click Here](http://social.msdn.microsoft.com/Forums/vstudio/en-US/50ecbcf2-d2d3-4f21-9775-5b8be1bd4346/how-to-terminate-a-process-in-c) You can try something like this

Member Avatar for Surendrasinh
0
231
Member Avatar for bullet_1

Here's a simple example that populates the combobox with all the file extensions in your folder. string[] Files = System.IO.Directory.GetFiles(folder); foreach (string file in Files) { FileInfo File = new FileInfo(file); if (!comboBox1.Items.Contains(File.Extension)) { comboBox1.Items.Add(File.Extension); } } You should be able to take it from here.

Member Avatar for Fenrir()
0
187
Member Avatar for bullet_1

using (System.IO.StreamWriter sw = new System.IO.StreamWriter("C:\\Logfile.txt", true)) { sw.Write("\r\nLog File : "); foreach (string file in System.IO.Directory.GetFiles(@"C:\\files")) { sw.WriteLine("File Name {0}", file); } sw.WriteLine("{0} {1}", DateTime.Now.ToLongTimeString(), DateTime.Now.ToLongDateString()); } To get the format you need you have to get the file names within the loop and do the additional editing outside …

Member Avatar for bullet_1
0
190
Member Avatar for lalas9633

I used a FlowLayoutPanel to accomplish this some time back. foreach (KeyValuePair<string, int> pair in dictionary) { //Create the picturebox PictureBox PicBox = new PictureBox(); PicBox.Image = Image.FromFile(pair.Key); //Filename PicBox.Dock = DockStyle.Bottom; PicBox.SizeMode = PictureBoxSizeMode.Zoom; PicBox.Height = 100; PicBox.Width = 100; flowLayoutPanel1.Controls.Add(PicBox); } Hope this helps

Member Avatar for Fenrir()
0
166
Member Avatar for spowel4

I agree.. Make sure you're focussed on the correct datagridview. If this is the case just do a simple test by removing the grid on tab 1 and tab 3 and check if it adds to the grid on tab 2. Crude but effective.

Member Avatar for spowel4
0
138
Member Avatar for Fenrir()

I have created a method that changes individual rows back color based on certain criteria within the grid. I have noticed that when clicking the column headers that the grid resets the formatted rows. I would like to know what the best solution would be without impacting performance.

Member Avatar for ddanbe
0
300
Member Avatar for nthabiJacq

Seems you copied that directly from your project summary :/ How about actually trying it first then asking for help..

Member Avatar for nthabiJacq
-1
116
Member Avatar for Fenrir()

I have a screen with a Datagridview. This is linked to a table from my access database. On this screen there are also numerous text boxes that are bound to columns in the table. The problem i am having is that when browsing the grid values seem to vanish and …

Member Avatar for ChrisHunter
0
79
Member Avatar for divyakrishnan

I don't see why this should fail if your query is as below [CODE]SELECT tbl_employee.E_Name, SUM(tbl_Salary.Amt) AS [Amount], tbl_Dpt.DeptName FROM tbl_employee INNER JOIN tbl_Salary on tbl_employee.eid = tbl_Salary.eid INNER JOIN tbl_Dpt on tbl_Salary.eid = tbl_Dpt.eid WHERE tbl_employee.eid ='E101' GROUP BY tbl_employee.E_Name, bl_Dpt.DeptName [/CODE] if you take out the SUM does …

Member Avatar for adam_k
0
1K
Member Avatar for Fireprufe15

You would ideally need to encrypt the password and store it in a constant place. For instance a database. You can even try storing it in the registry. As for problem 2. What is the code behind the button? Should be [CODE]Application.Terminate [/CODE] as opposed to [CODE]ModalResult := mrCancel;[/CODE]

Member Avatar for pritaeas
0
165
Member Avatar for siaswar

After creating the procedure just Execute it to return everything from "book". [CODE]EXEC booklist[/CODE]

Member Avatar for ChhayaDeshmukh
0
137
Member Avatar for aplee

Maybe something along these lines rather? [CODE] SELECT (CASE WHEN COALESCE((EventSummary.[Event Information] - EventSummary.[Event Status]),0) = 0 THEN 'ACTIVE' ELSE (EventSummary.[Event Information] - EventSummary.[Event Status]) END) AS [Event Summary][/CODE]

Member Avatar for aplee
0
667
Member Avatar for orville
Member Avatar for samee1985
0
90
Member Avatar for zebnoon

Just open SQL and right click on the "Databases" node in the Object explorer -> New Database. when the new database form pops up simply type a database name and click okay.

Member Avatar for ChrisHunter
0
153
Member Avatar for yousafc#

try this [CODE]for (int i = 0; i <= 5; i++) { textBox1.Text = i.ToString(); textBox2.Text = TextBox1.Text; }[/CODE]

Member Avatar for ddanbe
0
141
Member Avatar for zachattack05

It's been annoying me ever since i started using SQL. Check out this link : [URL="http://www.west-wind.com/weblog/posts/2008/Jan/25/An-easier-Table-Design-View-in-Sql-Server-Management-Studio"]http://www.west-wind.com/weblog/posts/2008/Jan/25/An-easier-Table-Design-View-in-Sql-Server-Management-Studio[/URL] doesn't seem to be any way to customize the default table designer.

Member Avatar for zachattack05
0
109
Member Avatar for kapojian

Why would they need to update their account everyday? It would be best to use a seperate table yes. Maybe use a UNIQUE Constraint on fields like Email and Username if you aren't doing that already.

Member Avatar for Fenrir()
0
107
Member Avatar for simagen
Member Avatar for virusisfound

[CODE]SqlConnection cn = new SqlConnecton(); cn.ConnectionString = "Data Source=WELL\\SQLEXPRESS;Initial Catalog=master;Integrated Security=True"; string s; s = textbox1.Text; ? string q = "ALTER TABLE abc add '"+textbox1.Text+"' Varchar(20)"; //string q = "ALTER TABLE abc add a8 Varchar(20)"; SqlCommand cmd = new SqlCommand(q, cn); cn.Open(); cmd.ExcecuteNonQuery(); cn.Close();[/CODE] Not sure why you were using …

Member Avatar for virusisfound
0
137
Member Avatar for JOSheaIV

Check out this link [URL="http://msdn.microsoft.com/en-us/library/79b3xss3(v=vs.80).aspx"]http://msdn.microsoft.com/en-us/library/79b3xss3(v=vs.80).aspx[/URL]

Member Avatar for Ketsuekiame
0
254
Member Avatar for drake10k
Member Avatar for muzikhera

Just write a update statement in the Form close or Logout button to update the current user's information with the current time.

Member Avatar for kvprajapati
0
93
Member Avatar for erdinc27

From what i've read the normal textbox doesn't support links. [URL="http://msdn.microsoft.com/en-us/library/f591a55w.aspx"]http://msdn.microsoft.com/en-us/library/f591a55w.aspx[/URL] try this

Member Avatar for Fenrir()
0
68
Member Avatar for jay_el_em

[URL="http://msdn.microsoft.com/en-us/library/aa288453(v=vs.71).aspx"]http://msdn.microsoft.com/en-us/library/aa288453(v=vs.71).aspx[/URL] This should get you started

Member Avatar for Fenrir()
0
65

The End.