|
Thanks Guffa
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)
|
|
|
|
|
Guffa wrote: throws away the top 12 bits
Actually, it's just splitting it into 2 ints and xoring them - 0x20 (Hex!)
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)
|
|
|
|
|
Yes, you are right. Why didn't I think of that, that is what I would expect it to do...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Which is the elemental code for searching in a datagridview column?. How to give the focus at the row with the value found?
|
|
|
|
|
Not sure what you're trying to do but you don't need to search into Columns, you can simply search in Rows:
DataGridView dgv = new DataGridView();
DataGridViewRow dgvr = new DataGridViewRow();
dgvr.Cells[0].Value = "Hello!";
dgv.Rows[dgv.Rows.IndexOf(dgvr)].Selected = true;
While (true) { Human.isLearnable = true; }
|
|
|
|
|
You can do that with sql procedures, after trigger it in a c# event
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
|
Hi guys,
Need some help please. I have a scan feature in my form and on form_load I am trying to fire the btnScan.performclick() event. It works but my form doesn't load until scanner times out or then I scan. I want the form to load and the picturebox to show no image while the scanner is waiting for an image.
I hope I am making sense.
Sameer
Sameer
|
|
|
|
|
Have a timer that gets started in the form load event, and then do the btnScan.PerformClick() in the timer's event handler.
-----
In the land of the blind, the one eyed man is king.
|
|
|
|
|
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
|
|
|
|