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 > september 2004 > threads for wednesday september 29

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

File.Copy Method
Posted by Jul at 9/29/2004 10:06:32 PM
File.Copy Method does not let use template for copying files, I can not use File.Copy("C:\ABC\*.txt", "C:\XYZ\*.txt") but I need to use such way: File.Copy("C:\ABC\1.txt", "C:\XYZ\1.txt") File.Copy("C:\ABC\2.txt", "C:\XYZ\2.txt") Does exist way in .Net for copying file by template? ...more >>

Shell
Posted by Jul at 9/29/2004 10:05:55 PM
Does exist in .Net analog of "Shell" function from VB6? ...more >>

Master-details question
Posted by HS1 at 9/29/2004 9:58:36 PM
Hello all I followed the example in Visual Studio.net to create a master and detail relationship as following: two tables: Customers and Orders two DataGrid: GridOrders and GridDetails -------------- Dim myDataRelation As DataRelation myDataRelation = New DataRelation ( "CustomerOrder"...more >>

Checking records of database before inserting in VB.NET
Posted by Mamatha at 9/29/2004 9:38:20 PM
Hi I want to insert data into the database from VB.NET,before inserting i want to check those records for eleminate of duplication. I tried with thte dataset but i didn't get the correct output.If any one suggest me thanks in advance. Mamatha...more >>

setting MyForm=Nothing doesn't clear all components
Posted by Jeremy at 9/29/2004 9:19:15 PM
I have an mdi app with a misbehaving form. In its closed event I do MyForm=Nothing. But when the user re-opens the form, one of the comboboxes remembers the previous displayvalue. Is there something else I need to do to kill the components on the form? Jeremy ...more >>

Returning a Class from a function
Posted by Ken Foster at 9/29/2004 7:51:01 PM
Is it possible to return a class (not an instance of a class) from a function? For example (actually tried this code, it didn't work, but it's what I want sort of): Class EventMessage Public Function MessageHandler() as Type Return GetType(EventMessageHandler) End FUnction ...more >>

using managed dll
Posted by nina NO[at]SPAM gibbons-dot-com.no-spam.invalid at 9/29/2004 7:01:50 PM
Hi, I created a c++ managed dll. I'd like to use this dll in my VB .net project. I know I can use it in Visual C++ .net by #using "mydll.dll", but don't know how to use it in VB .net. Can anyone help? ...more >>

Reusing a streamreader
Posted by peter NO[at]SPAM mclinn.com at 9/29/2004 7:00:55 PM
'if you do this Dim sr As New StreamReader _(System.AppDomain.CurrentDomain.BaseDirectory& "CR.txt") ' and then loop through values while sr.peak > -1 ...... end while sr.close is there a way to reopen the streamreader on the same file?...more >>



Custom EventHandler and Windows Forms
Posted by John Bowman at 9/29/2004 5:06:21 PM
Hi All, I'm hoping someone can help me out. I have a Windows Form dialog (call it dialog1) that responds correctly to a custom event generated by another class in my app. Inside this custom event handler that exists inside the Windows Form object I need to load/display another Windows Form ...more >>

Theme / Scheme
Posted by rawCoder at 9/29/2004 5:01:17 PM
Hi All, Have you noticed that Outlook ( dont remember which version ) utilizes three to four colours to give the Blue theme look AliceBlue LightSteelBlue Midnight Blue You can use the above colours in appropriate places to give the look of outlook atleast in terms of colours. I was ...more >>

How to check if a Key is press down with datagrid control?
Posted by AstronusX at 9/29/2004 4:34:09 PM
How to check if a Key is press down with datagrid control? I try to use OnKeyDown Event but it doesnot work? Help? ...more >>

Ctype(Stinrg,Date) works with non-numerics
Posted by at 9/29/2004 4:17:11 PM
I am trying to validate a textfield to ensure it holds a time. I use a try/catch block to see if I can convert to a time & if it works then I blindly 'assume' it was OK. This single line Dim y As Date = CType("00:0z", Date) gives me a time of 1:00 am, whereas Dim z As Date = Date.Parse("...more >>

Provide login information to System.Web.Mail.SmtpMail?
Posted by Kevin Hodgson at 9/29/2004 4:04:27 PM
Is it possible to provide login information, or a port for the SmtpServer when using System.Web.Mail.SmtpMail? The SMTP Server we need to use, requires you to log in order to send mail through it. Thanks, ...more >>

Formatting with Decimal.ToString() ... CultureInfo and DigitGrouping...
Posted by G.Ashok at 9/29/2004 4:02:34 PM
Hi, I have created CultureInfo object and specified required digit grouping in it. The one of the overloaded ToString methods of Decimal type has parameters to format the value with required custom format and a IFormatProvider. I pass a custom format string for positive, negative and Zero (3 ...more >>

Email address from AD
Posted by Brian Henry at 9/29/2004 3:57:10 PM
I have a domain cluster with AD running, and I want to lookup a users email address (exchange 2000 server is integrated with the AD system) so i can email the user based on their user name. does anyone know how to look up the email address? i would just use the user name as the alias but not a...more >>

Customize TaskBar Menu
Posted by at 9/29/2004 3:29:09 PM
Hello, I'm trying to add a "Send to Notification Area" item to the context menu for my application's taskbar button. (For example, right-click a CHM file (i.e., SQL Server BOL) in the taskbar, and it has three extra menu items...Separater, Jump to URL, and Version.) The only thing I found ...more >>

Bytes and strings
Posted by John Dann at 9/29/2004 3:06:49 PM
Just a detail about correctness/elegance (I think!) but it would be useful to know for future reference: I need to read a pre-existing binary file that contains as one of its elements a 16-byte non-unicode string, which I need to assemble into a ..Net string for further processing. It seems li...more >>

.NET and SQL Server 7/NT
Posted by LaRhonda Johnson at 9/29/2004 2:53:20 PM
Has anyone has experience with using Visual Basic/ASP.NET to access a SQL Server 7/NT database server? If so, did you encounter any issues? Thanks. LaRhonda ...more >>

Newbie help with Datasets
Posted by steve at 9/29/2004 2:47:04 PM
Hello, I am new to this and i am experimenting with Datasets and ADO.NET. I am trying to go smooth so for now so I created all my Adapters and Datasets etc. visually. However when i simply delete one of them from the visual panel, under my form, and then i create another one with a different ...more >>

What is the max. size limt of XmlTextWriter?
Posted by Terrence Chan at 9/29/2004 1:54:03 PM
Does anyone know the size limit of the StringWriter and XmlTextWriter. Dim buffer As New System.IO.StringWriter Dim writer As New System.Xml.XmlTextWriter(buffer) Please point me to some technical documents. Thanks, Terrence *** Sent via Developersdex http://www.developersdex.com *** ...more >>

Dumb Question
Posted by Andy Williams at 9/29/2004 1:53:56 PM
Is it possible to populate a datagrid on a windows form using a datareader? I do it all the time in asp.net, but I'm new to windows forms and I can't get it to work. I get: An unhandled exception of type 'System.InvalidCastException' occurred in system.data.dll Additional information: Obj...more >>

Check Printing
Posted by Carl Tribble at 9/29/2004 1:36:41 PM
Is there a method in VB .NET to convert a numeric dollar amount to it's text equivalent for printing on a check? Thanks, -Carl ...more >>

string
Posted by Fei at 9/29/2004 1:34:19 PM
Hi, I have a simple problem. I have a string variable. Somehow it has Enter in the string. So When I show this string in a textbox, it will automatically add one Enter at the end. My question is how to trim off this Enter. If I use Trim() from String class, It only removes the Empt...more >>

ToolTip question
Posted by ltt19 at 9/29/2004 12:55:03 PM
HI everyone, So, I have many buttons, and all of them must show a tooltip with the same string, except one word, that I must read this owrd from a variable. Although, the "ToolTip on x" property do not let me to write a little paramter of concanatantion (at least I was not able to do this)....more >>

datagrid update
Posted by Eveready at 9/29/2004 12:49:02 PM
Hi, I would like to have datagrid update all rows by clicking one button. I need to know how to cycle through each row and get the value in the 3rd column. Any help is appreciated. thnx everyready...more >>

Storing links in string array using WebBrowser Control
Posted by Kruegy Man at 9/29/2004 12:37:02 PM
I have a WinForm application that has a WebBrowser Control. I can navigate to any website fine. I want to store the link addresses in an array to be called back later. For example, if I visit a news website's main page (www.newswebsite.com), they will have links to other stories. The lin...more >>

Random Numbers are NOT random !!!
Posted by mark4asp at 9/29/2004 12:11:07 PM
The result of RandList() is a list of numbers which are all the SAME. Changing the d() function to the one which is commented out has no effect (of course). How can I get the function [ d() ] to return a different random number each time? Function RandList() Dim str As String = "" Di...more >>

How to do Multi-Threading
Posted by Michael D Murphy at 9/29/2004 11:57:11 AM
Hi, I need to use Windows Meadia Player control in my application to run som mpeg movies. There is no user interface, I need to control everything programatically. I do not want to use the playlist facility of the Windows Media Player Control, I want to queue up the files to play myself. In o...more >>

Newbie question - Service and NotifyIcon
Posted by Jim at 9/29/2004 11:36:53 AM
I am a VB.Net newbie who has written a little test Windows Service which puts a NotifyIcon in the system tray. I am finding that it works fine if I start the Service manually whilst logged in on the server (icon appears). If I allow the service to start automatically at boot time, the service ...more >>

Is HRESULT a bug or an error?
Posted by KC at 9/29/2004 11:16:13 AM
Is this Exception from HRESULT: 0x800401A8 an error or a bug? I've been trying to build a chart in Excel through VB.net (which isn't documented) so I'm running completely blind. What examples I have found are from VB6 which doesn't convert well. When I do try a new piece of code like: oC...more >>

2D Array memory storage configuration?
Posted by mark at 9/29/2004 11:05:03 AM
How is a 2 dimensional array stored in memory? That is: for a(i,j) is the array stored as sequential blocks of i or sequential blocks of j? Or, does it depend of hardware? -- mark...more >>

Cannot Get VB.Net Standard to connect to a MSAccess Database.
Posted by Mark at 9/29/2004 10:54:47 AM
Hi, I am trying to create an ASP page in MS Visual Basic .NET Standard 2003. But every time I put an OleDbDataAdapter on a Component1 and go through the Data Adapter Configuration Wizard I receive the following error when I enter the SQL to select some records. The connection could not...more >>

How do I call a method of another from
Posted by Partha Protim Roy at 9/29/2004 10:49:26 AM
Hello, I have a Customer form say A to enter/update customer details. In the Form A I have a button which opens another form say B. In the Form B, I am providing user with a option to search Customer from the database depending on various search criteria. On matching the criteria, list ...more >>

Fax Print Document
Posted by Will Arrowsmith at 9/29/2004 10:40:48 AM
Hi All, I have had success installing the windows xp fax service and sending files using it (FAXCOMLib) from vb.net. After installing the service, a 'Fax' option has been added to my list of printers, which when selected opens a wizard asking for phone number etc before sending. My aim i...more >>

Add in for MS office
Posted by simon at 9/29/2004 10:29:38 AM
I would like to create addIn for outlook,word and excel. That is a new button on menu bar. When user open a new mail message or word document or excell document, the button shows on menu bar, and when user clicks this button, I read the projects of the current user from the database and when u...more >>

Propper way to find out if I'm in DesignMode?????
Posted by M O J O at 9/29/2004 9:59:54 AM
Hi, I can't figure out how to use the DesigMode property. I've searched Google and not found a soilid solution. Therefor I ask you - what is the propper way to find out if I'm in DesignMode??? Here's my test code - I'm trying to inheriting the textbox, so when I place it on my form, I wa...more >>

Dts pkg problem in vb.net - OK vb6
Posted by Ron at 9/29/2004 9:52:09 AM
Hello, I can run a dts package in a vb6 app multiple times. If I run the same package once in a vb.net project, it runs fine (did all the dotnet syntax conversions...). If I try to run the dts package multiple times in the vb.net project the package fails (I have all the references to ...more >>

Monitoring Server performance from .NET
Posted by Jonesgj at 9/29/2004 9:42:55 AM
Hi, I have a test box which I would like to monitor CPU usage and run queue during the day. I don't want to buy any 3rd party tool, if I can do it easily, as I only need to monitor the box's performance over a week. I thought I could just create a .Net app or service with a timer that get...more >>

when is threading better than a timer?
Posted by Bob at 9/29/2004 9:31:33 AM
Okay, I've done this for years but now I'm going to question it just because this idea has been at the back of my head since I started using DotNet... My WinForms app queries a database every 60 seconds. I set up a singleton class that's instantiated when the app starts, and that starts a timer...more >>

Debugger (No Such Interface Supported?)
Posted by Smoothy1976 at 9/29/2004 9:15:26 AM
Weird problem that just started...I have no idea what has happened, but every project when I try to run(debug) I get a "Microsoft Development Environment" box, and it tells me "Error while trying to run project: Unable to start debugging" and on the next line "No such interface supported". I...more >>

problem in working with childforms in vb.net
Posted by sympatico at 9/29/2004 8:22:19 AM
hello to all i got some problem with child forms in my vb.net application. in my application i need to maximize some child forms when they are loaded (set the windowstate to maximized at design time). if i do so then, the next form opened which is not be maximized and the windowstate is a...more >>

Get a list of all users in the domain?
Posted by Tom at 9/29/2004 8:05:05 AM
Is there a way for a VB.NET client to retrieve a list of all the users in an NT/2000 domain? I might want to do this so that I could present the user a list of other users to pick from? (for sending a note to, or for any other reason) Thanks. Tom ...more >>

VB.NET: Transferring Data From Form to Form
Posted by http://www.visual-basic-data-mining.net/forum at 9/29/2004 7:16:11 AM
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to form2....and there the data that i key in form1 will appear to form2 in textbox2 Thanks -- ...more >>

Points contained within a path
Posted by ljlevend at 9/29/2004 6:47:08 AM
In my app the user can draw an arbitrary path onto an image. Now I need to determine all of the pixels that are contained within that path. Note that the path can intersect itself and I can always assume that the path is closed. Are there any articles, algorithms, tools, etc. that can assis...more >>

How do I get the user name in my VB.NET program?
Posted by lanem at 9/29/2004 6:33:04 AM
I have written and Outlook Addin using VB.NET. How can I get the username of the person logged in to the PC that the Addin is running on? Thanks....more >>

Login Name and Change Password Form in VB.Net
Posted by kaifong78 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 9/29/2004 5:01:55 AM
Hi, I have a problem in VB.NET, I don't have idea how do I wrtie a code for Login Name and Change Password Dialog Box in VB.NET. Any example or book can refer? Please advise. Thanks. Cathy ...more >>

unhandled COMException, Catastrophic failure
Posted by mattiassich at 9/29/2004 2:15:03 AM
The following code causes unhandled exception on the line: New ManagementObjectSearcher(query) Dim mos As System.Management.ManagementObjectSearcher Dim moc As System.Management.ManagementObjectCollection Dim mo As System.Management.ManagementObject Dim query As String = "SELECT * FROM Win32_...more >>

Delete registry key on uninstall
Posted by gillcleeren NO[at]SPAM gmail.com at 9/29/2004 2:14:34 AM
Hi, I need to make a setup program for a project. The project itself creates some registry values. The setup project however should delete these values. Therefore I wrote a little executable which I run as Custom Action on the uninstall node. The code for this "uninstaller-exe" is the foll...more >>

Accessing Access
Posted by Stephen at 9/29/2004 12:52:31 AM
I'm looking for the simplest example of VB.net to read/write a minimal MS Access.database. Something like put date in textbox1, click button1, get rainfall total in textbox2. For updates, fill in textboxes 1&2 and click button2 to store new data in Access. No creating classes or objects. Jus...more >>

OleDbDataReader
Posted by Nexus at 9/29/2004 12:35:03 AM
I'm currently using .NET version 2003. I want to be able to retrieve records. How do I do so using the OleDbDataReader? Can I have some codes as an example?...more >>

How do I Force Focus To Window
Posted by Daniel Friend at 9/29/2004 12:21:40 AM
Hi have a window (FormBorderStyle=NONE) and the form is a MDI child. For some reason the form is not getting focus. I have tried the following code and nothing seems to work. sForm.Show() sForm.Focus() sForm.Activate() sForm.BringToFront() and for some reason I have to ...more >>

Installing VB.net 2003 reboot problem
Posted by Rich at 9/29/2004 12:08:00 AM
Hi, I'm trying to install VB.net 2003 on Windows XP Home SP1. When I run the setup program I get the usual menu of 4 items. Everytime I click to install the programs on the Prerequisites CD it says it needs to shut down and restart the computer. This is an endless loop as after it reboots it ...more >>


DevelopmentNow Blog