|
well there's a method and its this
use asycgetkeyborardstate().its is an api
but almost all antiviruses are able to detect its use
so it will be impossible to use it for malicious purposes
TheMrProgrammer
|
|
|
|
|
Is it possible to show the calendar screen of a DateTimePicker control by clicking an image instead of clicking the control's downward triangle? I cannot find a property from the class for showing the calender screen. please help. Thanks.
Eric H.
|
|
|
|
|
AFAIK DateTimePicker exposes nothing about that down arrow. I can suggest either to go for a third party control or override OnPaint for the form and Paint an image on the down arrow.
|
|
|
|
|
Thank you,
I will solve the problem by writting the following
DateTimePicker1.Select()
SendKeys.Send("%{DOWN}")
If other suggestion, please advise
Eric H.
|
|
|
|
|
My bad. I thought you need to replace the down arrow of the datetimepicker with some other image. Your requirement seems different. Although, still not clear to me.
|
|
|
|
|
I will try to be clearer.
When you click the DateTimePicker control, at run time, the calendar is popping-up, doesn't it?
What I needed, instead of clicking the DateTimePicker control to get this popup window, is to click on a button and to get the same screen.
My target was to put on a button an icon of calendar and when the user click the button he will get the popup screen.
I hope it was clear now.
Eric H.
|
|
|
|
|
You can always build your own control/dialog, using MonthCalendar and pop that up in response to the button click.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Ok I'm kind of confused here. I have an imagelist that begins with one image that should stay. Other images are added and removed at runtime but this is where I'm having problems. It seems to always assign the image to the one before the correct one. I tried adding +/- 1 but it didn't do anything.
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
|
|
|
|
|
If you posted some code, we may be able to follow what you mean.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi
I am new in using vb.net 2005 and I am having some problems .
I'm trying to use the class "thread" in my own class "station"
But my problem is that the class "thread" is a notinheritable class.
I found some solutions, using mastinherit but I did not understand how I can use it in my class.
can any one help me ????
|
|
|
|
|
Id a class is marked and not inheritable (sealed in C#) then you can't inherit form it. Your only bet would be to write a class that wraps the functionality of the class you need.
|
|
|
|
|
what do you mean with wrap?
and how can I warp a class
|
|
|
|
|
So my first question here is are you trying to just use a thread in your class or are you trying to create a new class that inherits from thread as a base. After re-reading your original question I am not quite sure.
To wrap a class all you do is create a new class that has the name you want, in this case for example 'MyThread'. Then in the constructor you create an instance of the class you wanted to inherit from. Your new class simply exposes all of the methods of the class you are wrapping, but also exposes some of the new methods or new functionality that you wanted to include.
Keep in mind that this is not true inheritance so you cannot rely on being able to use your new class as a drop in replacement for other methods that are coded to accept a thread class, but it gets you as close to what you want as you can get without being able to inherit.
|
|
|
|
|
How can I write With cluse with Linq?
bah10z
|
|
|
|
|
Could you perhaps explain what you mean - you want to use LINQ to write a SQL clause that includes the with keyword ?
Here's a question - why do you have to use LINQ ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
This is a simple yet strange (to me) problem.In one project I can add rows to a dataset by:
Dataset created dsWaterReadings and datatable inside it dtWater.
dsWaterReadings.dtWater.Rows.Add("value1", "value2")
In the other project
I have created the same dsWaterReadings and dtWater
Now if I type:
dsWaterReadings.dtWater it forces me to chose dtWaterDataTable and that does not have a rows property.
Using dtWaterRow yeilds even less properties. What could the difference be. All references are idential apart from System.Configuration (which I dont think is the problem)
Many thanks
Andrew
|
|
|
|
|
ensure that you have the datatable adapter define in your program so it can bring forward the table you want to add rows on
for example
dim da as new da.DBdataadapter.table
dim dt as new dt.datasettable
this will ensure you can call anytable on your database
|
|
|
|
|
|
Hi. I'm making a treeview and the items on it are dynamically assigned a context menu and info about the node is used in an operation from the menu. My code works fine except if you left click item 1, then right click item 2, it opens the menu as if item 1 was selected. It only works correctly if you left click item 2 before right clicking it. Any way to fix this?
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
|
|
|
|
|
Set the right clicked node as selected node in NodeMouseClick event.
|
|
|
|
|
use the context menu property of the treeview.
bah10z
|
|
|
|
|
Hi,
i would like to know which font is best in dotmatrix printer.
now i took printout using times new roamn font. but its take long time to print page.
i think this font is not good for dot matrix printout.
plz give suggestion.
Please help. Thanks.
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
I don't see how the selection of font makes any difference.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
ya i took one print out using timesnewroman font.
its look bold of fonts.
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
First, This is not a right Place to Post your Question.
There is no Different if using different fonts for printing ,
it's all depends on your printer Speed.
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|