|
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 <--
|
|
|
|
|
then where i post?
this is forum.
we can share our doubts and knowledge...
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
A printer is hardware. There is a Hardware and Devices forum on CodeProject. That would sound like a good place to me. This is the Visual Basic Forum, it is where people normally post questions about VB, NOT about printers.
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.”
|
|
|
|
|
TO : m2kannan
There is Forum "GENERAL IT ISSUES" in the Code Project. I Think that is the right place for u r Q.
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Hi, i have a form with text boxes for username, initials, and password on.
Also on this form are a few checkboxes which at the minute i simply want to save their state to SQL as true or false depending if ticked or not. The checkboxes or text boxes are not bound to anything, and are used only for creating a new record in the table.
There is a gridview below these boxes showing already created records.
The code im using to insert to SQL with is:
If String.IsNullOrEmpty(UsernameTb.Text) Then
MsgBox("You must enter a Username!")
Else
If String.IsNullOrEmpty(InitialsTb.Text) Then
MsgBox("You must enter users Initials!")
Else
If String.IsNullOrEmpty(PasswordTb.Text) Then
MsgBox("You must enter a Password!")
Else
Try
Me.UsersTableAdapter.AddUserQry(UsernameTb.Text, InitialsTb.Text, PasswordTb.Text, ApplicationsChkbx.Checked, AdministrationChkBx.Checked, CustomerSearchChkBx.Checked, CustomerFormChkbx.Checked, UnderWrittingChkBx.Checked)
'Update the Gridview and notify account created
Me.UsersTableAdapter.Fill(Me.WDA_SQLDataSet.Users)
MsgBox("Created user " & UsernameTb.Text)
'Empty all the text boxes and set check boxes back to unticked state
UsernameTb.Text = Nothing
InitialsTb.Text = Nothing
PasswordTb.Text = Nothing
AdministrationChkBx.CheckState = 0
ApplicationsChkbx.CheckState = 0
CustomerFormChkbx.CheckState = 0
CustomerSearchChkBx.CheckState = 0
UnderWrittingChkBx.CheckState = 0
Catch ex As Exception
MsgBox("Error will robinson, error")
End Try
End If
End If
End If
"AddUserQry" is a Query on the dataset for that table:
INSERT INTO [Users] ([Username], [Initials], [Password], [Applications_Access], [Administration_Access], [CustomerSearch_Access], [CustomerForm_Access], [Underwritting_Access]) VALUES (@Username, @Initials, @Password, @Applications_Access, @Administration_Access, @CustomerSearch_Access, @CustomerForm_Access, @Underwritting_Access);
SELECT ID, Username, Initials, Password, Applications_Access, Administration_Access, CustomerSearch_Access, CustomerForm_Access, Underwritting_Access FROM Users WHERE (ID = SCOPE_IDENTITY())
For some reason when i create a new record, it saves the check state as -1 for checked, and 0 for unchecked. the table columns are varchar(5) for the check boxes.
Using checkboxname.checkstate doesent work either - that saves the state as 1 or 0 (as opposed to -1 and 0)
On another form i made for editing existing entries, i have the same text boxes and check boxes, which are bound so they show the record details. when using that form to EDIT an entry, it saves the check box states as "True" or "False" as it should do.
Im completely stumped here, because if i create a new user it then breaks the gridview showing users, because it throws up error messages about "-1 not being valid boolean" when it attempts to render each check box in a grid view.
Has anyone got any ideas why this is happening? and how i can make the insert save the check box state as boolean? im losing sleep over this one, litteraly!
any help/suggestions much appreciated
|
|
|
|
|
FthrJACK wrote: Using checkboxname.checkstate doesent work either
Have you tried checkboxname.Checked ?
It sounds silly but it at least has the virtue of returning a boolean value.
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.”
|
|
|
|
|
hi, yes im using checkboxname.checked if you look at the code snippet above. however it saves as -1 and 0
.checkstate saves as 1 and 0
.checked gives minus 1? strange isnt it?
hence why im so perplexed by it!
|
|
|
|