Groups | Blog | Home


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 > january 2005 > threads for monday january 17

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 29 30 31

opening an axwebbrowser control immediately
Posted by Bernie Yaeger at 1/17/2005 10:27:32 PM
I have an axwebbrowser control in a windows app and I want it to start at the user's IE start page, and to start when the form opens, but I can't get it to start in the form's load event. I even tried ending the load event with gobutton.performclick() but it doesn't work; the click event is ...more >>


Downloading a file via HTTP
Posted by VBTricks.de.vu Webmaster at 1/17/2005 8:52:34 PM
Hello everybody, I need to download a file from the web using the HTTP-Protcoll. But unfortunately I'm a total newbie. Found the following snippet some posts ago: Public Function DownloadFile(ByVal sUrl As String, _ ByRef sData As String) As Boolean Dim myHttpWebRequest As HttpWeb...more >>

References to WINWORD.EXE still alive.
Posted by Robin Tucker at 1/17/2005 7:05:35 PM
Hi, I am diligently releasing (Marshal.ReleaseComObject (o) ) all references I pick up while generating a report using VB.NET in my software. At least, I *think* I am. However, when I have finished using the WINWORD.EXE com server, I still have a reference to it hanging somewhere in my co...more >>

w32_WNetGetUser not work Win98
Posted by Giovanni pepe at 1/17/2005 6:28:25 PM
this is my code : I convert this code from VB6... Problem : lResult =487 Private Declare Function w32_WNetGetUser Lib "mpr.dll" Alias "WNetGetUserA" (ByVal lpszLocalName As String, ByVal lpszUserName As String, ByVal lpcchBuffer As Integer) As Integer Public Sub GetCurrentLogon16(ByVa...more >>

3 letter and 3 number random password generator
Posted by hack123 NO[at]SPAM hotmail.com at 1/17/2005 6:18:14 PM
G'Day all, I cant work out how to create a random password generator. In specific the password (or well the output as a string) needs to be in the following format: abc123 So no capitals or other characters, Just the first three being letters and the last three being numbers in random. Bas...more >>

Controlar la resolución
Posted by Xavier Valdés at 1/17/2005 6:15:32 PM
Hola a todos, Quiero adecuar mi aplicación a la resolución de pantalla del usuario cliente. Para ello, debo controlar qué resolución tiene éste. Cual es la mejor manera? Muchas gracias, Xavi ...more >>

creating crystal.net reports from a vb.net command application
Posted by pardark at 1/17/2005 5:33:02 PM
I am creating a vb.net command application which will run nightly, create the crystal report, save the report as a PDF file, and automatically sending the report to the recipients. I have everything working except, pulling in the crystal report and saving it off in a PDF format. I have done ...more >>

current possition
Posted by Lal - Luxor at 1/17/2005 5:12:51 PM
dear all, one of my form have 3 text boxes and 1 button i want to trap my cursor on which text box please help me regards with thanks lal ...more >>



XML from VB 6 to VB.net Help please
Posted by Adrian at 1/17/2005 4:39:46 PM
hi I had the following code (fragment) in a VB6 app, what should the XML bits look like in VB.Net? Thanks Public Sub XML_list(ByVal xml As String) Dim xmldom As MSXML2.DOMDocument xmldom = New MSXML2.DOMDocument Dim node As MSXML2.IXMLDOMNode Dim i As Integer xmldom.a...more >>

Question on Sessions variables
Posted by jty202 at 1/17/2005 4:29:32 PM
1. Can I have an array of objects as sessions variable in other words sessions array-of-objects? If so how? 2. Besides Sessions variable what else can I use to store large amount of data temporarily thats related to the current user. ( can I use temp files? and instead of storing the large tex...more >>

Searching text in ASP.net
Posted by jty202 at 1/17/2005 4:28:55 PM
I use a the function Instr() in VB6 to search for a search-string in String var. It returns the position of the found search-string. Is there such a funtion in ASP.net? ...more >>

Thread: Date and Time
Posted by jty202 at 1/17/2005 4:28:20 PM
I have string that contains a date in this format (14-Jan-05). I want to store in date object if theres one and access each part of the date (month, year, dates, day of week). Specifically I want to convert it in this format 20050114 because this way, I can compare it with another date in this...more >>

VB.Net Service not starting on Windows 2003
Posted by SQLScott at 1/17/2005 4:17:01 PM
Searched the forum for an answer to this particular question and did not find an answer to i am posting. I have created a Windows Service in VB.Net. I can successfully install and start the service on a Windows 2000 Server box but cannot on a windows 2003 box. The error I receive is the f...more >>

Process Monitor Suggestions
Posted by Me at 1/17/2005 4:05:55 PM
I am looking for some suggestions or sample code for an application the sits in the system tray (a TSR) and then executes code that I specify when a certain executable is launched. As an example, an TSR that pops a Dialog Box up in the middle of the screen when winword.exe is launched. Any ...more >>

Putting Raw formatted Data in proper datatype and displaying
Posted by jty202 at 1/17/2005 3:59:06 PM
I have raw formated data (comma separated), and I like to store it in a good datatype/collection object. And display the data in the data object in a HTML table. The data looks like this: Date,XYZ,PEAK,Price,Number,Volume 14-Jan-05,ABC,123,26.04,26.12,92180800 13-Jan-05,ABC,123,26.04,26...more >>

Fill labelbox with characters
Posted by Steve at 1/17/2005 3:57:49 PM
I have labelbox1 that generates a random number between 0 and 12. In labelbox2 I want it to be filled with an ascii character code "chr(73)". What ever number appears in the labelbox1 is how many characters I want to appear in labelbox2. Thanks for any help sc ...more >>

How do I determine SQL Server Authentication Mode?
Posted by Hal Heinrich at 1/17/2005 3:41:04 PM
Given a server name, and before logging on to the server - how can I tell if it's using Windows Authentication Mode or SQL Server Authentication? I'm retreiving a list of servers as follows: Dim dmoApp As SQLDMO.Application, dmoServerList As SQLDMO.NameList, srvrNm As String dmoApp = New SQ...more >>

Printing with hardware fonts
Posted by F. Potier at 1/17/2005 3:34:08 PM
I want to print with a small Epson ticket printer (Epson TM-T88II) As the printing is very slow with the windows fonts I'm looking for some code to make use the hardware fonts built in the printer. Can somebody help me with tis code?.... ...more >>

Is everything an object?
Posted by Brett at 1/17/2005 3:25:16 PM
In VB .NET everything is supposed to be an object. Say I have a report title hard coded in a method. When a method is called, is the returned title an object or a string? Thanks, Brett ...more >>

Noob question #2
Posted by you at 1/17/2005 3:00:52 PM
Ok, I beleive that I understand what overriding and overloading do. They both make sense to me. What I don't understand is when they are both used at the same time. Example; Public Overloads Overrides Sub Draw() What I dont get is if I am overriding something how can I also be overloadin...more >>

Runtime, array of controls events
Posted by vbMark at 1/17/2005 2:41:48 PM
I have the following code: Dim myTextBox(10) As TextBox Dim x As Integer For x = 0 To 9 myTextBox(x) = New TextBox With myTextBox(x) Select Case x . . some code . End Select End With Me.Controls.Add(myTextBox(x)) Next Now how do I get the O...more >>

excell in the process window
Posted by alvis at 1/17/2005 1:03:04 PM
hi i have a windows service that uses an excell workbook when i create the excell app i cant distroy it after i am finished i am using this code whats wrong? thanks Dim processes1(), p1 As Process Try processes1 = Process.GetProcesses() ...more >>

how to get startupPath in console application
Posted by Ron at 1/17/2005 11:56:03 AM
Hello, I would like to retrieve the startupPath from a console application. It appears that a console application does not recognize Application, so I can't access StartupPath. Is there a way to do this in a console application? Thanks, Ron...more >>

maintaining relation ships of tables at run time
Posted by gaffar at 1/17/2005 11:10:48 AM
Hello Sir, I have created database(ms access) and tables at runtime how to maintain relation ships between the tables. by using vb.net. Thanking u sir. ...more >>

Is this a VB.Net 2003 Bug??
Posted by GrandpaB at 1/17/2005 11:04:50 AM
I'm running VB.Net 2003 & I think that I have found a .Net BUG!!! If I invoke the OpenFileDialog in my application, neither the SOAPFormatter nor the BinaryFormatter will write the output file when the application closes. If I manually edit the textbox, instead of using the OpenFileDia...more >>

child forms in .net
Posted by Starbuck at 1/17/2005 10:54:26 AM
Hi In VB.Net what is the best way to see if a child form is already open, and if it is switch view to it. Thanks ...more >>

Using streams how do I write and then read a set of variables
Posted by Just Me at 1/17/2005 10:22:31 AM
Using streams how do I write and then read a set of variables? For example, suppose I want to write into a text file: string1,string2,string3 Then read them later. Suppose I want to write and then read: string1, integer1, double1 Can't I have each read/write use one line in the text ...more >>

Open windows explorer from .NET desktop app
Posted by Mark at 1/17/2005 10:10:02 AM
I'd like to open up Windows Explorer from my .NET desktop application to a specific path. I essentially want to execute: %Systemroot%\explorer.exe c:\somepath\ How can this be done? Thanks in advance. Mark ...more >>

How to add tabpage to tabcontrol at 1st tab?
Posted by Tee at 1/17/2005 10:05:42 AM
Hi, I have a tabcontrol that has a tabpage, I want to add another tabpage on runtime, but I want the tabpage to be added to the 1st tab, anyone know how to do it? Thanks, Tee ...more >>

Save image to .PNG with transparent background?
Posted by Martin at 1/17/2005 9:39:35 AM
I'm using the code show below (in VB.Net 2003) to create an image. I want to save this image to a .PNG file such that when I subsequently display it as part of a web page, the background of the image will be transparent. This test/learning code simply draws a diagonal green line across a squ...more >>

RASCREATE API call
Posted by Doug Robertson at 1/17/2005 9:31:05 AM
VB.net 2000 Windows XP only I have an app that (among other things) allows the user to create a new "phonebook" entry. API is defined this way: Declare Auto Function RasCreate Lib "Rasapi32.dll"_ Alias "RasCreatePhonebookEntry" (ByVal hwnd As Integer,_ <MarshalAs(UnmanagedType.LPStr)> B...more >>

SmtpMail.Send not working. Held in Mailroot/Queue folder.
Posted by rh at 1/17/2005 9:26:20 AM
I am not able to send email using SmtpMail.Send. I imagine that it is a configuration issue. I see that the emails that I attempt to send are in the Mailroot/Queue folder but they never actually get sent. I have an anti-virus program that I disabled but it still doesn't work. I also know th...more >>

Selected object in datagrid
Posted by DC at 1/17/2005 8:57:04 AM
Hi all (once again), I've populated a datagrid with an arraylist of objects of this class i've created. How can I get the select object in the datagrid? TIA, DC...more >>

Access Network Share from inside an application.
Posted by Johnny Fugazzi at 1/17/2005 8:47:40 AM
I would like to access a network share from my vb.net application. I do not want to map a drive to the share, however. I would also like to specifiy a user credential to use when connecting to the share, as the user running the application will not have security rights to hit the share them...more >>

connect to SQL Server via NT authentication
Posted by mike w. at 1/17/2005 7:32:54 AM
I need a VB app that can connection to a SQL Server DB but use the NT authentication of whoever logged into the machine the app is running from. How can I do this? thanks, mike w....more >>

Web page control
Posted by mike w. at 1/17/2005 7:31:12 AM
I need to display the contents of a web page in a control on a form thanks mike w....more >>

Test for multiple application executions (VB.NET)?
Posted by Larry Woods at 1/17/2005 6:41:07 AM
Can't find the right object... How do I test to see if my application is already executing; i.e., multiple application executions? TIA, Larry Woods ...more >>

Calling Unkown WebService
Posted by James Doughty at 1/17/2005 5:23:56 AM
I am writting a window service that call a webserice at a specified time. Basically I'm try to create a task sceduler for several webservices. I don't want to add the webservice to the project of course, I prefer to store the webservice url and webmethod to invoke in a XML file. None of the m...more >>

How do I refer to Startup Form Controls from another form.
Posted by JAPSTER at 1/17/2005 4:43:56 AM
An application has a startup form (Form1). A second form (frm2), created from within Form1. Each form has a textbox. To access the text in TextBox1 in frm2 from Form1, you use: frm2.TextBox1.Text = "XXXXXX" How do I refer to the TextBox1 controls Text property in Form1 from frm2? Form1...more >>

Question on ""
Posted by Michael R. Pierotti at 1/17/2005 3:59:17 AM
thrdReply.SMSMessage = "The keyword " + Keyword + "does not exists. Please try again." I want to add "" around the String Keyword and am not exaclty sure what to do. Thanks, Mike -- THIS TRANSMISSION CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION.This information is intended to b...more >>

Open a form using a string
Posted by DC at 1/17/2005 3:41:02 AM
Hi all, is there any way to open a form (create an instance) when its name is stored in a string variable? By the way, in other post, someone wrote that datagrid is mostly used with datasets/datatables rather than arraylists. My question is, in either cases I must set up columns, don't I? ...more >>

VS.Net Property Collection Editor
Posted by Friskusen at 1/17/2005 2:42:35 AM
I have (almost) added a simple Toolbar custom control to my control library. The Items on the toolbar are implemented in a class named ToolbarItem. I also use a class ToolbarItemCollection to manage ToolbarItems. The Toolbar control has a property Public ReadOnly Property Items() as Too...more >>

DPI Settings
Posted by Jeff at 1/17/2005 1:57:06 AM
Hi - I have a VB.NET application (for Win2K and later), and I'd like to ensure that it displays properly regardless of how the user has set his DPI Setting on his system. 1. What is the best way to detect the user's DPI setting? I found 2 registry keys, but which is the right one to check...more >>

Access to MDB's
Posted by BobAchgill at 1/17/2005 12:19:05 AM
What is the best way to get data from an MDB (Access) file into a Win Form? And is there a way to do this but not have to install the H-U-G-E MDAC? (Note: My target users are on Windows 2000 and XP systems.) My experiences up till now are: I have been using the Jet driver under Ole...more >>


DevelopmentNow Blog