Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008


all groups > vb.net > february 2005 > threads for tuesday february 22

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

Deployment
Posted by David A. Osborn at 2/22/2005 10:35:27 PM
Okay so I've finished writing a small console program and want to deploy it. How do I get the .NET equivalent of the .exe file so that I can distribute it to other users? What is the extension of this file? ...more >>

System.IO.FileNotFoundException: imagefile.bmp
Posted by Jeremy Olmstead at 2/22/2005 8:42:33 PM
I am having a problem printing an image stored on a system's hard drive. It works on my development machine, but when transfered to a test machine it does not work. The image is named wkwlogo.bmp and it is in the "bin" directory of the project. When I setup the system on the test computer I...more >>

Adding Intellisense Info For Subs
Posted by JhnGC NO[at]SPAM hotmail.com at 2/22/2005 6:57:34 PM
How do I add information about parameters to intellisense, so developers using the subs and functions know what they are for(the subs and the parameters). ...more >>

Tutorial on MDB & VB.NET
Posted by Terry Olsen at 2/22/2005 6:16:08 PM
Where can I find a good tutorial on reading data from .MDB Tables & Queries using VB .NET? ...more >>

smart tag sdk
Posted by C Williams at 2/22/2005 6:03:29 PM
Hi, I have downloaded the 2003 Smart Tag SDK and am attempting to run its samples. I installed the sdk and registered the visual basic.net sample. However, no office apps (word, excel, ppt) recognize the sample smart tags that should be installed. I have checked and double-checked the ...more >>

Connecting to a network share with username/password.
Posted by Ian Ashworth at 2/22/2005 4:57:57 PM
I need to connect to a networked unc path which requires username/password details but I'm new to .net and my experience in classic vb is mainly database related. Any suggestions? Thanks in advance Ian Ashworth ...more >>

Help on "GetPositionFromCharIndex(ByVal index As Integer) As Point"
Posted by Martin Heuckeroth at 2/22/2005 4:44:41 PM
Hi, We are looking for a way to determine the x and y points of the cursor in a richtext box. We made an VB.NET application with a couple of listboxes and one of them is a richtextlistbox. After a refresh the cursor of the richtextlistbox is reset and goes to top. And that's not a cool thin...more >>

Q: BackColor
Posted by Geoff Jones at 2/22/2005 4:13:24 PM
Hiya If a node of a TreeView has had its ForeColor set to something different than its default, is there an easy way to change it back without knowing which node it was i.e. is there a command to reset all the nodes back to the default color? Geoff ...more >>



Unable to find an entry point named FUNCATIONNAME in DLL DLLNAME
Posted by Saman at 2/22/2005 4:03:18 PM
I have a third party dll and I am sure that it is not an activeX or dotnet assembly . I have check it up with Dependency Walker software and found the list of it's exported function in C++ syntax for example : void __cdecl TelEnd(void) void __cdecl FaxStop(void) and so on ... I can n...more >>

C Dll pointers arguments
Posted by marfi95 NO[at]SPAM yahoo.com at 2/22/2005 4:02:57 PM
I have to interface with a C Dll (not mine, 3rd party) that I have no vb.net declares for, so I'm having to create them. I'm having a little trouble translating some of the types. The C Dll call: int LS1 (HWND hwnd, HANDLE hInst, SHORT s1, SHORT *s2); I am having trouble translating the ...more >>

Pass SMTP username/password with System.web.mail.smtpmail?
Posted by Steve Bottoms at 2/22/2005 3:49:09 PM
Is there any way to pass a login name/password when calling System.Web.Mail.SMTPMail? Can't find anything in the docs or KB... If not, any suggestions to get this functionality short of building something straight from sockets? Third party component isn't an option... :) Thanks! Jack ...more >>

Pixel Plotting 2
Posted by Jacky Luk at 2/22/2005 3:30:07 PM
Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click Dim myBitmap As New Bitmap("lake.jpg") ' Draw myBitmap to the screen. e.Graphics.DrawImage(myBitmap, 0, 0, myBitmap.Width, _ myBitmap.Height) ' Set each pi...more >>

snmp trap
Posted by Christophe Helfer at 2/22/2005 3:13:22 PM
After many hours searching over the web I'll try to explain what I want. I want to build an application (or service) in VB.NET that can receive snmp traps and then perform some operation. There are many option to do that : - Commercial Components. I don't want use that option - Hear UDP port...more >>

Saving richtext
Posted by rigamonk at 2/22/2005 3:08:30 PM
Is there a way to save richtext from a richtextbox into an access DB using vb.net? thanks patrick...more >>

