|
Hi,
A GUI control can only be updated from the GUI thread.
If you are running a different thread then this must call a function on the GUI thread to perform the update.
you need to use a delegate method and the GUI's InvokeRequired method.
There are a large number of articles on this site that explains this in more detail just search for InvokeRequired
I hope this helps
Martin Kendrick
|
|
|
|
|
|
Hi,
Hi i have some values in datagrid that are generating from database.I want to export those datas to flat file.Plz help me.I m working in ASP.net platform using VB.net
Thnks in advance
Jey
Graviton Solutions.
|
|
|
|
|
This is a question better asked in the ASP.NET forum.
I think you're going to have to provide a link to a page that does the export, which you have to write the code for, then this page should return the export as a normal text file, just like if you were sending back an Excel or Word file. I don't know the specifics myself. That's why I said this question is more appropriate for the ASP.NET forum.
|
|
|
|
|
|
hi i am creating a project in which i am trying to create a handler for a funtion
that funtion skeleton is this
Function execcommand(ByVal commndstr As String)
End Function
i am trying to add handler by this command --- > AddHandler execcommand(), AddressOf execcommand
it shows a error
'AddHandler' or 'RemoveHandler' statement event operand must be a dot-qualified expression or a simple name.
can any one tell why this arises and correct the mistake
thank you
with regards
Balagurunathan.B
|
|
|
|
|
u did not add the event with the handler
|
|
|
|
|
its a function . i am not getting wat u r saying will u pls say how to do
thanks
with regards
Balagurunathan.B
|
|
|
|
|
hi i am trying to create a handler for a funtion like this
addhandler sendcommand(),addressof sendcommand
but it shows me a error
'AddHandler' or 'RemoveHandler' statement event operand must be a dot-qualified expression or a
simple name.
that function skeleton is
Function execcommand(ByVal commndstr As String) as string
End Function
can any one tell me how to avoid this
with regards
Balagurunathan.B
|
|
|
|
|
balakpn wrote: addhandler sendcommand(),addressof sendcommand
The format for the AddHandler statement is:
AddHandler object.event, handler
You didn't give AddHandler the name of an object event to handle. Something like:
AddHandler SomeObject.Click, AddressOf SendCommand
The signature for the SendCommand function MUST match the signature of the event it's going to handle.
|
|
|
|
|
hi actually i am trying to call a thread
while creating thread object i want to give the address of that function but it shows error so i tried to create like that.
please tell me how i have to pass addressof funtion name on thread pls give some code examples and functions with parameter for the thread
with regards
Balagurunathan.B
|
|
|
|
|
You can find examples and walkthroughs of using the BackgroundWorker componet here[^].
|
|
|
|
|
Is there a way to insert a picture in to a Richtextbox and save it?
thanks in advance
|
|
|
|
|
Y r u doing that ? What's the need?
|
|
|
|
|
|
Hi! I would like to; "really" know how to get the current text line number where the caret is at.
(not the "line number" just the "text line number":
when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.)
a = Rtb.GetLineFromCharIndex(rtb.SelectionStart)
So can anyone tell me a way to get the real line number of the selected text.
thanks in advance
ps:
(pls don't tell me to explain again!
|
|
|
|
|
make the 1 increment and u will get the exact line number.
|
|
|
|
|
can you pls elaborate on that, it will be greatly appreciated.
|
|
|
|
|
|
this smilies have sounds? I don't seem to get any sound at all.
|
|
|
|
|
No, they don't.
Putting a bunch of them in your posts turns your post into unreadable noise.
|
|
|
|
|
i agree with u Guffa.Either he is not serious and playing games, I think this is the first time he is putting the query .
|
|
|
|
|
Yes I'm new here, just posted 5 or 6 times so far.
Sorry for any inconvenience.
and sorry about the subject, I was just trying to get some attention to my string, I guess I was wrong, I guess proper subject will get even more attention.
and I didn't know these smilies produced sound, even if it did I didn't get any sound so far.
|
|
|
|
|
Dear All,
I am getting the following error when i am trying to update a datagrid.I am using remoting concept to connect to the server..The datagrid is updated but before that the following erro message is thrown...
"Server encountered an internal error. To get more info turn on customErrors in the server's config file."
Someone help in this regard..
Regards,
Balaguru
|
|
|
|
|
problem is in connection of server with the client .I think.It get disconnected in between..That's y it no longer gets connected to the database.
|
|
|
|