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 friday january 21

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

Launch an app from inside a vb program
Posted by Jm at 1/21/2005 11:52:34 PM
Hi all Im using System.Diagnostics.Process.Start to launch external apps from my app but the working directory seems to point to where my app is located. How can i get around this and basically say the working directory is the path of the app that im launching ? I used shellexec api under vb6 ...more >>


System.Diagnostics.Process.Start
Posted by Jm at 1/21/2005 11:51:50 PM
Hi all Im using System.Diagnostics.Process.Start to launch external apps from my app but the working directory seems to point to where my app is located. How can i get around this and basically say the working directory is the path of the app that im launching ? I used shellexec api under vb6 ...more >>

test2
Posted by JM at 1/21/2005 10:11:01 PM

Newbie question: Mid or Substring???
Posted by VicWare at 1/21/2005 9:33:09 PM
Hi, I'm quitte experienced with VB, but now I'm starting with VB.net and have a (newbie) question about the functions to use in VB.net. Should I use the covential functions like 'mid', 'left' etc. or should I use the .NET functions like Substring etc. Is there any problem in using the c...more >>

What is Drag/Drop Link
Posted by Just Me at 1/21/2005 8:18:18 PM
I noticed I could drag a filename from windowsexplorer onto a richtextbox and drop it as a Link and the result is a link on the box that open the file if I click it. Is that the whole story. Are links only for opening files into their app? I also wonder why the effect All includes Scrol...more >>

command line parser
Posted by VNN at 1/21/2005 7:53:58 PM
is there any sample how to do this? Thanks ...more >>

why doesn't this For Each work?
Posted by Martin Williams at 1/21/2005 7:47:44 PM
I have a working version of my survey program, but i'm trying to optimize now. On the last page, i have a sub that examines all of the answers and assigns them to variables for uploading to the dataset. A few questions have multiple checkboxes and i used multiple 'if then' statements to append ...more >>

check network connection
Posted by Thomas at 1/21/2005 7:00:49 PM
hello, which is the easiest way to check if there is a lan connection available. i have to go to a network share in my lan - but if the notebook is not connected to this lan i would like to stop some things in my app. is it a ping? - how can i check the result a ping is returning? Thom...more >>



timer oder sleep?
Posted by Thomas at 1/21/2005 7:00:47 PM
hello, what is the better solution if it is possible to choose? a timer or sleep? which one is better for min resources? Thomas...more >>

VbPowerPack
Posted by Dennis at 1/21/2005 6:25:02 PM
I am trying to use the FolderViewer in VbPowerPack but it does not show network drives nor shared folders on the network. Is there anyway to get to act like a real control and show these items. I tried to decipher VbPowerPack and modify it but it seems that Microsoft has to use many Com Pr...more >>

Deployment problems
Posted by Tom Hoogeboom at 1/21/2005 5:58:27 PM
I have written a .Net web application to deliver data contained on a SQL server to web pages requested by a client. The .aspx page generates an SQL statement pointing to a stored procedure on the SQL server, and connection is made via a connect string containg server name, user id, pwd, and i...more >>

International characters conversion
Posted by Jeff Johnson [MVP: VB] at 1/21/2005 5:46:41 PM
First, this is an abuse of cross. Second, you have future-posted. Hopefully everyone will ignore your post until you show a little courtesy. ...more >>

App.config classlibrary
Posted by Alex Kid at 1/21/2005 5:34:29 PM
I have a Client/server software and in a Server Class Library. I have need to save of the configuration data(App.Config) but I know that what is not possibile.In alternative could use? I would not want to set these information from the client... ...more >>

