Forum: VB.NET Jul 28th, 2009 |
| Replies: 6 Views: 664 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,992 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,992 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: 527 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: 224 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: 990 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: 589 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,511 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: 833 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,652 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,142 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: 979 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: 843 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,407 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: 523 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: 798 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 16th, 2009 |
| Replies: 8 Views: 501 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: 758 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,101 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,625 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: 531 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: MS SQL Dec 4th, 2008 |
| Replies: 4 Views: 3,143 AFAIK with SQL Server 2000 you need to use textcopy utility. Check this MS forum's thread if it helps:
using textcopy to import image file (jpg) to sql server DB in SQL Server Programming... |
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: Visual Basic 4 / 5 / 6 Nov 18th, 2008 |
| Replies: 2 Views: 899 You must double double quotes inside double quotes:
LoadCommand = "(load \""S:\Tools\Tools_Subfolder\MyStuff\test.txt \"")" |
Forum: Visual Basic 4 / 5 / 6 Nov 2nd, 2008 |
| Replies: 2 Views: 824 You have to loop the original string:
Private Function InsertChar(ByVal StringIn As String, _
ByVal CharToInsert As String, _
ByVal InsPosition As Integer) As String
Dim NewString As... |
Forum: Visual Basic 4 / 5 / 6 Oct 7th, 2008 |
| Replies: 6 Views: 5,364 Sorry :sweat: Right$ instead of Left$...
Private Function HexString(EvalString As String) As String
Dim intStrLen As Integer
Dim intLoop As Integer
Dim strHex As String
EvalString =... |
Forum: VB.NET Oct 6th, 2008 |
| Replies: 9 Views: 4,435 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,435 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: XML, XSLT and XPATH Sep 30th, 2008 |
| Replies: 2 Views: 940 Not quite. XML is just a file-based text file after all. But you can do with XML (or XML code libraries) same things: get/put/update/delete data.
You decide if you need XML in your project.
... |
Forum: VB.NET Sep 18th, 2008 |
| Replies: 2 Views: 666 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,991 Have you tried GeckoFX:
http://www.skybound.ca/projects/ |