RTD replace DDE in .NET?
Posted by Marty at 2/22/2005 2:55:40 PM
Hi, I've been reading that in .NET, RTD replace the VB6 DDE. With VB6 DDE it was possible to read from an Excel sheet to a textbox for instance, if we had the topic and source. I know that VB.NET to Excel (through RTD) is easy, but can we connect the VB.NET app. directly to the RTD serv...more >>

simple pixel plotting
Posted by Jacky Luk at 2/22/2005 2:48:17 PM
Hi, I used to stick with VB6 and now changing to vb.net What about pixel plotting? there is no function like pset. So how to do simple pixels on screen? Thanks a lot Jack ...more >>

DrawString size?
Posted by Rob T at 2/22/2005 2:30:01 PM
Is there a way to determine what the size of a GDI+ string output would be prior to drawing? For example, If I have something like this: Dim fnt As New Font("Times", 12) Dim drawFormat As New StringFormat drawFormat.LineAlignment = StringAlignment.Center drawFormat.Alignment = StringAlignme...more >>

Controls moving down after every compile
Posted by Don at 2/22/2005 2:29:02 PM
There appears to be a strange bug in the VB.NET form designer where, under certain circumstances, controls inside a GroupBox will move down about a pixel you compile a program. I have no idea how to reproduce it reliably. Has anyone come across this? Is there anything that can be done to preven...more >>

adding a primary key to a dataset/datatable
Posted by Bernie Yaeger at 2/22/2005 2:24:33 PM
I have a need to add a primary key to a dataset/datatable. How can this be done using a standard oledb data provider? Tx for any help. ...more >>

Socket.Receive Issue - not returning all data
Posted by TacoGod at 2/22/2005 2:20:58 PM
I am trying to retrieve a file list from a ftp. I got this code from the microsoft website: Do While (True) m_aBuffer.Clear(m_aBuffer, 0, m_aBuffer.Length) bytes = cSocket.Receive(m_aBuffer, m_aBuffer.Length, SocketFlags.None) m_sMes += ASCII.GetString(m_aBuffer, 0, bytes) Console....more >>

Q: Regular Expressions
Posted by Geoff Jones at 2/22/2005 2:12:36 PM
HIya Can somebody give me some example code to use regular expressions to check whether string2 has all the characters of string1 at the beginning e.g. If string1 = "abc" and string2 = "abcxyz" then I get a TRUE result. Similiarly, if string1 = "g" and string2 = "g9hd67" then I get a TRUE...more >>

Find Hours, munites and seconds from seconds
Posted by Nikolay Petrov at 2/22/2005 2:12:02 PM
How to find how many hours, minutes and seconds a given number of seconds is? For example, if you got 3460 seconds, that would be 0 hours, 57 min and 40 seconds. Any idea how to calculate this from code? TIA ...more >>

Bug: string.substring.trim = "" (boolean expression issue)
Posted by Darren Anderson at 2/22/2005 1:47:02 PM
I have a function that I've tried using in an if then statement and I've found that no matter how much reworking I do with the code, the expected result is incorrect. the code: If Not (strIn.Substring(410, 10).Trim = "") Then 'Something processed Else 'Something processed ...more >>

Sorting
Posted by Nikolay Petrov at 2/22/2005 1:33:00 PM
I have a function which returns ArrayList of classes my retrun class looks something like this Public Class TestClass Public Str1 as String Public Int1 as Integer Public Str2 as String End Class Is it possible to sort the items in the ArrayList by one of these public variable...more >>

Issues with compile
Posted by Chris Calzaretta at 2/22/2005 1:13:33 PM
Ok Using windows form with about 6 users controls Windows Form <-- ucMain <---- ucControl1 <--ucToolbar ucControl2 <--ucToolBar ...more >>

Decrypting data
Posted by Steve Long at 2/22/2005 12:07:16 PM
Hello, I'm wondering if somebody can help me figure out how to decrypt data. I seem to be able to encrypt data but have not been able to decrypt the very data that I've encrypted. I know it's because I'm just not understanding the whole process but I'm obviously just not getting it. Here's the ...more >>

Listening for broadcast messages
Posted by Dieter Boden-Schelfthout at 2/22/2005 11:38:45 AM
Hey, I wrote a small console application that sends out broadcast messages, but I cannot find a way to listen for these broadcasts in another application. How can I achieve this? I found some info on msdn but thade made use of multicasting and I need broadcasting. Thanks in advance Di...more >>

