|
i've developed the windows application with C#.NET 2008 on WinXP SP2 and i need to not allow any keyboard input(except mouse) within my application.
How can i do this ?
Thank
^^
modified on Tuesday, July 1, 2008 6:28 AM
|
|
|
|
|
You shouldn't do this. What about people who don't like using mice.
Why are you trying to disable the keyboard?
Simon
|
|
|
|
|
You can use e.SuppressKeyPress = true in KeyDown event.
|
|
|
|
|
Google IT![^]
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 homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
How can I show the records related to the checked rows in the grid?
Well to understand my point let's take a example,suppose there is grid showing User names if I checked four user names among ten and I want to show there details like address,email id etc in another grid on another page on a button click.These user details are stored in another table.
How can I pass multiple checked values to sql server db and get back multiple results???
|
|
|
|
|
I really Dont understand what you are saying
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
thnx 4 your interest.I have a grid showing user names and below the grid there is a button.If I select three users in the grid by clicking the check boxes in front of them and clik on the button,then another page having detailed information about the selected users should display..
so my point is how to send these multiple names in qury to the database?
|
|
|
|
|
hi
Ok your explanation is Clearer than before, i understand what you want to do. but now you are Confusing me again when you say
so my point is how to send these multiple names in qury to the database?
Do you mean insert them into the Database ?
Explain more, i understand English is a Problem, but try a bit more to be details in your last Statement.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Thank you so much for communication so far.
Dear Vuyiswa I mean that only i.e. I want to inser them into the database.
|
|
|
|
|
I sugest you have a column( called user id) hidden on the data gridview. When you check 4 boxes out of ten then you can use something like.
dim id as integer()
for i as integer = 0 to dgv.rowcount-1
if dgv.rows(i).cols(0).value = true' this is your checked column
id = cint(dgv.rows(i).cols("userid).value)
end if
next
I wrote this code in the reply window you may have to change some few things. id should be public to your project. Once you have populated user id's in the array then
In your new form load you can use something like
for i as integer = 0 to id.getupperbound(0)
sql = "SELECT * FROM table where field = " & id(i)
'decide what you can do here
next
|
|
|
|
|
Hi lnkgoeng,
Thnx a lot for providing me solution.Well I'll try this and will get back to you.
|
|
|
|
|
|
This should really be asked in the ASP.NET forum because it's not actually a question about C#, it's a "how should I architect my web based application".
|
|
|
|
|
Well I'll be writing the code in C#, so it's not all that daft a place to put it...It's a given that my environment is ASP. Thanks anyway though.
|
|
|
|
|
Hello
MSTest /testcontainer:"%comp_path%\TestProject\bin\Debug\TestProject.dll" /runconfig:"%comp_path%\localtestrun.testrunconfig"
/resultsfile:"%logspath%\StandardRealizationTestProject_%mydate%_%mytime%.trx" >>%logfile_path%
this is my test to run my tests over a script.
The TestData directory added in the localtestrun.testrunconfig does not used by the test and the tests does not run succefully ?
any suggestion...
dghdfghdfghdfghdgh
|
|
|
|
|
Hi All,
I am using the Asp.net, C# and SQL Reporting Services 2005 in my project.
What i am doing to send the contents ion mail that i create the aspx page at runtime and append its source in the Email body content. and just send the mail.
But when i use SQL Report my dynamic page and send the mail then these reports are not render at runtime thus in the mail it shows that "your browser does not support script" etc.....
When i run that dynamic page it is showing fine and reports also render very fine..
but when i see the page in debug mode in HTML format its giving same error "Your browser...."
what i m doing wrong ???
Why the report is not going in email ?
please help...
thanks
Nitin
|
|
|
|
|
Hi
i want to search in image to extract subImage from it, then compare subImage with another image(another image is my template), for example my template image is pen, then in an image, i want to search it to find pen (base on template image), but i don't know how to do this, can anyBody help me ?
thanks.
|
|
|
|
|
|
Hi Alan
can u give me sample code ?
thanks
|
|
|
|
|
are you looking for an exact grid of pixels in the image or something softer like a thing that looks to a certain extent like the other image.
If you have both images as bitmaps then take the colour value of pixel (0,0) in the image you are looking for. Then search the first image till you find a match. When you have a match check to see if pixel (1,0) matches the next pixel along in the image. If it does go to pixel(2,0) etc. If the pixel doesn't match go back to searching the image for the colour value from Pixel(0,0) again until you either find a match or run out of image to search.
Russell
|
|
|
|
|
Hi Russell
you mean i must search pixel by pixel ?
can u give me a sample code ?
thanks
|
|
|
|
|
when program startup, I will give a parameter to main meth.
then this parameter will transfer to MainForm(parameter of "Application.Run" method).
But if program has run, how fransfer this parameter or get the MainForm?
|
|
|
|
|
Do you mean you want send some values as parameters to Main?
This can be done like: Goto "Project properties -> Debug -> command line arguments" and put values separated by space.
|
|
|
|
|
yes.
But i want to send this parameter to WindowsForm yet.
|
|
|
|
|
Well in that case, create a parameterized constructor of the form you are calling in Applicatio.Run() and send the values.
|
|
|
|