|
LOL @ Danger, Will Robinson!
Ahhhh can I have your address to send you the dry cleaning bill? Coffee stains and whatnot.
|
|
|
|
|
Lost in Space was a very long time ago.. Coffee stains?
I are Troll
|
|
|
|
|
When we connect to live data and are in the dev environment it shows big message that says ERROR ERROR WILL ROBINSON YOU ARE IN LIVE DATA!!!!
Humble Programmer
|
|
|
|
|
Hehe, cool
|
|
|
|
|
Hi,
Tooltip is not one of the properties for image. I need to show a text when I mouseover an image.
thanks a lot in advance
|
|
|
|
|
You might be displaying the image in the PictureBox or some other control. So, create a tooltip object and use its SetToolTip method.
|
|
|
|
|
Hi,
Thanks. I have the image in a picturebox, when I click,it does something.
when I mouseover the image I want to display a text for example ADD..
I drop a tooltip control onto the form...I tried some few codes, no luck.
Can you guide me?
Thanks again..
|
|
|
|
|
As soon as you drop a tooltip on the form, the picturebox gets the property "Tooltip on ToolTip1" (or whatever name you gave the new tooltip). Put your text in here.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
|
Having added a Tooltip control to your form (as has been suggested already) you can also set the tool tip programatically by passing the control and the text to display to the Tooltip control. eg.
me.toolTip1.SetToolTip(me.PictureBox1, "Whatever")
|
|
|
|
|
|
I am developing a pocket pc application in vb.net 2005.I am using buttons and listview on my form.
I have 3 Questions about the application.
1. Is there any property to add image on the button control?
2. Is there any property to draw grid lines in the listview?
3. How can I create a multilingual application?
4. How can I transfer data from my desktop pc to my pocket pc through FTP,HTTP etc...
Thanks in advance.
|
|
|
|
|
Hi,
ejaz_pk wrote: 1. Is there any property to add image on the button control?
2. Is there any property to draw grid lines in the listview?
I didn't find them either; trying to emulate a complete Windows-UI takes a lot of custom painting code.
ejaz_pk wrote: 3. How can I create a multilingual application?
There's a cool CodeProject article[^] on that
ejaz_pk wrote: 4. How can I transfer data from my desktop pc to my pocket pc through FTP,HTTP etc...
Through various ways, depending on the nature of that data. You can fetch webpages using the HttpWebRequest[^]-class, and even synchronize databases[^].
Hope this gets you started
I are Troll
|
|
|
|
|
Hello All,
I am sucessfully writing SOAP messages with the SOAP Toolkit and VB6.0. I did however run into a problem whereby the format of one of my input parameters needs to be in a format as in below:
<b><i><FieldNames type="xsd:string">
<item1>AliquotInternalID</item1>
</FieldNames></i></b>
In general the toolkit calls to serializer.writestring, outputs in the following:
<b><i><FieldNames type="xsd:string"> AliquotInternalID </FieldNames></i></b>
How can I make calls to the Toolkit to create the child <item> tags with the values as see in the first example.
All responses are welcome.
Have a great day.
|
|
|
|
|
Hello.
My question is, how can I receive data from specific ip and udp port ?
Description - In our network,TAP server receive the data through VSAT,and UDP broadcaster is broadcast the data in our network that's IP is 192.168.1.2 and port no is 35330 .UDP broadcaster is continuously broadcast the data.How can I Receive the data from that IP and Port no ?
fdgfg hjh hj jhj hg jhh
|
|
|
|
|
Simply use the network classes to open up a connection on that port and start to receive the network stream.
Here is the example from MSDN using the TCPClient class;
Shared Sub Connect(server As [String], message As [String])
Try
Dim port As Int32 = 13000
Dim client As New TcpClient(server, port)
Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(message)
Dim stream As NetworkStream = client.GetStream()
stream.Write(data, 0, data.Length)
Console.WriteLine("Sent: {0}", message)
data = New [Byte](256) {}
Dim responseData As [String] = [String].Empty
Dim bytes As Int32 = stream.Read(data, 0, data.Length)
responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes)
Console.WriteLine("Received: {0}", responseData)
stream.Close()
client.Close()
Catch e As ArgumentNullException
Console.WriteLine("ArgumentNullException: {0}", e)
Catch e As SocketException
Console.WriteLine("SocketException: {0}", e)
End Try
Console.WriteLine(ControlChars.Cr + " Press Enter to continue...")
Console.Read()
End Sub
And an example using the UDPClient class;
Dim udpClient As New UdpClient(11000)
Try
udpClient.Connect("www.contoso.com", 11000)
Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes("Is anybody there?")
udpClient.Send(sendBytes, sendBytes.Length)
Dim udpClientB As New UdpClient()
udpClientB.Send(sendBytes, sendBytes.Length, "AlternateHostMachineName", 11000)
Dim RemoteIpEndPoint As New IPEndPoint(IPAddress.Any, 0)
Dim receiveBytes As [Byte]() = udpClient.Receive(RemoteIpEndPoint)
Dim returnData As String = Encoding.ASCII.GetString(receiveBytes)
Console.WriteLine(("This is the message you received " + _
returnData.ToString()))
Console.WriteLine(("This message was sent from " + _
RemoteIpEndPoint.Address.ToString() + _
" on their port number " + _
RemoteIpEndPoint.Port.ToString()))
udpClient.Close()
udpClientB.Close()
Catch e As Exception
Console.WriteLine(e.ToString())
End Try
|
|
|
|
|
Guys and Gals,
i have the following example VB.NET 2008
' Add a button column.
Dim buttonColumn As New DataGridViewButtonColumn()
buttonColumn.HeaderText = ""
buttonColumn.Name = "Status Request"
buttonColumn.Text = "Request Status"
buttonColumn.UseColumnTextForButtonValue = True
datagridview1.columns.add(buttoncolumn)
Runs with no errors but the text doesn't show up. Any ideas?
Thanks
Simon
modified on Wednesday, March 31, 2010 7:25 AM
|
|
|
|
|
Simon_Whale wrote: Runs with no errors but the text doesn't show up. Any ideas?
Yup, you set the HeaderText [^] property to Nothing . Try something like this;
buttonColumn.HeaderText = "Hello World"
I are Troll
|
|
|
|
|
|
You're right. I've taken the example, compiled it using SharpDevelop, the example shows the exact same code;
Dim buttonColumn As New DataGridViewButtonColumn()
buttonColumn.HeaderText = ""
buttonColumn.Name = "Status Request"
buttonColumn.Text = "TestText"
buttonColumn.UseColumnTextForButtonValue = True The HeaderText is the caption of the column, my bad. And yes, this code should have changed the caption of the button within the buttoncolumn.
It seems that the example works. Can you post your version of the code?
I are Troll
|
|
|
|
|
Thanks for this Ed
Private Sub Properties_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'set the screen size according to values in the app.config
Me.Width = My.Settings.x
Me.Height = My.Settings.y
'load in the list of countries they can use
'Dim cList As New List(Of ClientHome.vb.Countries)
'Dim x As New ClientHome.vb.Buildings
'cList = x.Countries
'cbCountries.DataSource = cList
'x = Nothing
'expiry date
'dtBldExpiry.Value = DateAdd(DateInterval.Day, 365, dtBldStart.Value)
'dtCntExpiry.Value = DateAdd(DateInterval.Day, 365, dtCntStart.Value)
'the question textbox in the grid
Dim xy As New DataGridViewTextBoxColumn
xy.HeaderText = "Question"
Me.DataGridView1.Columns.Add(xy)
'drop down list on grid
Dim xx As New DataGridViewComboBoxColumn
xx.Name = "YesNo"
xx.Items.Add("Yes")
xx.Items.Add("No")
Me.DataGridView1.Columns.Add(xx)
'the Answer Question
Dim yx As New DataGridViewTextBoxColumn
yx.HeaderText = "Answer"
Me.DataGridView1.Columns.Add(yx)
'the view button
' Add a button column.
Dim buttonColumn As New DataGridViewButtonColumn()
buttonColumn.Name = "Requests"
buttonColumn.Text = "Requests"
buttonColumn.UseColumnTextForButtonValue = True
DataGridView1.Columns.Add(buttonColumn)
End Sub
thats it Ed, there is a datagridview control on the form
Many Thanks
Simon
|
|
|
|
|
Simon_Whale wrote: there is a datagridview control on the form
With or without the correct caption on the buttons? I'll send my version by mail
I are Troll
|
|
|
|
|
There is no captions on the button for the code i sent but im after putting a caption on the button for the users to press
once again many thanks for your help
SImon
|
|
|
|
|
Ed,
Thank you, you are a genius worked out the problem from your example.
During my experimentation / design layouts i wasn't adding a datasource to the grid. so it was displaying the first empty row.
I then created a simple list of integers and set that to the datasource of the datagridview and the text shows up on the button as expected.
could you assume this is how its suppose to work?
Many Thanks
Simon
|
|
|
|
|
Simon_Whale wrote: Thank you, you are a genius worked out the problem from your example.
Glad that it helped, but you're the one who worked it out
Simon_Whale wrote: I then created a simple list of integers and set that to the datasource of the datagridview and the text shows up on the button as expected.
could you assume this is how its suppose to work?
It's one way that it can work - there's a lot of ways to fill a datagridview. And yes, it would be a good way; it's easy to read, easy to comprehend and thus, easy on maintenance.
I are Troll
|
|
|
|