|
Dave Kreskowiak wrote: The ellipse isn't a clickable object. It's only a picture drawn on the surface of another control.
Yes i know that
I found the following
else if(control is System.Windows.Forms.Button)<br />
{<br />
Button button = (Button)control;<br />
<br />
button.Text = "";<br />
<br />
button.Cursor = Cursors.Hand;
the aboce as u notice is written with C#
can you help to modify it ,and write in vb.net 2005?
i have drwan many ellipse.and all waht i want is to be able to click on that drwan ellipse,when the user clicks on ellipse1 do action 1.if he click on ellipse2 do action2....
Thx
Regards
Ramy
|
|
|
|
|
How do I set my databound form controls to contain the same default values as specified by my database? So that I don't get "does not allow NULL" errors when adding and saving a new record.
According to me the controls are properly bound by bindingsource - the works.
(VS2005 & SQL2000)
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann
|
|
|
|
|
Before you add a new row to your DataTable control you should set the .DefaultValue of each column in that DataTable. Personally, I always set my DefaultValues to an empty string if it is a text column, and a zero if it a numeric column. To do this, I use this method in my global module:
Public Sub SetDefaultValues(ByRef dt As DataTable)<br />
For Each colColumn As DataColumn In dt.Columns<br />
Select Case colColumn.DataType.FullName<br />
Case "System.String"<br />
colColumn.DefaultValue = String.Empty<br />
Case "System.Decimal"<br />
colColumn.DefaultValue = 0<br />
End Select<br />
Next<br />
End Sub
Hope this helps.
|
|
|
|
|
Can anyone one give me an example to make application that can get Username and password when user use yahoo messenger,....
Thanks
................
|
|
|
|
|
That's a really broad question, more the sort of thing you'd ask on a paid site. I presume that yahoo wouldn't expose that information, I'd sure hope not. I can't think of why you'd want it, except to steal someone's account. And that would be bad.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
NO, I just want know the proscess
................
|
|
|
|
|
There isn't one.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I am finishing up work on a windows service that uses CodeDom to dynamically
compile code.
The problem I am running into is that the the compile fails with a
NativeCompilerReturnValue of 2000.
I assume this is probably a security issue, but I don't know where to start
looking for a resolution. Running the code as a WinForms app is not an
option.
Any suggestions would be greatly appreciated. Thanks!
cheers,
Akhilesh Yadav
|
|
|
|
|
How can i display numbering in Datagridview like excel?
................
|
|
|
|
|
hi,
following code displays numbers in 1st column
dim col as integer
col=0
For i = 0 To Datagridview.RowCount
Datagridview.Item(col, i).value = i
Next
if this is not solution of ur answer tell me ur question in detail.
priya
|
|
|
|
|
Thanks for ur answer, I have one question, how can i export record in datagrid to excel?
................
|
|
|
|
|
sorry pankaj i dnt know.
priya
|
|
|
|
|
hi,
go thru this link:
http://codebetter.com/blogs/darrell.norton/archive/2004/02/12/7154.aspx
it explains u exporting a record in data grid to Excel. apply the same techinque for gridview.
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i have used excel with vb and display record in datagridview, but I don't know how to count the sheets,
................
|
|
|
|
|
i have a sort of twisted solution to it..export the files using vbide class.
then count the no of files that contain the word sheet in them..ul get ur no. of sheets..
|
|
|
|
|
I still don't understand, can u give me an example?
socheat
................
|
|
|
|
|
I want to diasble the back button of the browser .please help
-- modified at 5:17 Monday 15th January, 2007
Navneet Hegde
program2develop and develop2program
|
|
|
|
|
This has nothing to do with VB.NET. It also can't be done.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i want to design a feedback form n which i have kept a multiline textbox for putting comments of the user and then hit the submit button to submit the comment into the database. but when i want to retrive those comments from the database & view them in a grid,i just got the continious lines of data...my requirement is i want to view the data in that manner and style in which i have enterd it during the submission process with the same style and manner...can anybody help me in this regard how to do it or can give me any link regarding this..(like paragraph,heading...etc..)
thanks in advance..
pradip kishore
|
|
|
|
|
I have an form having following fields are populated by sql server 2000
Name, age, dob,phonenumber,date,accountnumber
and this data is stored into sql server
now I want this data will be output to an ASCII text file.
How can i do this and for the same plz provied me the code.
|
|
|
|
|
This is two problems, both widely documented on the web. One is to get the data out of SQL Server. Then next is to iterate over this data and write it to a file. If you haev VB2005, you have the my.filesystem shortcut, which just hooks into the System.IO namespace to create files.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have written a web service that builds an XML document and returns it as a string.
But at the moment it builds the XML to a file (using System.Xml.XmlTextWriter) then
opens the file (using XmlDocument.load(c:\... etc)).
Is there a way to write XML directly to a string? As writing to a file can cause problems
with file access and so on if there is any errors.
|
|
|
|
|
Hi,
Just started to learn about reading files, text, binary, whatever. I thought, hey, I can make a Hex editor like this, beginning with a Hex reader offcourse. Got to start somewhere and I just want to learn.;P
Here's my code so far
Dim bytArray As Byte()<br />
Dim intFileLenght As Integer<br />
Dim bldHexData As New StringBuilder<br />
Dim bldCharData As New StringBuilder<br />
Dim i As Integer<br />
<br />
If dlgOpen.ShowDialog = DialogResult.OK Then<br />
strFileName = dlgOpen.FileName<br />
<br />
End If<br />
<br />
Me.Text = strFileName<br />
<br />
Dim strmFile As New FileStream(strFileName, FileMode.Open, FileAccess.Read, FileShare.Read)<br />
Dim rdrFile As New BinaryReader(strmFile)<br />
<br />
intFileLenght = strmFile.Length<br />
<br />
bytArray = rdrFile.ReadBytes(intFileLenght)<br />
<br />
For i = 0 To bytArray.Length - 1<br />
Select Case True<br />
Case bytArray(i) = 0<br />
bldHexData.Append("0" & bytArray(i).ToString("X") & " ")<br />
bldCharData.Append(".")<br />
Case bytArray(i) < 16<br />
bldHexData.Append("0" & bytArray(i).ToString("X") & " ")<br />
bldCharData.Append(Chr(bytArray(i)))<br />
<br />
Case bytArray(i) >= 16<br />
bldHexData.Append(Hex(bytArray(i)).ToString & " ")<br />
bldCharData.Append(Chr(bytArray(i)))<br />
<br />
End Select<br />
<br />
Next<br />
<br />
txtHex.Text = bldHexData.ToString<br />
txtChar.Text = bldCharData.ToString
This works on small files, but crashes on anything big (say, a divx movie of 700 MB), gives an OutOfMemoryException. Anyone know VirtualDub? It has a Hex editor, it opens a file instantly.
What magic is this? How do they do that? Is it at all possible in VB.Net?
If you want to know The Truth, STOP lying.
|
|
|
|
|
SilentBob101 wrote: What magic is this?
It isn't magic. There is no such thing.
SilentBob101 wrote: How do they do that?
It is an illusion. Like Penn and Teller.
SilentBob101 wrote: Is it at all possible in VB.Net?
Yes.
The secret to the illusion is that they only open a small part of the file at a time. They do not try to read the whole thing in to memory in one go. They also dump parts of the file that they no longer need from memory to free up space for the bit you are currently viewing.
|
|
|
|
|
Colin Angus Mackay wrote: they only open a small part of the file at a time
Is that like this? Setting the buffersize at the end?
Dim strmFile As New FileStream(strFileName, FileMode.Open, FileAccess.Read, FileShare.Read, 2048)
Colin Angus Mackay wrote: They also dump parts of the file that they no longer need from memory to free up space for the bit you are currently viewing.
Any chance you know how that's done? Or where can I find more info on the subject? It has to be VB.Net, I'm not yet ready for C#
If you want to know The Truth, STOP lying.
|
|
|
|