Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~9K People Reached
Favorite Tags
Member Avatar for buster2209

I have an xml file that looks like this; <?xml version="1.0" encoding="utf-8"?> <!--This file is generated by the program.--> <Product ID="23" Name="Soap" test="one"> <Price>10.00</Price> <OtherDetails> <BrandName>X Soap</BrandName> <Manufacturer>X Company</Manufacturer> </OtherDetails> </Product> I can use the following code to read the 'ID', 'Name', and 'test; XmlReader reader = XmlReader.Create("Products.xml"); while (reader.Read()) …

Member Avatar for thines01
0
187
Member Avatar for buster2209

I'm currently reading data from a device via RS232 using the code; [CODE]UpdateTextBox2(MCport1.ReadExisting()); // Write serial data stream to textbox[/CODE] where UpdateTextBox2 is; [CODE] private void UpdateTextBox4(string text) { if (textBox4.InvokeRequired) { textBox4.Invoke(new MyDelegate1(UpdateTextBox4), new object[] { text }); Application.DoEvents(); } else textBox4.AppendText(text); Application.DoEvents(); }[/CODE] The problem is, the data …

Member Avatar for jfarrugia
0
146
Member Avatar for buster2209

I'm having a real difficult time getting two threads to run simultaneously..... Both of the threads contain 'do while' loops and depending on which one is reached first, it locks out the other thread. My code is as follows; both threads are started together by the click of a button. …

Member Avatar for buster2209
0
157
Member Avatar for buster2209

How can I view the TCP/IPv4 setting through the command line for an adaptor that is [I][COLOR="Red"]disabled[/COLOR][/I]. 'ipconfig', 'ipconfig /all', and 'netsh interface ipv4 show addresses' only display the relevant information for an adaptor that is enabled. Thanks in advance!

Member Avatar for rch1231
0
114
Member Avatar for buster2209

I'm trying to run simulataneous do while loops but whichever loop is reached first is run and the other isn't. Here's my code; [CODE]namespace sync { public partial class Form1 : Form { int s = 0; public Form1() { InitializeComponent(); } private void button1_Click(object sender, System.EventArgs e) { s …

Member Avatar for Mitja Bonca
0
135
Member Avatar for buster2209

I want to change the text color [I]programmatically.[/I] eg; [CODE]textBox1.Forecolor = Color.Red; textBox1.AppendText("Red Text/n"); textBox1.Forecolor = Color.Green; textBox1.AppendText("Green Text/n");[/CODE] The problem is, this changes the [I]entire[/I] text to green where I want to have the two different lines in two different colors. Can someone help?

Member Avatar for gusano79
0
146
Member Avatar for buster2209

I"m trying to determine if the user is root or not then prompt to become root user; [CODE]if os.geteuid() != 0: # If not root user... os.system("gksudo crack.py") # Open root password window else: # Do Nothing if os.geteuid() == 0: # If you are root user... os.system("You are now …

Member Avatar for buster2209
0
3K
Member Avatar for buster2209

I have several textboxes that are in tabs and would like them all to auto-scroll when text is added [B]without[/B] bringing them to focus. Is this possible?

Member Avatar for buster2209
0
117
Member Avatar for buster2209

When I set my code going, the whole GUI freezes and I can't select anything or even move the window until the code has finished. Is there a way to interact with the GUI [I]whilst[/I] a piece of code is running?

Member Avatar for nick.crane
0
94
Member Avatar for buster2209

Is it possible to view the code of the site that is loaded into the webbrowser? eg; [CODE]webBrowser1.Navigate("http://google.com"); webBrowser1.Contents = HTML;[/CODE] Or is is possible to save it as a file instead?

Member Avatar for nick.crane
0
93
Member Avatar for buster2209

Here is my code; [CODE] // Allows writing to web forms void SetText(string attribute, string attName, string value) { comboBox1.Items.Clear(); // Get a collection of all the tags with name "input"; HtmlElementCollection tagsCollection = webBrowser1.Document.GetElementsByTagName("input"); foreach (HtmlElement currentTag in tagsCollection) { // Displays all the tags in a combobox comboBox1.Items.Add(currentTag.GetAttribute(attribute).ToString() …

