|
well the code he has posted only shows him setting the interval and stopping the timer inside the event handler. there is no code to show how the timer has been setup outside of that.
Maybe I am missing something here?
|
|
|
|
|
Yeah, you are. He called stop, set the interval, and called stop again.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
He did not call it, he placed that code in the event handler. which as we know now was never assigned to the timer tick event
|
|
|
|
|
Is this a trick question?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
sorry i was offline.
tanks for all who reply for my question, it's not a trick, actually stopping the timer twice in this code a mistake, but what i wanted was to fire the timer_tick event,to do so i have to register it with systemeventhandler isn't it when doing this dynamically.
i tried it in design and found that there is a code registering the timer_tick event with systemeventhandler .
|
|
|
|
|
No, its a 'tick' question
|
|
|
|
|
I have a dataset and when I write it to an XML file I am getting this:
<?xml version="1.0" encoding="utf-8" ?>
- <string xmlns="http://tempuri.org/">
- <DATASET>
<DATAROW ConfigItemName="xx" EnvironmentName="xx" AssetOnlyInd="x" AssetTagDesc="xx" SerialNum="xx" />
<DATAROW ConfigItemName="xx" EnvironmentName="xx" AssetOnlyInd="x" AssetTagDesc="xx" SerialNum="xx" />
<DATAROW ConfigItemName="xx" EnvironmentName="xx" AssetOnlyInd="x" AssetTagDesc="xx" SerialNum="xx" />
<DATAROW ConfigItemName="xx" EnvironmentName="xx" AssetOnlyInd="x" AssetTagDesc="xx" SerialNum="xx" />
<DATAROW ConfigItemName="xx" EnvironmentName="xx" AssetOnlyInd="x" AssetTagDesc="xx" SerialNum="xx" />
</DATASET>
</string>
When I try and access my dataset I am not managing..
Console.WriteLine(DatasetTest.Tables[0].Rows[0][0]); is giving me the result: 0.
Is my dataset not set up well? I've never worked with XML datasets so am not sure if I do in fact have the right rows and coloumns.. does that look right? How do I access the 1st coloumn of the 1st row?
|
|
|
|
|
ndroo882 wrote: does that look right?
Without knowing what the schema is how can tell if its right or not?
ndroo882 wrote: How do I access the 1st coloumn of the 1st row?
Am I getting this correct? You have a dataset which you are converting to XML so you can access it?
only two letters away from being an asset
|
|
|
|
|
Hi,
that is the XML file output I get when i do dataset.writexml to check what the contents are since I don't seem to be able to access through.
I want to be able to access the dataset (that I have built up from another xml string) and retrieve the 1st coloumn of the 1st row. That is the output of the dataset when I write it to XML. I guess the question is, wot is the code to access the dataset given it has that XML structure?
|
|
|
|
|
ndroo882 wrote: check what the contents are since I don't seem to be able to access through
Are you debugging your code? You can't look at with a data visualizer?
ndroo882 wrote: wot is the code to access the dataset given it has that XML structure?
The structure doesn't matter.
DataSet.Rows[0][0] or DataSet.Rows[0]["column_name"]
only two letters away from being an asset
|
|
|
|
|
|
|
Hi,
I have a ASP.NET web application which i am developing, and i have an other webapplication over which i have no control lets say for instance gmail.com. Now i wish to login to this other web application directly by passing UserName and Password.
The idea is to skip the login page and sparing the user, the hardship of manually entering UserName and Password.
Thanks in Advance
|
|
|
|
|
Well, I never have to do that in gmail, but you can do this with an IE plug in, or with your own seperate app if you do it with an IE instance embedded in the app.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Check out the ASP.NET forum.
Different websites use different methods of validation. You cannot login to Google using the same methods that you login on hotmail.
Your best bet would be to support OpenID
I are troll
|
|
|
|
|
Hi,
VS2005, .NET 2
I have a winforms app that makes use of web services and crystal reports.
I have created an install for the app. After installing on the client machine the app works fine if running as an administartor - but if i relog in as a user it complains about not having access to .TMP files in the application folder.
The .TMP files seem to have random names something like hTHuskG.TMP im not sure whether its the web service, crystal reports or the app itself that creates these.
If I allow users full access to the application folder it works fine.
(The app will be installed by an admin and be used by users with very limited access)
How can I modify the install to give users full access to the install directory?
Many thanks,
Chas
|
|
|
|
|
I hope that you can't - it would be up to the administrator to set these kind of permissions.
I are troll
|
|
|
|
|
in my app i've two threads , one for update the listview and one for main form,the problem is i used thread.sleep() method to update the listview,instead of using a timer periodically, but when this thread is strated in a while(true) loop,it doesn't allow the other thread to execute, how can i use the thread.sleep() to do fill th listview periodically
|
|
|
|
|
The actual filling of a ListView should be done from the mainthread if I'm not mistaken. Doing this from another thread has no advantages, since the other thread needs to synchronize with the mainthread anyhow.
You can use the second thread to fetch the items that go in the ListView, and you can use it to modify the resultset before inserting them into the ListView.
I are troll
|
|
|
|
|
Do a search for 'InvokeRequired'.
That should give you some clues.
Henry Minute
If you open a can of worms, any viable solution *MUST* involve a larger can.
|
|
|
|
|
Use a delegate to update the List items... Control.Invoke( delegate )..
Moim Hossain
R&D Project Manager
BlueCielo ECM Solutions BV
|
|
|
|
|
I has a same problem too.
|
|
|
|
|
if you have code c# or asp about information extraction , share for me.Then save infomation to a file
thank you veru much !
|
|
|
|
|
What an awful question! Extraction of what sort of information?
|
|
|
|
|
extraction infomation from website online (code= c#)
help me pls !
|
|
|
|