|
Hello vedmack,
If one form contains many comboBoxes,
get SelectedValue of each Combobox and do your operations as per the your requirment.
regards
GV Ramana
|
|
|
|
|
i tryed something like this...
HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
HTMLInputElement combo= (HTMLInputElement) myDoc.getElementById("xxx");
combo.value="Arabic";
combo.click();
but its not working....
any ideas?????
|
|
|
|
|
What I'm trying to do in psuedo code
<br />
foreach( item sourceItem in sourceList)<br />
if (destList.Count == 0)<br />
destList.Add(sourceItem)<br />
else<br />
foreach (item destItem in destList)<br />
if (Conditions(...))<br />
AddAndManipulateExistingItems(...)<br />
else destList.Add(sourceItem)<br />
AddAndManipulateExistingItems() adds 1 or more items to destList and may modify sourceItem and existing items destList. Source list is not kept past this code snippet so modifying it doesn't matter. The algorithm itself is from a vba excel app and is sufficiently complex that I don't want to risk hunting down any side effects burried in several thousand lines of implementation.
My first attempt to do this was done using ArrayLists, but the modifications are breaking the foreach loops and causing InvalidOperationException's. IS there a collection that will let me do this, or will I have to use arrays and resize manually?
|
|
|
|
|
The foreach construct uses an Enumerator to step through the list. If you alter the list, the Enumerator is invalidated. You can loop through the list as long as you don't use an Enumerator, for an example using a regular for loop:
for (int i=0; i<sourceList.Count; i++) { ... }
---
b { font-weight: normal; }
|
|
|
|
|
Thank you. I was sure there had to be a way to do that.
|
|
|
|
|
how can i dial an internet connection using C# when a button is pressed on my form. I have a number of Broadband and Dial Up Connections on Windows XP OS.
|
|
|
|
|
Im really sorry about posting the message thrice. It was an accident.
|
|
|
|
|
how can i dial an internet connection using C# when a button is pressed on my form. I have a number of Broadband and Dial Up Connections on Windows XP OS.
|
|
|
|
|
how can i dial an internet connection when a button is pressed on my form.
|
|
|
|
|
Hi,
I want to use WebClient or HttpWebRequest download file. Everything is fine.
My question is: How can I know the internet connection is broken when I am downloading a big file. Rightnow the programm is just wait overthere, I don't know how long it take for the waiting.
I want to cancel the download once the internet connection is broken. and do some cleanup for the download.
Please help me!!
Thanks a lot!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Set the timout for the request to a lower value, perhaps just a few seconds.
An alternative is to make an asynchronous request instead.
---
b { font-weight: normal; }
|
|
|
|
|
I setup the request timeout already.
the problem is, I send the request, and it (request) returns a response already. the "timeout" happends at when I deal with the response.
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
What do you mean? If you already have gotten the response, what does it have to do with the internet connection?
---
b { font-weight: normal; }
|
|
|
|
|
I want to download a very big file, it takes for example 10 minutes, so I have to know if the internet connection is broken in this 10 minitues. so I can stop waiting .
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Look into using an asynchronous request, then. I think that it might be possible to track the process of the request.
---
b { font-weight: normal; }
|
|
|
|
|
Hello.
I am trying to change some datagrid row colours. I've already created a new paint function that needs the following parameters:
System.Drawing.Graphics g,
System.Drawing.Rectangle bounds,
CurrencyManager source,
int rowNum,
System.Drawing.Brush backBrush,
System.Drawing.Brush foreBrush,
bool alignToRight.
Then I want to call this function in the datagrid paint event but I need the correct parameters.How can I do this???
Thanks.
|
|
|
|
|
Creating a tool that will query the wmiClass of "client" PCs.
I do not want to have any software installed on the client side,
all clients are behind the same router, so I don't have any concerns there.
I'm looking for the best way to connect to aprox 100 PCs. -- the intended operation would be: user clicks button, button event polls pcs, listener client logs all replies, using list of replies poll each pc for all required info (i'd like to just udp the clients with the wmi login info, and query so that it just replies with the info, but not sure yet if that is possible or even a safe move)
looking for any good ideas or previous attempts that were sucessful in doing this.
I've considered using UDP to conduct an initial poll of the PCs, then use the returned name of the pc to conduct the TCP request of wmi.
I've also considered using a static list of IPs, but dont like that idea, so maybe a semi-static ip list?
and lastly i've considered finding a way to intergrate with active directory to return a list of pcs, which is fine, as long as we don't have any non-registered clients
again, just looking for any thoughts of a good way to do this...and of course if you know of any refrence material that is open for use that would be much appreciated as well.
string Beautiful;
Beautiful = "ignorant";
label1.Text = "The world is full of " + Beautiful +" people.";
Why is common sense such an un-common comodity?
|
|
|
|
|
My friend is making an IRC-like client (I'm making the server), and I was wondering what's the best way to handle the tabs for each channel?
Remake each chat window and user list?
Here's the code:
http://s4.yousendit.com/d.aspx?id=3OQ7SU0PMBCKZ120NWZ2G7SFDV
|
|
|
|
|
The user can set for a field of my table an OLEObject as:
.txt
.bmp
.xls
.mp3
When i try to get it back, how can i know what kind the file is it?
|
|
|
|
|
many files like jpeg,gif except txt has three or more characters specifying
on the begnning of the file; also u can store the mime type on db as well.But the first might help...
mp3->ID3
jpeg->jFIF or others
view your files in notepad answers are there
Mikail Çetinkaya . The C# DEveloper
-- modified at 11:27 Tuesday 3rd January, 2006
|
|
|
|
|
In all versions of Visual Studio .Net (including 2005) the ListView control incorrectly updates the gridlines in detail mode when clicking the arrows of the scroll bar. Sometimes the lines are not painted, other they are duplicated.
Is this a documented bug of this control?
Thanks
|
|
|
|
|
I have several custom controls in my form( eg: round edge panels, controls inherited from label abd button). Sometimes all the controls in my form suddenly disappear in the designer. This is really scary. Since I would have a backup in my source safe that saves me but could anyone explain this better so that I can avoid the cause of this action.
Thanks in advance.
VPMahank
|
|
|
|
|
Are you using VS2003 or 2005? If you're using 2003, this bug is a known bug, see this blog post[^] for more info. FYI it's fixed in 2005.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Bought a House!
Judah Himango
|
|
|
|
|
Unfortunately I am using 2003. Is there anyway at all to avoid this.
Thanks
VPMahank
|
|
|
|
|
There are some workarounds linked to in the article. The main thing to keep in mind is that if all your controls disappear, just close the designer forms without saving anything.
AFAIK, there was no official fix for this from Microsoft.
Fortunately, the bug is fixed in VS 2005.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Bought a House!
Judah Himango
|
|
|
|