Embedded Resources and ResourceManager
Posted by Dennis at 1/21/2005 5:27:02 PM
I have a .resx (xml) file that contains resources. I am trying to follow the example in MSDN for creating the resource Manager as follows: Dim myAssembly As System.Reflection.Assembly myAssembly = Me.GetType.Assembly Dim myManager As New _ System.Resources.ResourceManager("ResourceNa...more >>

TypeConverter.CreateInstance How does it works
Posted by João Santa Bárbara at 1/21/2005 4:47:10 PM
Hi all i have a class that i have made and i made an Typeconverter as well, and my problem is the code genereated in my form is Dim ClassTest1 As TestApplication.ClassTest = New TestApplication.ClassTest Me.MyClassTest = ClassTest1 Wich is quite good, but my problem is in my property brow...more >>

NullReferenceException
Posted by elven byte at 1/21/2005 4:46:39 PM
Hi everybody. I'm making an application for a Symbol with keyboard, with Operating System Windows Pocket PC 4.20, it has a keyboard incorporated (the one with the rubber keyboard), and I'm making the application wit VB.NET with SP2 installed on it (it fixes some problems with this keyboard ...more >>

Technique for Pausing Worker Thread
Posted by Charles Law at 1/21/2005 4:31:49 PM
My first thought was to call WorkerThread.Suspend but the help cautions against this (for good reason) because the caller has no control over where the thread actually stops, and it might have a lock pending, for example. I want to be able to stop a thread temporarily, and then optional...more >>

Trying to emulate System assemblies...
Posted by Rob R. Ainscough at 1/21/2005 4:19:44 PM
I'm trying to figure out how Microsoft were able to setup the namespace/assemblies in such a way that the corresponding Class Library DLL's seem to be aware of the other Parent/child DLL relationship? i.e. System (is a System.DLL), System.Data (is System.Data.DLL), etc. etc. when I try to...more >>

Asp.net: detect textbox scrolling
Posted by Leonardo Santos-Macias at 1/21/2005 3:36:58 PM
I have an asp.net textbox with some EULA and a button to accept the EULA. The textbox will have scrollbars since the EULA is several pages. Is there any way using asp.net, vbscript or jave to detect if the user scrolled the textbox down to the bottom? Thanks in advance ...more >>

DataTable and ParameterDirection
Posted by kurt sune at 1/21/2005 3:19:10 PM
I am trying to use a DataTable as a transporting container between components for data to be inserted into sql server via a stored procedure. The idea is to extract data, rowcolumn by rowcolumn, from the datatable, remake them to parameters, append the parameters to a commandobject and pass t...more >>

Datagrid
Posted by Geoff Jones at 1/21/2005 3:16:10 PM
Hi All What event do I need to capture when a user changes the column width in a datagrid? Geoff ...more >>

Looking for a component to validate a license key...
Posted by Jéjé at 1/21/2005 2:48:52 PM
Hi, I want to integrate into some components (webcontrols, custom DLL, custom command lines tools...) a license validation. The license will be attached to the client's name and the primary hard drive ID of the customer computer. (or any combination to make sure that the tools are instal...more >>

System.OutOfMemory Exception
Posted by LP at 1/21/2005 2:43:02 PM
Hello, We running VB.NET application which gets massive amounts of data from SQL Server, loads data into DataTables, then re-arranges data into tabular structure and outputs it to a flat file. This is just the nature of requirements for this application. Business analyst here want certain data...more >>

How is this done now?
Posted by vbMark at 1/21/2005 2:39:13 PM
A long, long time ago when I programmed in basic, I could have following lines, for example: Data "dog,1,yes,brown" Data "cat,3,yes,white" Data "horse,1,no,brown" Data "pig,7,no,pink" Data "cow,1,no,black" And then some code (I forget how) to read the lines. Does anyone know what I'm ...more >>

add text in crystal report from windows form
Posted by jaYPee at 1/21/2005 2:04:44 PM
I have a windows form that has a textbox for remarks to be passed into my report. I'm wondering how can I passed the value of this textbox to my report. Sorry if this is the only group I use to post my question 'cause my news server doesn't support groups for crystal....more >>

get username on file changed?
Posted by news.microsoft.com at 1/21/2005 1:28:35 PM
Hello, I want to create a program that will monitor the usage of a particular file and record the date, time, and username of the person who modified the file. The FileSystemWatcher Class seems to be very useful for this purpose, except that it does not provide username information. I...more >>

Thead Completion
Posted by TCORDON at 1/21/2005 12:48:33 PM
How can I determine the moment a thread finishes? I start the thread this way: Dim x As New Threading.Thread(AddressOf (MySub)) x.Start Is there any x.Finished type of Event or how can do this? Thanks ...more >>

How to open a form From a closing One
Posted by TCORDON at 1/21/2005 12:22:27 PM
I have an MDI application, I need to open an MDIChild whern another one closes. How should I handle this. How do I assign the parent form? If I use: Sub Button1_Click() dim MyNewForm as New Form2 MyNewForm.MDIParent=frmMDI ? MyNewForm.Show me.close End Sub This will n...more >>

Change Font Size of a Label
Posted by Dave at 1/21/2005 12:20:31 PM
How can I change the font size of a label? I have: Label1.Font.Size = "12" but it's telling me that property 'Size' is readonly. Thanks, -Dave ...more >>

Rectangle with rounded corners
Posted by Rod Gill at 1/21/2005 12:01:27 PM
Hi, VB.Net, Visual Studio 2003, Windows Application I want to avoid the old Windows rectangle shape, but I don't need or want complex bitmaps. What's the easiest way to create a form with rounded corners please? I'd would rather not use a bitmap and transparency as I've read in MSDN tha...more >>

How to return nested string array from a function
Posted by moondaddy at 1/21/2005 11:51:02 AM
I need to return a nested string array from a function and am getting hung up on syntax. Here's a simple example of a function that returns the array and how I'm trying to call it. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Cli...more >>

How can I bind a Windows Forms Datagrid to a collection?
Posted by Michael Kellogg at 1/21/2005 11:24:33 AM
I have a collection of custom objects that I am displaying in a Windows Forms Datagrid. To display it, I take the collection and build a DataTable object on the fly, then set the grid's DataSource to the DataTable. The code for this is lengthy and the grid is obviously not editable. I've re...more >>

Reset a form?
Posted by Martin Williams at 1/21/2005 11:18:53 AM
If you have a form with multiple controls e.g. radio buttons, checkboxes, etc., is there a way that you can reset the entire form to its original state, other than setting an instance of the form to "Nothing" then redeclaring it? Thanks. ...more >>

Datagrid inserts blank space into textboxes?
Posted by Roy at 1/21/2005 11:06:56 AM
Hey All, Kind of a series of anomalies here with one root source, I believe. I have an editable, paging datagrid. 1.When one clicks "edit" textboxes open up on row x, HOWEVER, if one clicks "next page" the textboxes remain no matter which page you are on. No error messages are shown. 2.Aft...more >>

How to Convert Byte Array to Int32 (Big-endian)
Posted by Charles Law at 1/21/2005 11:02:17 AM
I thought this had come up before, but I now cannot find it. I have a byte array, such as Dim a() As Byte = {1, 2, 3, 4} I want to convert this to an Int32 = 01020304 (hex). If I use BitConverter, I get 04030201. Is there a built-in way to do this, or am I stuck with extracting and ...more >>

Detect when ActiveForm changes
Posted by ljlevend at 1/21/2005 10:59:01 AM
Is there any way (either .NET or API) to detect when Windows.Forms.Form.ActiveForm changes? Thanks, Lance ...more >>

Format Function
Posted by Rob T at 1/21/2005 10:51:37 AM
I'm looking for a way with either Format, FormatNumber or FormatCurrency to show a dollar amount the normal way (like 123.40). But if the value is 0, I want it to return "". I would like to avoid using an IF statement or calling a costum function to do this. (I have some reports that woul...more >>

Editing arrays in PropertyGrid
Posted by ljlevend at 1/21/2005 9:41:03 AM
Is there any way to prevent a PropertyGrid from allowing the user to expand the elements of an array? For properties that are of type ArrayList or CollectionBase a PropertyGrid only allows the items to be edited in the Collection Editor (by clicking the button with the ellipses). But, for ...more >>

For serialization experts...
Posted by To at 1/21/2005 9:40:45 AM
Hi. I've two big serialization problems: The first is about the <nonserialized> attribute on a field on a mother class. His inheritance seems to be effective only if the member is public. If it is not the case, when I try to seriliazise the child class, vb tries to serialize my non serializabl...more >>

datagrid question
Posted by Barney at 1/21/2005 9:35:06 AM
I need to populate a datagrid but I dont need headers, so how can I bind the datagrid and only show the data I need, second how can I hide the headers of the grid? ...more >>

SQL Insert Comma Delimited string
Posted by BrianDH at 1/21/2005 9:23:05 AM
String = “val1, val2, va3, va4” Insert value into col1 (String) I am looking for an example of an insert statement that parses a string with multi values separated by a comma. I want to parse these values and put one Value, per row, into the same column. Thanks BrianDH ...more >>

Zipping files
Posted by RJN at 1/21/2005 8:54:25 AM
Hi Does .Net provide libraries for zipping files? I read that a third party component CSharplib is available for doing this. Is there any license restriction for using this? Thanks rjn *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...g...more >>

Different behavior in debugger between VB.NET and VC#
Posted by LF at 1/21/2005 7:54:09 AM
Hi, Why is it when you build an assembly in C# and it has a private fields in a class, they are not visible in the Watch/QuickWatch window when referenced and debugged from VB.NET project. But if you build VB.NET assembly and reference it in VB.NET project, you do see private members in W...more >>

Debug 2 projects
Posted by y1799 NO[at]SPAM yahoo.com at 1/21/2005 7:53:20 AM
Hi, I have such problem: I created 1 solutions that contains 1 exe project and 1 dll one. I Added reference of dll project (not file, project) to exe project, set dependencies (exe depends of dll) and set solution Debug configuration. I hope it enoung for debuging 2 projects together. B...more >>

SQL Server remote connection
Posted by Nawedra at 1/21/2005 7:43:01 AM
Hi to everybody, I'm a vb.net newby, I've a win app trying to connect to a SQL Server database. I've set the connection string in myapp.config. I should encrypt it but i've this problem: when I launch my app from my laptop all is going well, but if I try to launch the app .exe from a pc in th...more >>

How to assign a null value to the Column in the Database from VB.N
Posted by Prabhudhas Peter at 1/21/2005 4:57:02 AM
How to assign a Null value into a database column which is declared as an Integer from VB.Net... -- Peter......more >>

Maybe off topic question
Posted by TD at 1/21/2005 4:55:29 AM
OK, I didn't know where to start to ask for help with this question, but here goes. I have a Windows 2000 Pro computer with a single partition on the hard drive. I want to installed the following software on it: Microsoft Office 2000 Professional (for Access work) Microsoft Office 2003 Profe...more >>

How to assign a null value to the Column in the Database from VB.N
Posted by Prabhudhas Peter at 1/21/2005 3:35:02 AM
I want to assign null value to a column in the database which is decalred as an integer from VB.net... Is there any specific keyword like vbNull as in vb 6.0. -- Peter......more >>

How to pass a combobox.text field in BOLD type
Posted by yer darn tootin at 1/21/2005 3:06:55 AM
Hello, I have a method which takes various string values to create an automated email. Anyone know how I can make a particular string value passed appear in bold type in the email? ( below, the cboPrio.Text value for example ) Email_AutoSend(sEmailTo, USER.Name, cboPrio.Text ) 'calls m...more >>

using pipes for communication
Posted by el7akika NO[at]SPAM yahoo.fr at 1/21/2005 1:00:02 AM
hi i want to communicate between simulator1 and simulator2 I use pipes, but, um, it doesn't seem to work right. The main idea is to have a process(main) simulator1 that creates another(child)simulator2 using CreateProcess(). i launch simulator 2 and establish a communication with him ...more >>

3 tier design AND data binding?
Posted by zc2468 NO[at]SPAM hotmail.com at 1/21/2005 12:13:38 AM
I am new to dot net and would like to write an application using a solid 3 tier design because I expect the app to require a lot of updates and maintenance over time. I am creating my own data objects to interact with the database but the more I understand the DataAdapter classes, the more con...more >>


DevelopmentNow Blog