|
|
Thanks all.
I really should have looked at the FAQ !
|
|
|
|
|
hello,
I want to deselect a row in the datagridview, and I'm using the code:
<br />
if ( dgv[ hti.ColumnIndex, hti.RowIndex ].Selected )<br />
{<br />
dgv[ hti.ColumnIndex, hti.RowIndex ].Selected = false;<br />
}<br />
else<br />
{<br />
dgv[ hti.ColumnIndex, hti.RowIndex ].Selected = true;<br />
}<br />
this code is in the DatagridView_MouseClick.
the code does not work, anybody knows why?
thank you
|
|
|
|
|
First of all you could have written this like this:
<br />
dgv[ hti.ColumnIndex, hti.RowIndex ].Selected=!(dgv[ hti.ColumnIndex, hti.RowIndex ].Selected);<br />
Secondly, if the row is not selected it will become selected. Do you want this to happen?
|
|
|
|
|
You can use ClearSelection function of DataGridView
|
|
|
|
|
Hi,
this also works
dgv[ hti.ColumnIndex, hti.RowIndex ].SelectedIndex = -1
rAm
i Think, i Wait, i Fast -- Siddartha
|
|
|
|
|
the "SelectedIndex" does not exist in this case.
|
|
|
|
|
how can i activate a function when a user pressed a button while the program that should do this work is hidden:
if i'm working in microsoft word office, how can i follow every pressed button?
|
|
|
|
|
This smells like malware. The first think you'll need to do is to convince us that you've got a legitimate reason behind this requirement.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
My will is good! don't worry
|
|
|
|
|
Yep - that's convincing....
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Try to findout keyboard logger in c# from google. The key board logger keeps record what u have pressed
evilinside
|
|
|
|
|
you have to write window hook.Its programming written in vc.Hook is mediator between application and window os.
nJoy hook
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
MUHHHAAHAHAHHAAH, I DID IT!!!1
THANK FOR EVERY ONE WHO TRIED TO HELP ME!
|
|
|
|
|
Hi All,
Actually I was't sure of which message board to choose.
Anyhow, my problem is that I select arabic data from MySQL table into a DataTable in VS.net but when I try 2 insert the selected data, it inserts it as '???' though I chose the "utf-8"character set in connection string.
It's just that when the records are fetched to .net table, they are transformed to "???"
Any clue how 2 solve this??
Thnx a lot in advance
|
|
|
|
|
Which version of mysql are you running?
First make sure that you connection string looks like something like this:
"Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4}; Charset=utf8;"
In order to check if the actual records contain '???' or they are transformed into them after checking execute this query:
SELECT HEX(column_name)
FROM table_name;
IF it displays 3f then the data itself is ???
|
|
|
|
|
I'm using mysql 4.1
The original data doesn't contain '?????' & yeah my connection string looks like u said
Any clue??
Thanks a lot
|
|
|
|
|
Hi
I was have the same problem
I solve it like this ......
-- My DataBase Charset was Latin_swidsh_c1
-- when I have to insert any word any recored in arabic I have to run this Query , it's like that
Exactly....
set names cp1256
and when I found my old project I will write it exactly ...
hope that will help you ... for now
cause in the past I got sick of this problem
but thank GOD it's solved now ... so I will search for you ... it's promise
Have a good day ...
I know nothing , I know nothing
|
|
|
|
|
ok now here we go
I will tell you exactly what I did to solve this
just make sure that when you create the database it has
latin1_swedish_ci Charset
and the all other things are default ,
my replay before was for Php & MySql ......... ( set names cp1256 ) sorry
have a good day
I know nothing , I know nothing
|
|
|
|
|
Hi
I need send bytes and received to a dummy device via infrared.
I creat port com based in serial com component framework 2.0, and da name port i consult da regedit and obtain this information.
The port is open, but when i send a array of bytes the program guive me a IOException.
serialP_.Write(buffer,0,buffer.Lenght);
Please help...
RafNunes
|
|
|
|
|
What's the error message you're receiving?
|
|
|
|
|
|
That's no different that what you already said. What does the Message property in the IOException say?
|
|
|
|
|
The problem is the Message property return "IoException"...
|
|
|
|
|
OK. SO now, without seeing the code that throwing the exception, there's really nothing to tell you. There's about a 20 different reasons this can fail.
|
|
|
|