|
date and time picker control to display time only and not date.
|
|
|
|
|
not sure if is this way in 2003 but in 2005, change the format property to 'time'
|
|
|
|
|
I am trying to make a custom control. Should I extend the UserControl Class or should I extend the Button or TextBox or whatever class?
What are the differences of each inheritance?
Can anyone recommend any tips or articles?
Yoshimitsu
|
|
|
|
|
That depends on what you are trying to do.
If you are simply trying to add a need feature to a textbox then it might just be simpler to start by inheriting from TextBox and move on.
If you want to build a textbox with tons of new things that the existing textbox does not do then you may want to start with a blank control and take care of everything yourself.
If you are just building a small enhancement do not overlook building an extender control.
|
|
|
|
|
Thanks Ray.
What I need to do is make a round button, so I am a little confused if I should extend the button class or UserControl. I guess usercontrol will not give me all the functionality of a button but then if I extend button will I be able to make it round? My guess is no.
Yoshimitsu
|
|
|
|
|
Each Control has its own Region
You Should Make an Elliptic Region For You Button if You Use Button.
But if You Use Usercontrol.You have to set the region to an elliptic one and also make some changes in mouseclick event of usercontrol to make your control having click event like a button.
AEK
|
|
|
|
|
Hi,
I'm using an USB API writed in C++. I've declared each function in VB.net and it works ok. But I'd like to have a VB.net event when USB data is available (like VB COMM control). I thought to make an user control with a timer control inside, where I could evaluate a variable and depending on the state, raise an vb.net event, but I guest it is not a good programming practice.
Could anyone suggest me any solution ?
Thanks
coadorna2003.
german
|
|
|
|
|
A Timer is a lousy way to go. It generates a ton of execution overhead since the code attached to the Tick event has to constantly poll to see if there's data available.
The best option is if the library you're using exposes this functionality. Somehow, I doubt it, because that's something that normally left up to the driver of the USB device to supply.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sorry to ask what is probably an elementary question, but I've searched the site and other places for this. Clearly, my general understanding of the underlying architecture is a bit weak.
Is there a particular advantage to sharing methods through modules rather than instantiating them from a class? I found for instance that synclock() doesn't work in a module, but works fine from a class. That got me to wondering about why modules are used at all.
|
|
|
|
|
Modules are there for backwards compatibility with the older version of VB. Going forward it would be best to use classes. If you want to use the features that modules really used to be used for (a place to put functions that could be called from anywhere) consider a cl;ass with shared members instead.
|
|
|
|
|
Hello every one,
I created a project with ClassLibrary(Visual Basic 2005) and I added a ComClass file to it .In ComClass there are some functions and when I run this project it creates a dll file and I can access to all of functions that I defined in ComClass .I call this dll in a Macro in Word(microsoft office 2003) ,I can see all of functions that I define in my ComClass file but I need to access to a global variable in this ComClass ,I defined a public variable in top of ComClass file but I can not see and access to it from out of project.I mean I can not see global variable from Macro that uses this dll.
If any one knows how can I use global variable in ComClass please Inform me.
I'd appreciated for any help.
yours sincerely.
Orchid
|
|
|
|
|
Hi,
How do I set both bold, italics and underline style to my text box value dynamically.
Regards
Rams.
Be simple and Be sample.
|
|
|
|
|
A regular TextBox does not support formatted text. You can use a RichTextBox instead.
---
Year happy = new Year(2007);
|
|
|
|
|
Actually it does support it:
Me.TextBox1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Italic), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
|
|
|
|
That is formatting of the text box, not formatting of the text box value as the OP asked for.
But, then again, perhaps the OP doesn't want what he asks for. That is not so uncommon...
---
Year happy = new Year(2007);
|
|
|
|
|
how to compress a file in vb.net?
meaning
having a 'txt' file ,how can i compress it
Regards
Ramy
|
|
|
|
|
Do you have .NET 2.0 ? I think it has zip support.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
yep i noticed that...
but can you just tel me how to zip the folder ,coz i m fed up with that?
thx
Regards
Ramy
|
|
|
|
|
|
thx for this,
i went into this
but i noticed that in 'create a Zip file'
Dim zip As New Chilkat.Zip()
is not defined
any help for that?
-- modified at 9:26 Monday 22nd January, 2007
Sorry found the DLL
Regards
Ramy
|
|
|
|
|
You could also have a look at Planet source code for another zip class source code
Steve Jowett
|
|
|
|
|
can u hlpe me with the following
i went into the following
i was told that the Dll is in
http://www.chilkatsoft.com/downloads.asp
but i cant enter this site (restricted) can u tell me where can i get the DLL chilkat.dll from (other then the above site) ?
or can u simply upload it ?
thx
Regards
Ramy
|
|
|
|
|
i have download this code
but i noticed that 'Chilkat' needs a license after 30 days?
am i right?
i can use this Dll just for 30 days for free?
Regards
Ramy
|
|
|
|
|
Probably, yes.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi,
Is there any way in which i can change the background color of the tool bar on a form in a windows application?
Please let me knw.
Thanks
Riz
|
|
|
|