Home All Groups Group Topic Archive Search About

Visual Basic .NET

microsoft.public.dotnet.languages.vb
Score FolderBrowserDialog question
Bob - 12 Aug 2006 11:43 PM - 3 messages
How do you detect n code that the cancel button was clicked in the folder browser dialog (Vs2005) Thanks for any help Bob ...
Score My windows service just "stops"
Terry Olsen - 12 Aug 2006 11:01 PM - 4 messages
I have a windows service that has been running fine for almost 6 months. Last week, it just stopped working. It is still in the task list and still shows "started" in the service manager.  There are no exceptions ...
Score Serial Port
Denis R Charron - 12 Aug 2006 10:54 PM - 3 messages
Hi How can I send what I type in a textbox to a serial port has hexadecimal AA BE 02 80 51 00 00 00 00 00 02 80 08 00 00 00 I want to send the above line to my serial port ...
Score Selectednode
Jerry - 12 Aug 2006 7:56 PM - 9 messages
Hello, I am able to GET the selected node with my code. I would however like to SET any node with code. Something like me.treeview.selectednode="First" But this doesn't work. I can't find anything on setting this property. Can ...
Score Error / exception
Henry - 12 Aug 2006 7:48 PM - 3 messages
Does anyone have any clue what this is about? 'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webenergy\3b3a5a9b\7ac72ea\App_Web_3uqg9g-v.dll', Symbols loaded. 'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET ...
Score How to launch Notepad and open an existing file?
Bob - 12 Aug 2006 6:20 PM - 3 messages
Looking at shell command I don't see how I can specify the filename to open. I need to launch notepad AND automatically open an existing file. Using VB 2005. Any help would be greatly appreciated. Bob ...
Score FTP Upload (Encoding) problem
Jerry Spence1 - 12 Aug 2006 5:17 PM - 4 messages
I have the following code (copied from the web somewhere) which I am using to upload some files:             Dim Filename As String = Dir(OutBox)             Do ...
Score Regular expression to match person's name
Johnny Williams - 12 Aug 2006 5:17 PM - 13 messages
I'm struggling to create a regular expression for use with VB .Net which matches a person's name in a string of words. For example in "physicist Albert Einstein was born in Germany and" I want to match "Albert Einstein" ...
Score How to get the names of the projects within a solution ?
tommaso.gastaldi - 12 Aug 2006 4:37 PM - 2 messages
Hello friends, I need to retrieve - by code - the names of the assemblies which compose the current solutions. The retrieval code is assumed to be run in one of the assemblies (usually the one corresponding to the "lower layer" DLL). ...
Score TimeSpan issue
Rob - 12 Aug 2006 12:27 PM - 3 messages
I was just getting started with TimeSpan and I get a error in my first line of code... I write... Dim ts as TimeSpan And Intellisense gives me an error "Type Expected" I did notice that there were 2 TimeSpan choices in the Intellisense drop ...
Score Array in Structure
Lance - 12 Aug 2006 12:27 PM - 12 messages
Hi all, I've got a some structures defined as //////     <StructLayout(LayoutKind.Sequential)> Public Structure GM_LayerInfo_t         Public mDescription As String         Public mNativeRect As GM_Rectangle_t ...
Score How to send sms using vb.net windows app
Vijay - 12 Aug 2006 6:19 AM - 2 messages
Hi friends, I have to plan to do a small proj. I want to know , How to send sms using vb.net .. I searched on net . But , I didn't find anything useful. Could any one have idea about that? ...
Score view state
Seema Multani - 11 Aug 2006 11:21 PM - 2 messages
I have two a user controls in which I have two buttons "btnAdd" and "btnRemove".  I have a multiview and I have two views in that multiview named"View1" and "View2".  I want that when I click on "btnAdd' then show ...
Score Form Layout
TyBreaker - 11 Aug 2006 11:03 PM - 4 messages
Is it possible to set controls to dock/anchor to nearby controls rather than to the edges of the form?  Trying to have the form controls auto-adjust if a particular controls resizes. ...
Score Windows Service losing variable value?
Rico - 11 Aug 2006 10:41 PM - 3 messages
Hello, I wrote a Windows Forms program that works fine using VB.net 2003.  I wrote the code in stand alone modules, and used the form to call the subs and functions to make sure everything works fine. The code uses ADO.net to get a ...
Score Problem with ComboBox
JJGarcia - 11 Aug 2006 10:21 PM - 5 messages
Hi Everyone, I'll try to explain the process I'm following, I'm new to this so I'm triying the easy way first, probably the lasyest too! I created a new Project, drag in to it a SQLConnection, configured, ...
Score Build Release with VS2003 on machine
Bob Day - 11 Aug 2006 9:55 PM - 2 messages
Using VS 2003 and VB.net... Does a build release react differently to an exception if it sees a debugger (such as VS 2003) on the machine? With a bad SQL connection string, the VS 2003 F5 debug and the debug build ...
Score Help! pumping wait primitives - what is that?
Bill Nguyen - 11 Aug 2006 9:49 PM - 3 messages
below is the error message I received when about 2/3 of the process is done. Where in my code I sould look for? Thanks Bill --------- The CLR has been unable to transition from COM context 0x1afa18 to COM context 0x1afb88 for 60 seconds. The thread that owns the destination ...
Score Run an Access report in a VB .Net application
Tony A. - 11 Aug 2006 9:31 PM - 4 messages
I'm in the process of migrating a MS Access 2003 application to VB .Net (2005).  How can I run the reports in Access from the VB application? ...
Score How to detect if program execution is in debug mode?
Bob - 11 Aug 2006 9:13 PM - 4 messages
If I'm running the executable, I need to do something, but if I am running the program fom within Visual studio I need to use another bit of code. Thanks for any help. Bob ...
Score execution from command line
Selva Chinnasamy - 11 Aug 2006 6:53 PM - 6 messages
Hi I have a Windows application written in VB which has many functions. In addition it also reads a database and generates a output file. Currently this function is called when ever user clicks the button from UI. But I like to call the function from command line too. ...
Score What is pasted into a RichTextBox?
Dave Wurtz - 11 Aug 2006 6:50 PM - 2 messages
All, Can someone tell me what DataFormat from the clipboard is used when pasting into a RichTextBox control by using Ctrl-V? If I copy unicode text from a HTML document and paste into a RichTextBox control, it pastes little squares even though the RTB's ...
Score Spli File Path
Laserson - 11 Aug 2006 5:27 PM - 3 messages
Hi all! For example i have a open file dialog called "Dialog_Open" and i use following code: If Dialog_Open.ShowDialog=DialogResult.Ok Then Label_FileName.Text=Dialog_Open.FileName End If but FileName returns the full path of file, but i need only opened file ...
Score My for each loops do not compile - VB 2003
IanT - 11 Aug 2006 4:47 PM - 6 messages
Public Class MyForEachBug   '   Public Class MyData     Public Element As String     Public Group() As String = {"a", "b", "c"}   End Class   '   Public Sub New()     '     Dim Element As String ...
Score Form2.vb[design] innaccessible !
Marcel Saucier - 11 Aug 2006 4:01 PM - 4 messages
I have built an application with one form only (form1). Everything went well for weeks. I have access with Visual Studio 2005 to Form1.vb[design] (the form) and Form1.vb (the code). I decided to add an second form to my application (with some difficulties, i ...
Score Static Variables Vanish
moonliver - 11 Aug 2006 3:56 PM - 3 messages
I have an asp.net application that uses a dll that has Shared/Static members. I thought that the values in the Shared/Static members should only recycle if the application was restarted. but it seems that it is being ...
Score Problem with CustomTyped casting and type checking
theinsanecoder - 11 Aug 2006 3:26 PM - 2 messages
I created several classes that supports custom typing as following: Public Class DataManager(Of CustomType As {DataObject, New}) Public Class LockableDataManager(Of CustomType As {LockableDataObject, New})     Inherits DataManager(Of CustomType) Public NotInheritable Class BusinessManager     Inherits LockableDataManager(Of Business) ...
Score Can I make my program more efficient ?
Gordon - 11 Aug 2006 3:25 PM - 9 messages
Hi; I have designed a vb.net program that reads a dateTime value from a database table and then compares it to Now() through dateTime.compare(). I have loaded an array with my datetime values from my table and I loop through this until a ...
Score Binding an Image to a picturebox
Ryan - 11 Aug 2006 2:43 PM - 3 messages
I have a very basic form that has controls bound to a SQL 2005 database for an Employee Directory.  I'm using a PictureBox control to bind to the "Photo" field which is of datatype image.  However, it doesn't seem to work. ...
Score Can anyone help in shortening this loop???
kberry - 11 Aug 2006 2:15 PM - 7 messages
I am clearing Textboxes on a form... this is loop I have came up with but was wondering if it can be shorter or not as long...  Can anyone help?         Dim controlOnForm As Control    'Places a control on the form ...
Score Encryption: VB 2005 And SQL Server 2005
Marc - 11 Aug 2006 2:11 PM - 3 messages
I need to send a small amount of encrypted data using ADO from a VB 2005 app to SQL Server 2005 and when the server receives the data, I need it to decrypt the data and then possibly change and encrypt the data and send it ...
Score Crash -> no finalize
myname - 11 Aug 2006 1:43 PM - 3 messages
Hello, I noticed that when there's a crash in my programs, the finalize methods of my objects are not called (the memory is freed, but some things are not done, like deleting files or tables). Of course, I should handle all the exceptions, ...
Score tcpListener.AcceptSocket strange behavior
Bjørn_Eliasen - 11 Aug 2006 1:37 PM - 4 messages
Hi, I have an application running on all pc's in our company. Basically it is a TCPListener awaiting for sockets to connect and on connection performs the required tasks. The app works fine, but while the listener is awaiting for socket to connect several other applications can't start, and even installation of new applications migth hang. In order to finalise the other apps or installations the tcp listener is killed resulting in the other apps and installs to complete. ...
Score VB .Net pound problem - HELP!
z - 11 Aug 2006 11:48 AM - 5 messages
Help please I am using File.Append, and writeline("£ 123.00") but write is prefixing the £ with a char(194) when I open the file, need to get rid of this quick, any help appreciated. Thanks T ...
Score create usercontrol that cannot get focus
quelhaslima - 11 Aug 2006 11:07 AM - 2 messages
I'm trying to create a user control which cannot get focus, but is enabled. In VB6, I just set the CanGetFocus property to false, but I can't find the ..NET equivalent. The .NET CanFocus property is ReadOnly. ...
Score DataGridView Column Alignment
Samuel Shulman - 11 Aug 2006 10:27 AM - 5 messages
Hi For numeric columns I want to align it to the right How can I do that? Samuel ...
Score Trouble with pixels
Jaap Bos - 11 Aug 2006 10:25 AM - 5 messages
In VB2005 I use a rectangle (50,50,910,600) into which to display my graphics. After graphing my X-Y data I want to do some measurements on that curve using a crosshair cursor. So I a made a MouseDoubleClick event with the following code: ...
Score Quesion about ADO.NET in VB.NET
Cylix - 11 Aug 2006 10:24 AM - 4 messages
I have a number of function to get some data in database, What is the better design for the task? There should be three function to get differnece data in difference tables, They may need to be call seperately, and so I prefer they have their ...
Score Tip of The Day
Laserson - 11 Aug 2006 10:12 AM - 3 messages
Hi! How to create an application that can show strings in a random order? I tried to create an array of string and then use Randomize() method by all my strings were shown one by one... ...
Score Event handlers
Theo Verweij - 11 Aug 2006 10:01 AM - 7 messages
Does anyone know if there is a way to check if an event is handled? Example code: If EventIsHandled then 'Is this possible?    RaiseEvent MyEvent(Me, New System.EventArgs) Else    'Do something else ... End If ...
Score Converion from a newer version to older one.
fay.zoain - 11 Aug 2006 8:56 AM - 2 messages
How may I open/convert a Visual Basic 2005 project into Visual Basic 2003 or Visual Basic 6? In the same way, what'll be the procedure to open/convert a VB 2003 project into VB6? ...
Score is My.Settings version specific?
Graham Charles - 11 Aug 2006 7:30 AM - 3 messages
Since the .config file that contains the values in My.Settings is saved to... %USERPROFILE%\Local Settings\Application Data\<companyname>\<appdomainname>_<eid>_<hash>\<verison> ....that implies that if I update the AssemblyVersionAttribute (make a ...
Score Threading Question
Aaron - 10 Aug 2006 10:57 PM - 2 messages
Hi, 1.  Can a seperate thread create a form? I created some test code.  I have a sub Test that attempts to create and show a form, objFrmTest which is of type frmTest.   Button1 and Button2 exist on another form (not frmTest). Button1 attempts to run ...
Score Can a .NET Web Service be accessed from a VB6 Client?
John Kotuby - 10 Aug 2006 8:57 PM - 13 messages
I am expecting the answer to be, "of course not" or " are you kidding?", but maybe (hopefully) I am wrong and somebody can point me to an ingenious example of how the impossible just takes a little more work. TIA ...
Score View container
martin1 - 10 Aug 2006 8:49 PM - 3 messages
Hi, All, I put gridview within View container, when running on web server,  the gridview doesn't show on the web page, can anyone help this out? Thanks ...
Score Is there a statement that will completely empty a listbox?
cj - 10 Aug 2006 8:37 PM - 15 messages
listbox1.?????? ...
Score Receiving Email Attachments? - AGAIN
Mike - 10 Aug 2006 8:15 PM - 2 messages
Can I receive and email and parse it's attachment(s) using C# or VB.NET using .NET 1.1? I know I can send mail with attachments but I am having trouble figuring out how to receive them then retrieve and parse the attachment without using a ...
Score Application Priority
Laserson - 10 Aug 2006 7:27 PM - 3 messages
Hi! I tried to change my application's priority to high and i tried maybe all ways to do that - i used Thread.CurrentThread.Priority class to change it, but Task manager shows a normal priority of my app. How to ...
Score Debug Windows Services
Elioth - 10 Aug 2006 7:14 PM - 3 messages
Hi, How I Debug a Windows Services in VB 2005? Thanks for all help. Elioth ...
Score How to code image path relative to project
Dean Slindee - 10 Aug 2006 5:33 PM - 5 messages
In order to deploy my app, I need to specify the following file path as relative to my project.  I need the image to be a file so that it can be processed by the "DrawImageToScale" function so that the image is reduced in ...
Score USB
John Wright - 10 Aug 2006 5:05 PM - 2 messages
I need a library that will allow me to search and communicate with a USB device.  I have the PID and VID of the device and it should be pumping raw data through the port.  I just need to look through the ports, find the ...
Score Tables with Master Pages
Jeff - 10 Aug 2006 4:55 PM - 2 messages
I'm having a terrible time understanding how the Master Pages in VWeb 2005 using VB - handle layout issues with content placeholders and tables. Everytime I think that I understand how these things are handled by DotNet and I have some pages exactly the way I want ...
Score Reporting options in vb 2005
joeB545 - 10 Aug 2006 4:38 PM - 4 messages
I am an Access developer considering using vb.net 2005 to develop a database application.  What options are available for creating reports in vb.net 2005 in the various versions, such as Stardard and Professional?  Also, are there third party controls ...
Score DataGrid Row Labeling
DGP - 10 Aug 2006 4:19 PM - 2 messages
It appears that captions (or labels) can only be placed on the column headings (datacolumn.caption) and not along the row axis.  For large dataset, it would be useful to provide row numbers without having to insert the numbering directly into the datasource (ie along the x axis ...
Score Update xml file with datagrid on client machine
EF1 - 10 Aug 2006 4:05 PM - 2 messages
Hi I wanted to create web application that in part of it the user can browse to xml file located on his machine, it's data will be displayed and can be editable through a datagrid and than save the file ...
Score DataGridView
Samuel Shulman - 10 Aug 2006 3:37 PM - 8 messages
I want to programatically select a row in the list and make it visible in case the row is not already visible because of the length of the list Thanks in advance, Samuel ...
Score Simple way to supress print notification or system hooks???
Milan Todorovic - 10 Aug 2006 1:39 PM - 4 messages
Hello, I need help with something that should be pretty trivial, but I can't seem to find an easy way to do it. I have a printing routine set up in a windows vb.net 2005 app. The routine ...
Score contextMenu Problem!!!
zulander - 10 Aug 2006 1:39 PM - 4 messages
hi tring to make a Menu Item Cheked but it doesn't seem to work, any sugestions ? 'Add Items         Dim countera As Integer         For countera = 0 To 15 ...
Score How Programatically add to Scheduled tasks
vighnesh - 10 Aug 2006 12:54 PM - 4 messages
Hi Folks I am doing an VB.NET application in which I want to add scheduling feature, so that my application can run at a scheduled time, how can it be done programatically. Please post your suggessions. Thanks in advance ...
Score CanGetFocus
quelhaslima - 10 Aug 2006 11:54 AM - 4 messages
how convert CanGetfocus From VB6 to VB.Net anywone, can help me? thanks. ...
Score OLE: Excel.Application
myname - 10 Aug 2006 11:13 AM - 2 messages
Hello, in VB.Net, I use Excel to display results : dim xl as new Excel.Application // creates an Excel process // snip (putting values into cells) xl.Visible = true If the user closes the Excel file, the Excel process remains in memory until my program is closed, which is good. ...
Score Convert inmemory bitmap nach png mit transparent farbe
Wolfgang Hauer - 10 Aug 2006 9:22 AM - 3 messages
Hallo! Ich habe eine inmemory-bitmap. die ich leider in eine png-datei umwandeln muss. ich mache das jetzzt so: b = New Bitmap(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(sFullName)) If b Is Nothing Then Return "" End If sFileName = SS.AppShared.GetTempFileWithAutoDelete("png") ...
Score Events in a remote computer
sgr - 10 Aug 2006 7:04 AM - 2 messages
Hello,      I am making a program that allows me to read the Windows events, I would like that in addition to the local equipment it could read of a remote computer of my network.     ...
Score determining line numbers upon error
JohnR - 10 Aug 2006 6:04 AM - 3 messages
Hi, I'm looking for some advice and guidance.  I have a program in vb.net and I know that when it's run and the pdb file is available that the exception will contain the line number of the error.  Obviously when trying to track ...
Score listView - filling it with datareader
Martin Panggabean - 10 Aug 2006 4:39 AM - 4 messages
Hello All, I've kind a logic problem ... I want to fill the listView control in VB.NET with data in my mySql table using Datareader object component. But It seems that the way of how listView being used is quite different from usual ...
Score anonymous methods only available in C#?
PJ6 - 10 Aug 2006 3:47 AM - 22 messages
I just learned about anonymous methods and was taken aback to discover that they are only available in C#. What, is there still a stigma against VB.Net, that maybe somehow this is a language that doesn't deserve to be as powerful ...
Score problem integrating java window.open with VB
Jeff - 10 Aug 2006 3:10 AM - 2 messages
....still new to VWeb .net 2005 wtih VB... ....having some problem integrating java script to open a second browser window with my VB code. The following line (in page-load) properly opens a new IE window (when button1 is pushed) called, "NewWin" and places the content from "comment.aspx" into it. ...
Score Help Needed. Update with parameters error - No value given for one or more parameters.
Hexman - 10 Aug 2006 2:55 AM - 3 messages
Hello All, Well I'm stumped once more.  Need some help.  Writing a simple select and update program using VB.Net 2005 and an Access DB. I'm using parameters in my update statement and when trying to update a record, I get a "No value given for one or more parameters." error message. ...
Score declare API without direct file name
iwdu15 - 10 Aug 2006 2:13 AM - 6 messages
hi, i need to have a declare statement for an API to call a method in it, the only problem is that i dont neccessarily know where on the comp it will be. I kno it will be in my application folder, but how do i say that in the ...
Score Setup project in VB.NET ?
Cylix - 10 Aug 2006 1:35 AM - 5 messages
I have a COM project which is already produced and using for in-house, As it is COM project, by default, VS2003 create a setup project for it. Right now, I need to do some improvement for the proejct, But I found there is no way to do the upgrade action. ...
Score VB2005 Hiding Windows Forms
Steve954 - 9 Aug 2006 9:49 PM - 8 messages
I recently installed and started using VS2005 on a Windows XP Pro machine. When creating a new windows forms project I find that I am unable to hide any forms using the me.hide() or me.visible = False methods. As far as I can tell ...
Score GDI+ hardware acceleration
PJ6 - 9 Aug 2006 7:59 PM - 3 messages
Anyone know if MS has plans to *ever* have GDI+ support hardware acceleration? Paul ...
Score Making a domain lookup in asp.net
Christopher Brandsdal - 9 Aug 2006 7:51 PM - 3 messages
Hi! I have found a script to lookup domain names, but it is written in C#. I want so bad to translate this to VB! Can anyone help me? I have tried myself. The script seems to run fine, but I never get any response on the ...
Score Intellisence
patrickparent - 9 Aug 2006 6:42 PM - 3 messages
I have search this forum and I want to know if there is only the XML way to add function description to Intellisence, or there is any way to do it like this <Description("Description etc...")> Public Sub Qwerty ...
Score Change default timeout
Bawa - 9 Aug 2006 6:24 PM - 2 messages
Hi everyone, Here's my problem.  I have a big vb.net application with a lot of calls to stored procs.  I don't want to add the line "Command.commandTimeout = 600" in front of each of these calls.  So, the default timeout is set ...
Score Passing parameters best practice
tshad - 9 Aug 2006 6:14 PM - 5 messages
I need to pass a few parameters to my Windows Service program. The end user will be changing the parameters and settings should be saved. What is the best practice - use app.config - use .ini file - use Registry - write a Windows Application program and save the settings to database ...
Score ErrorProvider in .Net 2003
Freeon - 9 Aug 2006 6:14 PM - 5 messages
How do I capture the hover event on the ErrorProvider control? I created a custom control and inherited the ErrorProvider.  Problem is I don't know which method to override to capture the hover event.  I want to popup a custom form instead of the default tooltip. ...
Score textchanged event
gonzosez - 9 Aug 2006 5:49 PM - 2 messages
I have an application that gets values from the registery and populates textboxes on a form. I have also created a sub using textchanged event. which prompts the user to save their changes. The problem is that when the form loads and the textboxes are filled it ...
Score MessageBox in Validating event cancels subsequent events
Al Santino - 9 Aug 2006 5:34 PM - 17 messages
Hi, It appears displaying a messagebox in a validating event will cancel the subsequent event.  In the program below, button 2's click event doesn't fire if you open a dialog box in button 1's validating event.  Am I doing ...
Score Drawstring question...
johnb41 - 9 Aug 2006 5:23 PM - 2 messages
I need to print out a string of text and obviously i'm using the DrawString command. But the string must be placed AFTER some "programmatically generated text" (also printed using DrawString).  That text would range from a single line, to maybe up to 10 lines.  So i cannot hard code the ...
Score Drawstring question...
johnb41 - 9 Aug 2006 5:23 PM - 6 messages
I need to print out a string of text and obviously i'm using the DrawString command. But the string must be placed AFTER some "programmatically generated text" (also printed using DrawString).  That text would range from a single line, to maybe up to 10 lines.  So i cannot hard code the ...
Score Launch External Program
Glenn Palomar - 9 Aug 2006 5:09 PM - 4 messages
Hi, How will you know if an external program has launched successfully? I'm trying to use System.Diagnostics.Process class. I know that you can check if the process has exited but can you tell if it has launched it successfully? ...
Score How do I send null values to an integer type variable?
Learner - 9 Aug 2006 4:48 PM - 4 messages
Hello, I posted this question couple of days ago here in the forums. [link] Thanks -L ...
Score Description of Function
patrickparent - 9 Aug 2006 3:29 PM - 5 messages
I'm looking for a way to add comment directly in the tooltip that pops when you type a function and you have to insert parameters. Like the tooltips you have when you create a new ArrayList Dim a as new arraylist(capacity) ...
Score listview itemcheck event problem
ian.watkins - 9 Aug 2006 2:04 PM - 3 messages
I'm having a problem with the listview itemcheck event since upgrading a smart device app from VS2003 VB.NET CF1.0 to VS2005 VB.NET CF2.0. I'm using the listview item checkbox to indicate if the item is ...
Score End all running code of .dll
JakkyTchong - 9 Aug 2006 1:45 PM - 5 messages
Hi, I'm writing a .dll. I'd like to know how to stop all the code running from anywhere in the solution. For example: -A class of the .dll is called from an .exe. -Function A is called from the main sub. ...
Score My.Settings in a class library project?
Zoe Hart - 9 Aug 2006 1:27 PM - 2 messages
Prior to VS2005 I configured my applications via the appSettings section of the app.config file. When I developed a class library, I used ConfigurationManager.AppSettings(settingName) syntax and the compiler didn't care that no such settings existed yet. The settings were ultimately managed ...
Score Class item not accessible because it's private... but it's not?
Bmack500 - 9 Aug 2006 1:08 PM - 4 messages
I have a sub, and a class. The sub is like this: Sub dothis()         Dim aInfoListX As New infoWrapperClass         aInfoListX.params = ReadConfig()         Dim sqlCMD As New SqlCommand ...
Score Referencing Controls created at run time.
T Clancey - 9 Aug 2006 1:07 PM - 7 messages
Hi all.  I've found a small bit of code that allows me to create a bunch of picture boxes at run time, but I still need an example of how to handle the controls in code.  I need to access the mouse events for each individual ...
Score Multi-level TreeNode storing?
Brian Tkatch - 9 Aug 2006 1:01 PM - 3 messages
I have a form that has six possible setups for a TreeView, though after the Tree is shown, they all act the same way. The Nodes have three or four levels. Repopulating the tree for another setup takes a moment due to the logic ...
Score Dataset
Peter Newman - 9 Aug 2006 11:44 AM - 6 messages
vb.net 2003 & SQL2005 when opening a form i greate a dataset and add a table to it,  what im trying to find out is the best way to destroy the dataset when i close the form any ideas? ...
Score Me.Hide()
gene kelley - 9 Aug 2006 6:47 AM - 3 messages
I have a dialog form, frmDetails, that is opened from the main form: frmDetails.ShowDialog() The only way I have provided to close this dialog is via the "X" button. If frmDetails is just closed as normal, there is no visual problem (no repainting) with the main ...
Score IE Flashing
Jeff - 9 Aug 2006 6:17 AM - 2 messages
With DotNet Web 2005 using VB: (still new to this) I've noticed that when my code runs in Firefox, page postbacks appear "smooth" - you can only tell that a postback has occurred by either seeing it on the status bar or seeing something on the page that I've altered programatically. When this same code is run ...
Score Writing to a file opened in another class
AA - 9 Aug 2006 5:27 AM - 3 messages
Hi, I am trying to write to a file. I have 3 classes defined. In 1 class (Test), I have the File open, close utilities. The application is a console application. I am opening the file in class Test1. I write ...
Score MS VB Newbie Tutorial
Peter - 9 Aug 2006 3:45 AM - 8 messages
Hi all, I am trying to complete the tutorial on: [link] I am up to this step: # In the Form1_Load event handler, type the following code. If My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Saturday Or _ ...
Score Check to see if a server is running
tshad - 9 Aug 2006 2:01 AM - 10 messages
This is similar to another post I did where I would like to check one server from another server programmatically (from a service) to see if it is running and then act accordingly if it isn't.  Send an email, for instance. ...
Score Check if a Windows service running
tshad - 9 Aug 2006 1:58 AM - 5 messages
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running.  I know how to check to see if the status is in stopped ...
Score FileListBox from VB6?
kokirichild - 8 Aug 2006 10:14 PM - 10 messages
Hi All! I've been scouring the web to no avail, but what I'm looking for is something similar to the FileListBox that was there in VB6 but seems to have been removed (or moved) in 2005. Does anyone know of a way to display a list of files in a given ...
Score button to get a directory
Joris De Groote - 8 Aug 2006 9:46 PM - 3 messages
Hi, I have a textbox where users can enter a directory which the program then uses. How can I add a button to let the users select a directory and the selected directory be placed in the textbox? (I know how to add a button, ...
Score reading text file using streamreader
JM - 8 Aug 2006 7:57 PM - 2 messages
Hi, I have been trying to read a file, using "StreamReader" to pass the info to an string that is: ....dim stream as new FileStream(file,...) dim sr as  new StreamReader(stream) dim data as string = sr.ReadToEnd... My problem is that in the file (is a text file) there is some data like: ...
Next » 2 3 4 5 6 7 8 9 10