|
Hi, guys! I have such not normal question - can I open DateTimePicker programmaticaly? If yes, in what way can I do this?
Thank's!
|
|
|
|
|
I put the control on the form and in the initialize/on_load method I set this.datetimepicker.visible=false. The control cannot be used until I programatically write this.datetimepicker.visible=true .
Glen Harvy
|
|
|
|
|
Actually you don't understand my question. Maybe I formulate my question wrongly...
So I do what I want in such way:
dateTimePicker.Focus();
SendKeys.Send("{F4}");
|
|
|
|
|
i want to stop the event(form_resize) raising when the user resize the form less than its atual size.
thnx.
|
|
|
|
|
Try to write in the event handler something like that
e.Hadled = true;
|
|
|
|
|
You can set the MinSize of the form to stop it being resized to smaller than your set size.
|
|
|
|
|
|
You could have saved yourself (and us) some time by reading the same response to your earlier posting asking the same question.
only two letters away from being an asset
|
|
|
|
|
i am sorry for posting again the same question, actually i did that because i saw the reply to thread of somebody who posted later me so i posted the same thread again but after posting the thread i saw that i got the reply sorry for the inconvinence.
|
|
|
|
|
hi;
i am trying to delete rows from my database but the wizard doesnt create the delete statement so im left with an error, it does create the update statement
anybody had these prob befor?
grz
|
|
|
|
|
I've slept on this and can only think of constraints on your database table.
Attach a copy of the actual database/table and send it to me. I'll see if I can replicate the problem.
You can also attach a copy of your relative ???.cs file so I can check the coding.
Regards,
Glen Harvy
|
|
|
|
|
lo;
you might want to know what the problem was
my acces database had no primary key
thats why the wizard didnt make a delete statement
thx for the help though
grz
|
|
|
|
|
Hi All!
I creating a program, wich is like a macro recorder. It's work fine, and found windows, buttons, and all I need. But I want to send button clicks too, and my problem is I can't detect the enebled/disabled status of a button.
I need this status, becouse the API find the buttons wich is not active .
So how can I detect this status of a button, when I know only it's handle and then informations given by GetWindowInfo API.
Thank's for answer!
|
|
|
|
|
Provided you have the window handle, you could use IsWindowEnabled[^] to get the state of the window.
|
|
|
|
|
Thank's for your help, I think that's what I looking for
|
|
|
|
|
i want to enable one of the security setting in Custum Level of Trusted Site zone in IE.How can we do it programatically.
|
|
|
|
|
i want to resize my form that is only to increase its size but not to decrease or if i decrease the size also the width and height should not be decreased than its actual width and height. In the resize event i used an if else statement to check whether its current height and width are less than the actual one, but the problem is once i stop the resize my form size is the one i want but while i am resizing a vertical blue line is visible due to the width is less than actual width of the form so i want to avoid that line or my resize event should not work when the form width is less than the actual width.
help me..
thanks in advance.
|
|
|
|
|
|
thanks Senthil with that i am able to avoid the appearance of the blue line.
|
|
|
|
|
hello,
can i somehow add to a datagridview cell other controls?
i know that i can set the type of the column(combobox, checkbox, ...)
my proplem is to show a datetimecontrol in a cell (or in the cells of a column)
and so i asked me if there is a general solution to create such a column or cell which contains any control
thnx
|
|
|
|
|
i think you have to derive your own datagrid column class from the ones already available and add the control you want.
I think there are plenty of tutorials around to show how to achieve this with a combobox.
|
|
|
|
|
How to hide drives under My Computer tree in OpenFileDialog box using C#
bsk
|
|
|
|
|
I have a few winforms that are occationally being populated with data-intensive charts. I am experiencing problems with slow respons, and I think the root cause is a slow screen update that is handled outside my code.
While other windows paint almost instantaneous, my windows form may need up to 3 seconds before it's back in shape when I toggle between this form and for instance Internet Explorer.
I figure it has something to do with how .net redraws the form, because no code is running in my application when the subject winform is being refreshed. It may seem like .NET, CRL or whatever is rebuilding the form from scratch every time I have visited another window.
In the same "spirit" the form has a similar response time when I am unchecking one of 15 charts.
Needless to say this is a killer for user ergonomy. Are there any knobs to turn that can improve the situation?
Thanks
|
|
|
|
|
sounds like you need to thread the data retreival and update the form as you get the data.
Also you can cache the data after you get it and only retreive it periodically, however, this won't be required once threading is implemented.
btw, google 'cross thread exception' or similar so you don't end up getting these exceptions when threading is implemented.
kind regards,
g00fy
|
|
|
|
|
thanks for the reply g00fy,
My understanding of .NET and CRL is limited.
I have a form, and the form has been painted. It took some time to do this job, which is ok. But it seems like .NET insists on building and painting the form from scratch every time I have visited another window. And if I press a checkbox it rebuilds everything too. Or so it seems.
Why doesn't it just show the painting? Will multithreading affect how .NET treats the form in this regard?
|
|
|
|