Forum: VB.NET Jul 28th, 2009 |
| Replies: 6 Views: 645 I did some googling and found out that InkPicture control does not even have Image property :)
InkEdit control has SaveFile method (see Using InkEdit, InkPicture, and Enhancing the Appearance of... |
Forum: VB.NET Jul 15th, 2009 |
| Replies: 39 Views: 3,796 Here's the repainting code. All the user drawings are saved on the arrays. On the picture box's paint event all the saved user drawings are repainted from the arrays
' "Drawing" arrays
Private... |
Forum: VB.NET Jul 8th, 2009 |
| Replies: 39 Views: 3,796 If you use adatapost's code:
use the Image property of the picture box
'Write an image data into memory stream
pbBody.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png)
No,... |
Forum: VB.NET Jul 5th, 2009 |
| Replies: 3 Views: 473 Didn't test it but if I remember right
oledbcom.CommandText = ("INSERT INTO Customer Company, Address, Telephone values ?,?,?")should be
oledbcom.CommandText = ("INSERT INTO Customer (Company,... |
Forum: VB.NET Jun 19th, 2009 |
| Replies: 3 Views: 219 Yes it is. Especially when you got stuck with your code :)
There are plenty of online tutorials, try googling http://www.google.com/search?q=vb.net+tutorial them and check for good ones. MSDN's... |
Forum: VB.NET Jun 18th, 2009 |
| Replies: 9 Views: 941 Damn :) I was able to reproduce it. The file contains (or starts) with a zero byte. That's why the first line looks like an empty string (but it isn't).
Try this
Dim myRequest As WebRequest =... |
Forum: VB.NET Jun 16th, 2009 |
| Replies: 7 Views: 561 Never mind the code. Here's a (generic) function to save byte array to a file (VB.NET 2005 and newer)
Public Function SaveFile(ByVal FileName As String, ByRef Buffer() As Byte, ByVal OverWrite As... |
Forum: VB.NET Jun 14th, 2009 |
| Replies: 3 Views: 1,397 That's right.
You can't use Contains method in this case. You have to loop and cast to find the right value
Dim i As Integer
For i = 0 To VisioSwitchArray.Count - 1
If... |
Forum: VB.NET Jun 5th, 2009 |
| Replies: 2 Views: 778 Both zip-files unzipped perfectly both with Windows XP's unzip and WinZip 12.0. Are you sure you downloaded zip-files from the Mirrors column? |
Forum: VB.NET May 30th, 2009 |
| Replies: 8 Views: 1,554 Here's a function to parse XML file to arrays
Imports System.Xml
Public Sub ImportXML(ByVal FileName As String, _
ByRef Names() As String, ByRef CountStart() As Integer, ByRef CountEnd() As... |
Forum: VB.NET May 30th, 2009 |
| Replies: 17 Views: 1,122 Didn't quite get what you're trying to do.
But here's the basic idea, how you get data from a text line (VB2005 / .NET 2.0 and newer)
Dim FileText As String
Dim FileLines() As String
Dim... |
Forum: VB.NET May 28th, 2009 |
| Replies: 7 Views: 912 Here's something to get you started
Private m_FileNames() As String
Private m_CurIndex As Integer
''' <summary>
''' Return file names
''' </summary>
''' <param name="RootPath">The path to... |
Forum: VB.NET May 27th, 2009 |
| Replies: 2 Views: 780 No.
AFAIK no.
TcpClient.Close disposes the socket as you noticed. You have to create a new socket before calling Connect method
Dim clientSocket As System.Net.Sockets.TcpClient
... |
Forum: VB.NET Apr 18th, 2009 |
| Replies: 19 Views: 2,339 The OP has a problem with connection string. The code above (with path to Access file fixed) is a good sample of Access connection string for the OP.
This goes a bit OT, but the sample code has a... |
Forum: VB.NET Apr 15th, 2009 |
| Replies: 2 Views: 521 If you just want to download videos, there are some add-ons for Firefox (maybe for IE too) that can download streamed videos.
If you really want to do that with VB.NET, you can't use any simple... |
Forum: VB.NET Apr 14th, 2009 |
| Replies: 3 Views: 761 Here's a VB.NET version of the code above (this is a VB.NET forum :) )
Dim c As Char
c = CChar(CStr(Integer.Parse(Hex, System.Globalization.NumberStyles.HexNumber)))
and instead of '\r\n', use... |
Forum: VB.NET Feb 18th, 2009 |
| Replies: 8 Views: 5,236 Here you go. Create a new form and drop a picturebox control and one button control to it. This is sample code, fix naming if needed, add error handling and add the code for getting data out of... |
Forum: VB.NET Feb 16th, 2009 |
| Replies: 8 Views: 497 A simple Q&D solution
Dim MyUrl As String = "<a href=""/profiles/13374222/"" title=""View The Admin's profile"">The Admin</a>"
Dim StrArr() As String
Dim i As Integer
Dim UNum As Long
StrArr =... |
Forum: VB.NET Feb 5th, 2009 |
| Replies: 3 Views: 753 Dim namearray() As String
Dim NewName As String
Dim i As Integer
i = 0
NewName = InputBox("Enter the candidates name:", "candidatename", "", 500, 500)
Do Until String.IsNullOrEmpty(NewName)
... |
Forum: VB.NET Jan 18th, 2009 |
| Replies: 11 Views: 1,069 Didn't check if VB.NET 2003 supports all these features, but here's the code
OpenFileDialog1.CheckFileExists = True
OpenFileDialog1.CheckPathExists = True
OpenFileDialog1.DefaultExt = "txt"... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 7 Views: 1,550 Here's a fixed code (at least works in my comp):
dim Wsh
dim objEnv
dim windir
dim Uname
set wsh = WScript.createobject("WScript.Shell")
set objEnv = wsh.environment("Process")
windir =... |
Forum: VB.NET Dec 28th, 2008 |
| Replies: 9 Views: 529 Do you want to show HTML in the browser application or with .NET's web browser control?
In the first case, you'll have to save HTML code to a file. In the latter case i.e. your VB.NET application... |
Forum: VB.NET Nov 26th, 2008 |
| Replies: 2 Views: 355 Trap SelectedIndexChanged event of the combo box
Private Sub cboCustomer_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboCustomer.SelectedIndexChanged
... |
Forum: VB.NET Oct 6th, 2008 |
| Replies: 9 Views: 4,269 Open the Task Manager, check which processes are running. Start download with RapidShare and re-check processes in Task Manager.
If I understand it right, "File Download" dialog comes from the... |
Forum: VB.NET Oct 1st, 2008 |
| Replies: 9 Views: 4,269 Ok. But you do know that the title is "File Download"? I believe that then the code from my blog post (http://windevblog.blogspot.com/2008/08/check-if-application-is-running.html) is suitable for... |
Forum: VB.NET Sep 18th, 2008 |
| Replies: 2 Views: 633 If inputSales <> "" Then
totalSales = totalSales + inputSales
End If
and then show average:
MessageBox.Show(average, averageTitle, MessageBoxButtons.OK, MessageBoxIcon.Information)
... |
Forum: VB.NET Sep 4th, 2008 |
| Replies: 3 Views: 1,917 Have you tried GeckoFX:
http://www.skybound.ca/projects/ |