Member Avatar for buster2209
0
158
Member Avatar for buster2209

Is it possible to search for a term within a string and output the result either 1 (True) or 0 (false)? e.g; [CODE]string str = 1234567890 if (str.contains = "456") { MessageBox.Show("True!") } else { MessageBox.Show("False!") }[/CODE] I know I can search for [I]individual[/I] chars but I want to be …

Member Avatar for buster2209
0
107
Member Avatar for buster2209

Whilst I can find MANY examples of how to split a string based on a certain character within that string, how can I split a string based on the no of chars For example, I have a string that is 20 chars long but I want to create a newline …

Member Avatar for buster2209
0
99
Member Avatar for buster2209

I'm wanting to automatically upload login details to a router then download the relevant page into a textbox in c sharp. How can this be done?

Member Avatar for buster2209
0
95
Member Avatar for buster2209

Is it possible to write to the windows dos screen and display the results in a GUI? eg; [CODE] Console.WriteLine("ipconfig"); Thread.Sleep(1000); for (int i = 0; i < 5; i++) { textBox1.Text = Console.ReadLine().ToString(); } [/CODE]

Member Avatar for Diamonddrake
0
667
Member Avatar for buster2209

I have chosen a console type project in Visual 2010 and want to know how to write to the cmd line. For example, I want to be able to automatically send a string (like ipconfig) and then have the results displayed in the box. eg; [CODE]Console.WriteLine("ipconfig"); // Send cmd Thread.Sleep(1000); …

Member Avatar for Software guy
0
123
Member Avatar for buster2209

In order to arrange data in a listview I can either use the properties panel or use the following code; [CODE]listView1.Sorting = SortOrder.Descending;[/CODE] How can I do a SortOrder for the [I]second[/I] column? eg; [CODE]listView1.columnHeader2.Sorting = SortOrder.Descending;[/CODE] Thanks in advance!

Member Avatar for Momerath
0
250
Member Avatar for buster2209

I have recently purchased a 47inch LCD screen and want some opinions/technical help. The TV has an RGB, 'sound out', and several HDMI ports. The main use if the TV will be watching high def TV and listening to music through it. This is all be done via a computer …

0
68
Member Avatar for buster2209

How can I execute some code when the user closes the application? Where do I put this code?

Member Avatar for buster2209
0
100
Member Avatar for buster2209

I have successfully managed to get my data the way I want it in ListView and have two questions; 1 - How can I select an item on a single (or double) click of a mouse button that executes some code using that as the variable passed to it from …

Member Avatar for buster2209
0
288
Member Avatar for buster2209

I want to be able to double left click my mouse on an entry in a populated listview window and pass that variable (as a string) to a textbox. Can anyone give me some sample code?

Member Avatar for Geekitygeek
0
134
Member Avatar for buster2209

I have the following code which is used to get various details about wireless networks; [CODE] // Lists all networks ssid, signal stregth, availability, & security Wlan.WlanAvailableNetwork[] networks = wlanIface.GetAvailableNetworkList(0); foreach (Wlan.WlanAvailableNetwork network in networks) listBox1.Items.Add(GetStringForSSID(network.dot11Ssid)); foreach (Wlan.WlanAvailableNetwork network in networks) listBox2.Items.Add(network.wlanSignalQuality + "%"); foreach (Wlan.WlanAvailableNetwork network in networks) listBox3.Items.Add(network.wlanNotConnectableReason); …

Member Avatar for PsychoCoder
0
138
Member Avatar for buster2209

Is it possible to view wireless networks using c3? I have tried '[URL="http://managedwifi.codeplex.com/"]Managed with WIFI[/URL]' but have had no luck. Anyone else done this before?

Member Avatar for buster2209
0
360
Member Avatar for buster2209

I can't items to my combobox I am under the impression the code is; [CODE]comboBox1.Items.Add("NAME");[/CODE] but this doesn't work. The program compiles correctly but nothing is displayed in the box. What am I doing wrong?

Member Avatar for buster2209
0
1K