Using maths behind the scenes... Newbie
Posted by Scott at 2/22/2005 11:18:03 AM
Hi I need to be able to use VB.net as a kind of calculator. Basically I want to use it to work out holiday travel prices. There would be several variables such as: - number of people going days going for worldwide or European ski cover included etc... please advise me the best way to w...more >>

Using Maths behind the scenes... Newbie
Posted by Scott at 2/22/2005 10:26:02 AM
Hi I need to be able to use VB.net as a kind of calculator. Basically I want to use it to work out holiday travel prices. There would be several variables such as: - number of people going days going for worldwide or European ski cover included etc... please advise me the best way to w...more >>

Tierd structure advice
Posted by Doug Bell at 2/22/2005 10:21:21 AM
Hi I am putting together a functional specification in preparation for writing a VB Dot Net upgrade an existing Access (VBA) and VB system. It is currently a tiered system with an IBM AS400 providing a DB2 Database. There are 5 or 6 of sites and each site has 2 to 6 PCs (involved in this syste...more >>

What status returned from RegistryKey.OpenSubKey?
Posted by Steve Bottoms at 2/22/2005 9:52:36 AM
Hi, all... Trying to determine how to check the state of OpenSubKey when called. What is the return value if the requested subkey doesn't exist?? I try a GetType on the result but only get a bizarre error, so I'm uncertain what should be returned on both success or failure! Thanks! Jack...more >>

password text box
Posted by Dan at 2/22/2005 9:37:19 AM
When I try to read the text in a password text box, I get an empty string........ code behind... MyPassword = PasswordTextBox.Text always returns an empty string..... What am I missing? Thanks. ...more >>

progress bar
Posted by bbdobuddy at 2/22/2005 9:17:02 AM
Hi, I am running this command that takes a couple of minutes to complete. While this command is running, I would like to run a progress bar along the bottom of the form to show how far it is until the command to complete. I know I have to create a new thread timer but I am not sure how to...more >>

UDPClient listen to any address, any port
Posted by D._André_Dhondt at 2/22/2005 9:15:40 AM
In VB.NET 2003, is there a way to create a System.Net.Sockets.UDPClient to listen to any address AND any port? I can get it to listen to any address, but only if I specify a port (for example, port 12345): '----------- Dim udpClient as New Sockets.UdpClient(12345) Dim ipEndPoint as New IPE...more >>

Execute function
Posted by Byron Hopp at 2/22/2005 8:09:42 AM
Is there a way to execute a function from a text representation of the function. Like, Dim strFunction as String strFunction = "Now()" Is there any function, or process I can call and pass to it strFunction where when it executes it will return what Now() returns? Thanks, Byron.....more >>

Main application object in vb.net
Posted by Byron Hopp at 2/22/2005 8:07:28 AM
Is there a way to get a reference to the main application window object in vb.net? Like an MDI app, I would like to get to the MDI Shell window. Thanks, Byron... ...more >>

Reporting Services book !
Posted by gustavo NO[at]SPAM usinaitajobi.com-dot-br.no-spam.invalid at 2/22/2005 7:52:17 AM
Hi, I need to study Reporting Services and I don´t know this tool ..... I wanna buy a good book about ..... Anybody knows ? What is the best book ? Thanks Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPE...more >>

Communication between threads?
Posted by dast at 2/22/2005 4:09:02 AM
Hi, I'm having trouble letting my background thread tell my main thread what to do. I'm trying to tell my main thread to open a form, but when my background thread ends, the form that I thought my main thread had opened disappears. Obviously there's something that I don't understand here...more >>

Workstation and user
Posted by Luis Mendes at 2/22/2005 3:41:04 AM
Hello, I can I get the User and Workstation ID? Thanks in advance, Luis...more >>

Problem with String.IndexOf
Posted by kd at 2/22/2005 3:29:03 AM
Hi All, Consider the following code. Dim str As String Dim i As Integer str = " Hello Hi" If str.IndexOf("Abc Def") Or str.IndexOf("Ghi jkl mno") Or _ str.IndexOf("pqr stu vwxe") Or str.IndexOf("errr erttt. tttt") Or _ str.IndexOf...more >>

** Generate file entries in a directory and sub-directories under
Posted by jeff at 2/22/2005 1:11:58 AM
Dear all i would like to create a program which allow user to specify a particular directory. then the program will generate all file entries (e.g. *.bmp) in the specified directory and all subdirectories under it. how can i generate the file entries according to the req ? many thanks ...more >>


DevelopmentNow Blog