|
Thats true but I think the OP is asking how to display those in the textbox so that someone understands that it is looking for a date.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
just use a datetimepicker
Nab
|
|
|
|
|
Sir/Madam,
Can somebody please tell me the meaning of Referential classes and if possible please send the link of code that illustrates the referential classes
Thanks and regards
Pankaj
|
|
|
|
|
Sir/Madam,
I wanted to know the basic meaning of MyBase and one more thing , which is that , I read somewhere MyBase.Finalize Finalize is the destructor , I know but I wanted to know the meaning of MyBase.Finalize.
Please help
Thanks and Regards
Pankaj
|
|
|
|
|
Do you mean myBase[^], or what do you mean?
If MyBase is a class of yours that has a Finalze method, then that method is the finalizer of the class. A finalizer is usually only used as a backup for the Dispose method in a class that implements the IDisposable interface.
(Classes in C++ have destructors, and the same syntax is used for finalizers in C#, but finalizing in .NET works differently from destruction in C++, so I prefer the term finalizer to emphasise the difference).
When an object is about to be garbage collected, and it has a finalizer, the object will instead be placed in a queue of objects to be finalized. A background thread will run the Finalize method of each object in turn, and after that the object can be garbage collected.
---
single minded; short sighted; long gone;
|
|
|
|
|
MyBase refers to the base class that your class inherits from. It's normally used to call methods or set properties, or what have you, that are implemented in the base class.
Public Class MyTextBoxClass
Inherits System.Windows.Forms.TextBox
...
' Sets the location of the top left corner of our TextBox
MyBase.Location = New Point(40,20)
Also, there are no such things as destructors in the .NET Framework. Dispose and Finalize just gives an object it's last chance to clean up any resources it has to before the GC collects the object.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sir/madam,
I wanted to know the utility of IDispose interface in the code.Can u please explain with the help of an example.
Thanks and Regards
Pankaj
|
|
|
|
|
Here is a discussion I posted last month.
Implementing Implements System.IDisposable[^]
CleAkO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Sir/Madam,
I was trying a compression program in vb.net.I did it well in C++.But it is not getting possible in vb.net.Can somebody please send the code project link that illustrate the utility of single and double link list
Like the node that contains two sub nodes namely left node and right node.
the left node contains the address and right node too contains the address
in vb.net
Thanks and regards
Pankaj
|
|
|
|
|
i want to create dynamic crystal report.
fields of report will be chosen at the runtime.
|
|
|
|
|
How i create plugins to add to windows media center?
|
|
|
|
|
i have a form which has a groupbox with some labels and buttons
and i want to read this form in xml.i made a xml file but it doesn't work:
<object type="groupbox" name="fralogin">
<object type="commandbutton" name="cmdOk">
<capition value="OK">
<tooltiptext value="">
<object type="commandbutton" name="cmdCancel">
<capition value="Intrerupere">
<tooltiptext value="">
<object type="textbox" name="txtsyskey">
<capition value="">
<tooltiptext value="">
<object type="textbox" name="txtPassword">
<capition value="">
<tooltiptext value="">
<object type="textbox" name="txtUserName">
<capition value="">
<tooltiptext value="">
|
|
|
|
|
What do you expect this xml file to 'do' ? Xml doesn't 'do' anything, it's just a representation of data.
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 )
|
|
|
|
|
I am retriving the image file from Database.. I've applied these coding part....So i got these Error...
"Conversion from string "D:\Documents and Settings\somasu" to type 'Integer' is not valid"
Pls help me
Private Sub cmb_id_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmb_id.SelectedIndexChanged
Try
MsgBox(cmb_id.SelectedItem)
con.Close()
con.Open()
cmd = New OleDbCommand("select * from emp_details_tab where emp_id=" & cmb_id.SelectedItem & "", con)
dr = cmd.ExecuteReader()
While dr.Read()
Dim file As String = ("D:\Documents and Settings\somasundaram\My Documents\My Pictures\Srinath.jpg")
Dim MyData() As Byte
MyData = dr("employ_image")
Dim k As Long
k = UBound(MyData)
'Dim fs As New IO.FileStream("D:\Documents and Settings\somasundaram\My Documents\My Pictures\AjayJadeja.jpg", IO.FileMode.OpenOrCreate, IO.FileAccess.Write)
Dim fs As New IO.FileStream(file, FileMode.OpenOrCreate, FileAccess.Write)
fs.Write(MyData, 0, k)
fs.Close()
txt_name.Text = dr.GetValue(1)
txt_address.Text = dr.GetValue(2)
MaskedTextBox1.Text = dr.GetValue(3)
MaskedTextBox2.Text = dr.GetValue(4)
txt_qualify.Text = dr.GetValue(5)
txt_no_yrs_exp.Text = dr.GetValue(6)
txt_worked_exp.Text = dr.GetValue(7)
(ERROR) Emp_image.Image = dr.GetValue(file)
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
con.Close()
End Try
somasundaram
|
|
|
|
|
I am retriving the image file from Database.. I've applied these coding part....So i got these Error...
"Conversion from string "D:\Documents and Settings\somasu" to type 'Integer' is not valid"
Pls help me
Private Sub cmb_id_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmb_id.SelectedIndexChanged
Try
MsgBox(cmb_id.SelectedItem)
con.Close()
con.Open()
cmd = New OleDbCommand("select * from emp_details_tab where emp_id=" & cmb_id.SelectedItem & "", con)
dr = cmd.ExecuteReader()
While dr.Read()
Dim file As String = ("D:\Documents and Settings\somasundaram\My Documents\My Pictures\Srinath.jpg")
Dim MyData() As Byte
MyData = dr("employ_image")
Dim k As Long
k = UBound(MyData)
'Dim fs As New IO.FileStream("D:\Documents and Settings\somasundaram\My Documents\My Pictures\AjayJadeja.jpg", IO.FileMode.OpenOrCreate, IO.FileAccess.Write)
Dim fs As New IO.FileStream(file, FileMode.OpenOrCreate, FileAccess.Write)
fs.Write(MyData, 0, k)
fs.Close()
txt_name.Text = dr.GetValue(1)
txt_address.Text = dr.GetValue(2)
MaskedTextBox1.Text = dr.GetValue(3)
MaskedTextBox2.Text = dr.GetValue(4)
txt_qualify.Text = dr.GetValue(5)
txt_no_yrs_exp.Text = dr.GetValue(6)
txt_worked_exp.Text = dr.GetValue(7)
(ERROR) Emp_image.Image = dr.GetValue(file)
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
con.Close()
End Try
I want to join in the website
|
|
|
|
|
somagunasekaran wrote: Emp_image.Image = dr.GetValue(file)
file is a string, as defined previously, that contains the name of the file. The method you call expects an integer, the ordinal position of the column you are trying to retrieve.
I don't know what, exactly, you are trying to achieve at this point. What do you think should be happening on this line?
|
|
|
|
|
Ok what to do???? pls tel me the error...
Emp_image.image=dr.GetValue(file)
this line only Error.. pls tel me ....
file is a pathname...so applied..So u pls correct this code.....pls
somasundaram
|
|
|
|
|
somagunasekaran wrote: Ok what to do???? pls tel me the error...
I've told you the error.
The error is you have put a string where an int was expected.
somagunasekaran wrote: file is a pathname...so applied..So u pls correct this code.....pls
You need to tell me what you EXPECT the code to do. I do not know what you are tying to do. Until you tell me what you are trying to do I cannot help you.
|
|
|
|
|
Hi guys,
I want to take snapshot of form at runtime without manually pressing the 'Prt Scr' key is it possible if yes can any one guide me how. i want to stored the snap shot of the form in my database.
Please help me thanks in advance.
Sasmi
|
|
|
|
|
You have to create a Bitmap with form's size. Then, create a new Graphics from the Bitmap, and then call the "CopyFromScreen" method of the Graphics object. Here you have c# sample code... You only have to translate to vs basic.
Bitmap oCaptura = new Bitmap(this.Width, this.Height);
Graphics oGfx = Graphics.FromImage((Image)oCaptura);
oGfx.CopyFromScreen(...)
|
|
|
|
|
Helloo Friends,
I want to make my Datagridview column as numeric only.
How can we restrict user from entering other characters than numbers.
If we wnt to do this in case of textbox we will write code into textbox's keypress event.
So in case of datagridview How can we make numeric column?
I m developing application in VB.net(WinFroms)-2005
Thanks fro any help in Advance
"The Difficult i can do it now...
The Impossible will take a little longer."
|
|
|
|
|
What is the source code available to connect Visual Basic6.0 with Matlab
with best regards
poulomig
|
|
|
|
|
Hey all,
I have a form in which i want the user to be able to delete all there private data i.e. cookies, recent files, temp Internet files and stuff like that. What is the command to delete all the files in a certain folder and how would i make it recognise which account they are running the program and delete only there files.
Thank You
|
|
|
|
|
Just deleting the files in the user Temporary Internet Files folder, and subfolders, doesn't work. You have to call into the Win32 API to clear the browser history cache.
If you just want a utility, you can save yourself the time of writing something yourself by checking into something that's prewritten for you, like this[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
What is the code for creating a md4 hash using vb.net?
Radiit
|
|
|
|