- 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
205 Posted Topics
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] | |
Re: I don't get you. To load the image opened in openFileDialog and set it as pictureBox's image, you can simpl use: [CODE] Image img = Image.FromFile(Chosen_File); pictureBox1.Image = img; [/CODE] | |
Re: You can use DrawToBitmap(): [CODE] Bitmap panelImage = new Bitmap(panel1.Width, panel1.Height); panel1.DrawToBitmap(panelImage, panel1.ClientBounds); // Show the image of the panel in a pictureBox pictureBox1.Image = panelImage; [/CODE] Thanks | |
Re: Check these: [url]http://www.farooqazam.net/screen-capture-application-using-c-sharp/[/url] [url]http://www.farooqazam.net/screen-capture-class-for-c-sharp/[/url] Thanks | |
I am working on a 2d breakout game but I am having problem with the collision. Currently the game is working good with a normal box collision for the ball and the brick. But for making the ball speed negative/positive I need collision for different sides. Image: [URL="http://i.imgur.com/KSKDN.gif"]http://i.imgur.com/KSKDN.gif[/URL] In the … | |
Re: I recommend you this book: [url]http://csharpindepth.com/[/url] Thanks | |
Re: Check this: [url]http://www.farooqazam.net/crop-image-c-sharp-and-vb-net/[/url] | |
How to pass an array of struct as a function parameter? This is not working: [CODE] struct Person { char* name; int age; Person(char* name, int age) { this->name = name; this->age = age; } } struct XYZ { int count; Person* people[]; XYZ(int count, Person* people[]) { this->count = … | |
Re: This will help: [url]http://www.codeproject.com/KB/selection/dotnetcolorpicker.aspx[/url] Thanks | |
Re: I recommend this free book: "What the C or C++ Programmer Needs to Know About C# and the .NET Framework" [url]http://www.charlespetzold.com/dotnet/index.html[/url] | |
Re: Ene Uran, I can't get that joke... Whats does this mean: "I've got you both beat. My dad's real good because he works for the city. He gets off work at 17:00 and is already home by 13:30!" | |
Re: I don't know any good C# apps. But I do like [URL="http://www.capturist.com"]Capturist[/URL] - my first C# app. Download it from: [url]www.capturist.com[/url] Thanks | |
Re: You can set image from anywhere using the BackgroundImage property. Here's an example: [CODE] this.BackgroundImage = Image.FromFile(@"C:\images\wallpaper.jpg"); [/CODE] | |
Re: You can all the lines by using a while loop and checking for EndOfStream bool: [CODE] while(!reader.EndOfStream) { line = reader.ReadLine(); } [/CODE] | |
Re: Better post in the [B][URL="http://www.daniweb.com/forums/forum18.html"]ASP.NET Forum[/URL][/B] and also wrap your code in [code ] tag. | |
Re: I am not much good with queries but try putting a single quote around the variable: [CODE]SqlCeDataAdapter adp = new SqlCeDataAdapter("select * from gmembers where GID = '"+current_group"'", con);[/CODE] | |
![]() | Re: The al() method requires 2 strings as parameters. Call it like this; [CODE]al("password", "name");[/CODE] And it will work. |
Re: Check these tutorials: [url]http://www.vcskicks.com/custom_shape_form_region.php[/url] [url]http://www.vcskicks.com/custom_shape_form_transperancy.html[/url] Thanks | |
Re: Your code is alright. Check these: [url]http://www.google.com/search?rlz=1C1_____enPK381PK381&sourceid=chrome&ie=UTF-8&q=Application+failed+to+inialise+properly+0x000007b[/url] Thanks | |
Re: Import [i]System.Runtime.InteropServices[/i] namespace: [icode]using System.Runtime.InteropServices;[/icode] You can use [I]InternetGetConnectedState()[/I] API method to get the connection state: [CODE] // API Function [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int Description, int ReservedValue); // A Method for checking the state public static bool IsConnected() { int Description; return InternetGetConnectedState(out Description, 0); } [/CODE] … |
The End.