|
|
Thanks Dave.
I have tried with the code in the first link (mztools), but it still doesnt work, with the same returned message.
Anyone knows why?
Anyhelp will be great.
|
|
|
|
|
What are you ultimately trying to do with this code??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I want to get a Bitmap-picture in a pictruebox. The original picture is written in DICOM form, firstly i have already convert the DICOM into Bitmap, now i have to get the Bitmap using this function.
|
|
|
|
|
Hi guys,
I'm loading a bunch of combos on my form.
because their are so many items to load, this takes some time to perform.
What tricks can I use to speed this up?
I've tried doing it in a seperate thread. (by the time the user has filled in the first textbox, the combos are loaded), but MSDN's explanation isn't very clear to me.
I also tried to set the combo's CheckForIllegalCrossThreadCalls property to false, but then I get some exceptions (Nothing helpful though).
I found an article here on CodeProject on threadcalling, but I'm working in VS2005 which reacts much more difficult to calling controls in other threads...
Does anybody have some advice about this issue for me?
Thanks a lot!
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
You could assign each Combox a dthread to load the data, but you won't get that much of a performance gain. Since no control can be modified by anything other than the thread that created it, that thread is going to be pretty busy loading all the boxes.
Your performance benefits would be found in finding out if you REALLY need to load so much data into these boxes, and/or figuring out if you can postpone loading some of these boxes until a leter time.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Your performance benefits would be found in finding out if you REALLY need to load so much data into these boxes, and/or figuring out if you can postpone loading some of these boxes until a leter time
Client specs unfortunately...
Dave Kreskowiak wrote: Since no control can be modified by anything other than the thread that created it, that thread is going to be pretty busy loading all the boxes.
I don't understand this one, You mean even if I put it in another thread, I still wouldn't be able to have input in other controls?
The loading only takes 2 or 3 seconds. To long to wait, but short enough to be ready when the user finally filled in the first textbox.
Thanks a lot for your help.
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
V. wrote: I don't understand this one, You mean even if I put it in another thread, I still wouldn't be able to have input in other controls?
That's right. You can do data retrieval and prep on a background thread, but loading the data into the control has to be done on the UI thread. You'll have to create a method on the form that accepts the dataset in some form and either loads or databinds the control. The background thread can then marshal the data by Invoking that method on the UI thread and passing the dataset.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
OK, tnx for the help.
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
I’m having real trouble finding help on sendkey or sendkeys. Firstly I’m not to sure which I’m meant to be using second do I need to import the user32.dll and third how do I target the app for the information to be sent to. I’m a bit frustrated because I’ve just spent almost a week searching the web and found lots of vague hints on how to use sendkey and some ideas that dose not do much and some examples that just do not seem to work.
What I really need to do is this. I have a button that takes information from a variable or just plain text and then puts it into an application that is currently open. What I need to find out is how to focus on the last active program and then past (or sendkeys) to it. Can any one please help me out on this? Some working examples would be very welcome.
Thanks
Steve
|
|
|
|
|
SendKeys will send keystrokes to the currently active window, or the window that has the input focus.
I mention "currently" because the input focus can change from window to window at any time!! Even while SendKeys is posting keystrokes! There is no way to absolutely guarantee that SendKeys sends all of its keys to the application that you want it to.
There is nothing in the .NET BCL that will move the input focus to another application or window, so you'll have to use the Windows API functions SetForegroundWindow and FindWindow to make sure that the window you want to send the keys to has the input focus just before you call SendKeys. But even this is no guarantee that the focus will not change while the keystrokes are being processed!!
Basically, it's just not a reliable method of controlling another application...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I need to connect to secured web page using VB.Net 2005 (desktop app).
How to do those things:
- connect to web page
- keep connected session
- execute urls with parameters (ex. https://mywebpage/sth.do?firstparam=1)
- log off
Please help me.
Thank You for any response
Robert
|
|
|
|
|
I don't know how write next,
this is example
I have control MenuStrip (have menuitem FileMenu)
I want to add some menuitem
I used code below
FileMenu.Item.Add("New", Image, EventHandler)
I dn't know how to write EventHandler
Thanks
................
|
|
|
|
|
hi
please give me scenarios where i should use the remoting.
simply when i have to use remoting??
thank you all
Tamimi - Code
|
|
|
|
|
Tamimi - Code wrote: please give me scenarios where i should use the remoting.
When you are required to communicate across AppDomain boundaries
Tamimi - Code wrote: simply when i have to use remoting??
When you need to communicate across AppDomain boundaries.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
thanks
I don't want to bother you, but could you be more Specific
Tamimi - Code
|
|
|
|
|
Approximately, if you have to call a method remotely, you are pretty much there.
Best,
Jun
|
|
|
|
|
i have a form in vb 6.0, and i want to add horizontal and vertical scrollbar on the form, idont have any idea. so please help me.
Thanks
Thanks
|
|
|
|
|
For example you can add components named HScrollBar and VScrollBar to your form.
Robert
|
|
|
|
|
Thanks for answer
yes i add both of them
i have so many controls on my form so form is too length therefore i want to use scrollbars.
but i dont know how i use them
Thanks
|
|
|
|
|
I think moving many controls placed on form isn't a good way.
I would look for better way for example I would place them in frame and move that frame, not separated controls.
Scroll bars have event "Changed". Use it.
By the way: use dotnet - learning vb6 is mistake.
Robert
|
|
|
|
|
Hi,
I'm trying to make sense out of charts in MS Access 2000.
What I want is a report with a record source that will return X rows of data.
My chart should now be displayed X times.
I know how to set this up, but cant get my chart to display the right data.
When I view it, it displays X charts but all with the same data which is the values of all X charts together.
How do I set it up that chart 1 displays only the data corresponding to, say, client 1?
When I set the Child and Master Fields property to that of the client ID for both the chart's row source and the reports record source, X blank charts are displayed!
you can't forget something you never knew...
|
|
|
|
|
how to use/call wordpad or msword in vb.net2005
Thanks
|
|
|
|
|
Right click ur Project and click properties-> select configuration properties from the left hand pane -> then debugging -> from start action, select Start external program radio button and browse the path for winword.exe or in case an application path (c:\Program files\Microsoft Office\ Office\ Winword.exe).
So after running the project u will find Word coming up......Check for VS.NET 2005, this is way for 2003..
I hope it will help.
Bye
|
|
|
|
|
Thank you it help a bit...
|
|
|
|