|
Then, try to call gotosite from a new thread.
Thread navigateThread = new Thread(new ThreadStart(gotosite));
navigateThread.Start();
Calin
|
|
|
|
|
Haven't tried that. But I found another way to solve it.
I did found this Wait function:
void Wait(int timervalue)
{
// set the timer for the number of ms desired
WaitF.Interval = timervalue;
// enable the timer and set the timerelapsed flag to false
WaitF.Enabled = true;
_timerElapsed = false;
while (_timerElapsed == false)
{
Application.DoEvents();
}
}
By creating a little wait i am now avaible to use webbrowser1.Isbusy()
while (webBrowser1.IsBusy == true)
{
Application.DoEvents();
}
|
|
|
|
|
I have assigned from a data source Display Member as "Client Name" & Value Member as "Client ID" to a combo box.
Now for a query i need to pass the Client ID value as parameter but all i am getting is Combobox.Text/ Combobox.SelectedItem/.. as Client Name.
How can i get the value of ClientID for the Selected Client Name from the Combobox.
Please Help.
|
|
|
|
|
hi
try with SelectedValue
regards
|
|
|
|
|
Didn't Worked... I already did..
Please tell me any way to extract this value...
|
|
|
|
|
Favorite saying down in my dept: "Works on my machine, i don't know how you manage it!".
var question = (_2b || !(_2b));
|
|
|
|
|
ComboBox.SelectedValue
is my best guess.
----
man i really should refresh this page more.
var question = (_2b || !(_2b));
|
|
|
|
|
Hello!
Is there anything something like HttpWebRequest.Close(), but in .NET 2.0?
What's it for? I need to close HttpWebRequest. I know that when I am creating new HttpWebRequest .NET keeps the connection, but is there any way to close it?
|
|
|
|
|
You may set Connection property = "Close"
Calin
|
|
|
|
|
Yes I can, but I get exception:
System.ArgumentException: Keep-Alive and Close may not be set with this property.
But I found this:
"The "ArgumentException" will be thrown if we directly set the Connection to "Close" or "Keep-Alive". And after some further dig into the HttpWebRequest's code, I think we should use the "KeepAlive" property instead of the "Connection" property to set the Connection header. For example:
use webrequest.KeepAlive = false;
use webrequest.KeepAlive = true;
And that's it!
I forgot that KeepAlive is set to 'true' as default So when I've changed it to 'false' the connection is closing while the request and response is handled
Thank you very much 
|
|
|
|
|
Yeah, KeepAlive solves the problem.
No problem.
Calin
|
|
|
|
|
I found another solution.
In fact it closes all connections that are in HttpWebRequest's connectionGroup but it is that what we are looking for
So, you can do it like this:
wreq.ServicePoint.CloseConnectionGroup(wreq.ConnectionGroupName);
I think you can use it instead setting KeppAlive to false
Of course we are talking about .NET 2.0. In 3.5 this is not a problem at all.
--
Greg Kozlowski
|
|
|
|
|
|
No-one can tell you, since there aren't any people here that can read your mind. What's the "handwriting interpret" library called?
Once you found this name, prepare to give answers to questions such as;
- Where's the code you tried on this library
- What error-description did the library return
- What color does an apple have?
I are troll
|
|
|
|
|
|
first the reason i sorta went with the one I posted the neural net is a little to complex for me as i am just a beginner.
second um theres not "handwriting interpet" lib its just whats on that site.
|
|
|
|
|
Mea culpa, I misread and have a bad temper. Bad excuse, I know
The Neural Network could easily be trained well, or read this[^] article about using the Office-component for OCR.
I are troll
|
|
|
|
|
Mea culpa, I misread and have a bad temper. Bad excuse, I know
The Neural Network could easily be trained well, or read this[^] article about using the Office-component for OCR.
I are troll
|
|
|
|
|
well i am not shure if that would work i am working on a program for a touch a tablet pc and instead of using a virtual keyboard i whant to beable to write on screen and it figure it out + i sorta dont have office
i think the problem with the 1 i posted is
private void pictureBox1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
is right there e doesnt seem to return any info.
|
|
|
|
|
Ronin114 wrote: e doesnt seem to return any info
So the picturebox does fire the event when you move the mouse? What do you mean by "no info", does e equal "null"?
I are troll
|
|
|
|
|
well win i move the mouse it does nothing i have hookd e.x and e.y to a textbox and they return 0
|
|
|
|
|
hi.. i need database design for 2way sms thru modem..please help me
|
|
|
|
|
It's useless to stand in a street and fill a sentence or two with keywords, waiting for an answer - unless you want to talk to God.
Back to your question; there isn't a default design for handling 2-way sms. In fact, you can send and receive messages without using a database. So, if your specs say that a database is needed, ask yourself "why".
What facts are you going to store in that database? Make a list, please - then search Google or CP for "normalization principles", and convert your list to a design.
I are troll
|
|
|
|
|
|