- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 52
- Posts with Upvotes
- 48
- Upvoting Members
- 28
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re: I had Dinner a few hours ago. Eating nothing currently and drinking water. | |
Re: No, you don't have to close the other forms manually. This will close all the MdiChildren forms: [CODE]For Each frm As Form In Me.MdiChildren frm.Close() Next[/CODE] You might have been mistaken by using "frmApproval" as the variable name. To better understand how the code works I've changed "frmApproval" for "frm" … | |
Re: Instead of [icode]dgvPAction.Rows[0].Cells[1].Value = adapter.Fill(dt).ToString();[/icode], Use the following code: [CODE] DataGridViewComboBoxColumn comboBox = (DataGridViewComboBoxColumn)dgvPAction.Rows[0].Cells[1].OwningColumn; comboBox.DataSource = dt; [/CODE] Thanks | |
Re: [B]@mrunmayee:[/B] See this post: [url]http://www.daniweb.com/forums/post1201961.html#post1201961[/url] Thanks | |
Re: [QUOTE]All the flowers of tomorrow are in the seeds of today. [/QUOTE] Great one... I really love that. | |
Re: Try using WebRequest instead of HttpWebRequest: [CODE] this.digestAuth = this.GetAuth(); WebRequest request = WebRequest.Create(this.loginUrl); request.Accept = "*/*"; request.UserAgent = this.userAgent; request.Headers.Add("RETS-Version", this.version); request.ProtocolVersion = HttpVersion.Version11; request.Headers.Add("Authorization", this.digestAuth); CredentialCache cache = new CredentialCache(); cache.Add(new Uri(this.loginUrl), "Digest", new NetworkCredential(this.userName, this.password)); request.Credentials = cache; WebResponse response = request.GetResponse(); [/CODE] Thanks | |
Re: I think there is validation on that page. There are hidden input fields which generates a hash and it is then used to identify whether the request came from that website or from outside. | |
Re: Okay. Here's your complete game. It does exactly what you want. [B]Here's how it works:[/B] * Use Up key to move forward and Down key to move backward. The car will move forward/backward in the pointed direction. * Use Left key to rotate anti-clockwise and Right key to rotate clockwise. … | |
Re: You can use WebRequest. Here's an example: [B][I]Add reference: "using System.Net;"[/I][/B] [CODE] WebRequest request = WebRequest.Create("http://www.google.com"); WebResponse response = request.GetResponse(); System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream()); textBox1.Text = reader.ReadToEnd(); [/CODE] | |
Re: Try this: [CODE]Do Until card_compared = 0[/CODE] | |
Re: Are you sure you have confirmed that both the numbers matches? Can you try changing your method with this (for testing): [code] public string HumanChecker(string str) { string rnd = this.RandomNumberGenerator(); if (str == rnd) { return "You are a human."; } else { return "Number you entered: '" + … | |
Re: SelectedItem property returns an object by default. You will have to convert it to string. [code]RefreshIESettings(listBoxProxies.SelectedItem.ToString());[/code]. | |
Re: I recommend Professional C# 2008: [url]http://www.amazon.com/Professional-2008-Wrox-Guides/dp/0470191376[/url] And here's a list of good C# books: [url]http://msdn.microsoft.com/en-us/vcsharp/aa336795[/url] | |
Re: Change the [URL="http://i.imgur.com/3OxJW.png"]SizeMode property to "Stretch Image"[/URL] for the picturebox. | |
Re: And [URL="http://msdn.microsoft.com/en-us/library/system.console.read.aspx"]Read[/URL] is a method in the Console class. | |
How to embed a resource programatically? Say you have an exe file located in "C:\test.exe" (to be used as a resource). When I run this app it will check for "test.exe" file and embed into itself. So the next time I run the app it will have the "test.exe" embedded … | |
Re: I don't know what you are trying to accomplish. If you want to call the button7_Click() method when button6 is clicked then you can do it like this: [CODE] private void button6_Click(object sender, EventArgs e) { button7_Click(null, null); } [/CODE] | |
Re: Install [URL="http://cdn.steampowered.com/download/SteamInstall.msi"]Steam[/URL]. [i]Wrong forum, by the way. Post in the [URL="http://www.daniweb.com/community-center/geeks-lounge/6"]Geeks' Lounge[/URL][/i]. | |
Re: Lots of Game Development resources: [url]www.thegamecreators.com[/url] :) | |
Re: I don't really get what you are trying to do. To use Settings first right-click on your project, select Settings and add the required settings. Let's say you have added a string "[COLOR="Green"]storageBoxTxt[/COLOR]" to the settings then this is how you'll use it: [CODE] if (mainTextBox.Text = "") { MessageBox.Show("Please … | |
Re: I’m not anti-social; I’m just not user friendly (Geek Quote) | |
Re: SaveFileDialog only gets the path where the user wants to save, as nick.crane said. You can then use that path to save the file. For instance, if you are using an image then you will have to use `SomeImage.Save(SaveFileDialog.FileName)` to save the image in the path specified by the user … | |
Re: You should make Form2 constructor take a ListBox as a parameter and then pass form1's ListBox as a parameter when initiating Form2. An example: When initiating Form2, pass that ListBox as a parameter: [CODE] Form2 form2 = new Form2([B]listBox1[/B]); [/CODE] And edit Form2;s constructor: [CODE] // This will hold the … | |
Re: These will sure help you: [url]http://www.codeproject.com/KB/cs/RemoteDesktop_CSharpNET.aspx[/url] [url]http://www.codeproject.com/KB/cs/Palantir.aspx[/url] Thanks | |
Re: Put the [I]Exit Sub[/I] after [I]Me.Close[/I] or remove it and it'll work. [CODE] ......... ......... MessageBox.Show("Close form") [B]Me.Close() Exit Sub[/B] [/CODE] | |
Re: Have a look at this thread: [url]http://www.daniweb.com/forums/post1259552.html#post1259552[/url] Thanks | |
Re: Set the captured image as the form's backgroundImage as bbman said. And when the user has finished drawing you can crop the image like this: [url]http://www.farooqazam.net/crop-image-c-sharp-and-vb-net/[/url] |