|
Thank you for your suggestion, it worked...
S
Sameer
|
|
|
|
|
I think you need Threading[^]
While (true) { Human.isLearnable = true; }
|
|
|
|
|
can you please give me an example
Thanks
Sameer
|
|
|
|
|
Sure[^]
While (true) { Human.isLearnable = true; }
|
|
|
|
|
For simplicity - use the BackgroundWorker component.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Thank you Davey,
I decided to go with a timer that calls the performclick event. Thanks
S
Sameer
|
|
|
|
|
You don't put all the code for doing the scan in the btnScan.Click event handler. You put it in it's own method somewhere, then you can call that method from anywhere in your code, including the btnScan.Click event handler AND from in your Load event.
|
|
|
|
|
Thank you Dave for your response. I tried your suggestion and it didn't work, I believe the problem is that I have a while loop that waits for a response from the scanner in my btnscan_click event.
I instead added a timer and I am calling the btnScan.Performclick from there. That seems to be working, I am not sure if this is the best way to go with it but it works
Sameer
Sameer
|
|
|
|
|
hi,
I work in an application to show figures. I want diferent layers to each figue. I need draw figures independently one to another.
I´m using a transparent bitmap for each figure, and in OnPaint of a panel i draw all. But i got flicker when i move the objets.
What tecnics or class i could use to acomplish mi goals.
Thanks
Marcos.
|
|
|
|
|
Using DirectX would be a better approach. Have a look into 2D imaging in XNA.
Cheers,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
Thanks Mark, Im investigating directx now.
|
|
|
|
|
You need to make sure that no graphic manipulation is being done by any other method except the OnPaint method. The graphical and logical aspects of user controls must be independent for a smoot and flicker free control.
One of my articles has been able to help quite a few people with custom paint routines: Basics of Falling Blocks in VB 2005[^]
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
hi Thomas.
I read your article. I have problems with graphics. the quid of question is what tool i must to use to implement layered grapchics?. Then each figure must respond to mouse events, and have their own properties.
regards
Marcos
|
|
|
|
|
Well, basically you could have a collection of the layered objects. The layered object would hold important points, color information, and size information. Then the OnPaint method would have iterate through each of those objects and reproduce the graphics based on the information from the collection.
For mouse events, just find out which graphic is underneath the mouse when it is clicked. Then iterate through the collection until you find a graphic with the specified point. Then manipulate the objects point information.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
See if you can set the Panel's DoubleBuffered property to true. This usually helps reduce flickering.
Brandon
|
|
|
|
|
Brandon
Your recomendation works. I have no flicker now. thanks.
Marcos
|
|
|
|
|
HI,
I got job in C# ,i was wondered how will be the project . i have Microsoft certification in asp.net.I know the concepts but i learned long back in 2005.
Thanks
|
|
|
|
|
mkalantri wrote: Thanks
You're welcome!
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Sounds like it's going to be a bit tough if you haven't touched C# for 3 years. I'd recommend:
1. Learn to post in the correct forum. This one is for specific C# coding issues only. If you don't observe the basic site rules, people here will get fed up very quickly. It sounds like you may be asking for a lot of help very soon so you don't want that.
2. Dig out your C# books, get some new ones if needed and get reading.
3. Ask your employer (if you haven't already) what project(s) your going to be working on and do some research and experimental coding NOW on those subjects or you'll be unemployed very quickly.
4. If you can't handle it, be honest and quit so someone who's really qualified may get the job without having to clean up too much mess. This may not be neccesary - but if it is, do it.
[Edit] By the way, congratulations and good luck [/Edit]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
If you have MS certification post answers instead!!!ok???
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hi,
Can I create a UserControl that can be used in WPF by using the Language Service Package comes with VS SDK ?
VSSDKInstallDir\VisualStudioIntegration\Tools\Babel
Thanks!
Charith Jayasundara
|
|
|
|
|
Yes, there is more than one sample that shows you how to do this.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - coming soon ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Hmm, There are some samples for VS integration packages... But I couldn't find anything for creating usercontrol using this. If you know any link could you please send it to me?
Thanks!
Charith Jayasundara
|
|
|
|
|
I am not getting the connection here. How is creating/using a UserControl in WPF related to Language Services?
led mike
|
|
|
|
|
led mike wrote: How is creating/using a UserControl in WPF related to Language Services?
He is using the VS SDK. There are some sample that shows you to use .net controls for use inside VS. IIRC you can host a WPF control in a Winforms control.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - coming soon ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|