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 > june 2004 > threads for thursday june 10

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

Redirect StandardOutput problem
Posted by darren at 6/10/2004 11:06:01 PM
I have a perl script that I am calling from vb.net as a process. I need to get the standard output and display it in a text box. The problem I am having is that extra blank lines are being added to the standard output, 2 of them per line. I have no idea why - and if I run the same script in the...more >>

VB.net program cannot be compiled in command line
Posted by dola NO[at]SPAM webinhk.com at 6/10/2004 9:13:54 PM
I have the following simple "Hello, world" vb.net program named "prog01.vb" : Module prog01 sub Main() MsgBox("Hello, world!") end sub end Module and compile it using vbc.exe as follows: vbc /reference:Microsoft.VisualBasic.dll prog01.vb but receive error messages as follows:...more >>

flicker
Posted by steve at 6/10/2004 9:05:28 PM
ok, ok...obj.suspendlayout/resumelayout. but it isn't helping and i need advice. i have a custom progress bar made from a label control. i manually paint it when the progress changes. i'm drawing a filled, rounded rectangle twice w/n the label...once to give a light background color, the second t...more >>

Jumping to another routine
Posted by John E. Crouse at 6/10/2004 7:49:49 PM
When I exit my app a confirmation message box pops up. If the user chooses "No", what is the code I need to jump to another sub routine (So the save file message box pops up). I already have all of the message box routine. Thank you, John ...more >>

Incomplete WebResponse?
Posted by chriscoddington NO[at]SPAM hotmail.com at 6/10/2004 6:06:54 PM
I make a request, stuff it into a stringbuffer, then append it to a textbox. It works on many sites (e.g. yahoo.com), but not on many others (e.g. amazon.com). Any insight that could be provided would be greatly appreciated. Relevant code: Sub GetPage() Try Dim loRequ...more >>

raise or throw
Posted by Frank at 6/10/2004 5:36:34 PM
Hi, what should I use to raise an error: RAISE or THROW And I am asking this with regard to the future VB.NET developments. Is Raise the old way and Throw the new? Throw does not have parms to put errortext in it, so it seems less usable then raise. I am looking forward to your opinions.Refs...more >>

line of code not compiled
Posted by Joe Simmonds at 6/10/2004 4:10:19 PM
Hi All, =20 I have just had a problem with some VB.net, I wonder if anybody can = shed a little light and ease my confused brain. The problem is resolved = now but I can't work out what happened and, more importantly, I can't = guarantee it won't happen again. Have I misunderstood the si...more >>

Threading and Forms
Posted by Tyson Ackland at 6/10/2004 3:43:47 PM
I have written a very simple threading proggie in an attempt to teach myself threading. I have seen it referred to in articles that Forms are not thread safe. My form has two labels which are written to by different threads in my example. It works fine so I'm wondering if anyone can tell me wh...more >>



Get user's name
Posted by Vincent Finn at 6/10/2004 3:41:28 PM
Hi, I am writting a web service and I need to get the User's name I can get the username from User.Identity.Name but I want the display name So instead of "mydomain\jsmith" I want to get "John Smith" Does anyone know how to do this? Vin...more >>

FindRows in DataView - Not searching some columns
Posted by david_wender NO[at]SPAM yahoo.com at 6/10/2004 3:31:12 PM
I want to create a dataview with a sort on multiple columns. However, when I use FindRows, I only want to search some of the columns, not all. Is this possible? I have not been able to make it happen. Dim objKeys(2) as Object objKeys(0) = "CL" objKeys(2) = 4000 Dim posView As DataView = ...more >>

Deployment question
Posted by Chris Dunaway at 6/10/2004 3:21:25 PM
I have a Windows Forms App and have created an install project for it. It installs correctly. The app has a plug-in type architecture and I want to install a plugin. In the plug-in's project, I added another setup project and it build an .msi file with all the plug-ins files. I can in...more >>

Trying to Use HttpUtility Methods
Posted by Wayne Wengert at 6/10/2004 3:10:58 PM
I am trying to use the HttpUtility methods shown below in a Windows Form. I cannot get Intellisense to accept the code - I've used Imports System.Web and I also tried adding the specific name space qualifiers with the same results? I am wondering if there is some restriction on using this in a W...more >>

ildasm
Posted by JLW at 6/10/2004 3:05:42 PM
Now, all these companies are making products that can crash ildasm, thus preventing assemblies from being disassembled. Is there specific code I can add to my assembly to do this? Also, I read about a /owner option for ilasm that appears to only have been in the BETA version of the framework. ...more >>

Unique file name for multi-threading apps.
Posted by Manuel at 6/10/2004 2:48:46 PM
I've playing around with multi-threading applications lately. The main problem I have is that when I create a file/table/whatever I need a unique name. The only way I could come up with, is asking for a temporary file (System.IO.Path.GetTempFileName) and that file name would be the unique ch...more >>

How to Remove an Event Handler without knowing the name of the handler
Posted by Charles Law at 6/10/2004 2:11:27 PM
Is there a way to dynamically remove an event handler from an event without knowing the name of the handler? For example, how can ClassB remove the handler without knowing the name, or how many handlers there are? <code> Public Class ClassA Private m_ClassB As New ClassB Publi...more >>

MdiChild form inheritance
Posted by Marina Louki at 6/10/2004 2:07:43 PM
Hello! I have a parent and some mdi child forms. Everytime I open a form using = the form.mdiparent=3Dme , the form takes the characteristics of the = parent. I want these forms to share the same menu, but not to have the = same font etc. How can I do this? Thanks!...more >>

Convert e.Graphics to an image or bitmap
Posted by Charles A. Lackman at 6/10/2004 1:13:28 PM
Hello, I have created a complete PrintDocument and need to create an image from it. How is this done? e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.HighQuality e.Graphics.DrawString(Line1.Text, FontLine1, TheBrush, Thelocation1, 390 + yPos, AStringFormat) e.Graphics.DrawString(Line2.T...more >>

Registary Values
Posted by MadCrazyNewbie at 6/10/2004 12:57:15 PM
Hey Again Group, Im using the folowing code to pull some Values from my Registary: RegKeyRead = Registry.CurrentUser.OpenSubKey("Software\Excellence", True) txt1.Text = RegKeyRead.GetValue("C:\1.txt", "----Not Found----").ToString txt2.Text = RegKeyRead.GetValue("C:\2.txt", "----Not Found---...more >>

Message box question
Posted by MadCrazyNewbie at 6/10/2004 12:41:19 PM
Hey Group, Hows you all doing? I wonder if somebody could be kind enought to point me in the direction of a link on how to use Message Box's basically I want to have a message box pop up with 3 boxs in, A, B, and Cancel. Cheers MCN(Si) ...more >>

UserControl: Databinding
Posted by Michael Maes at 6/10/2004 12:15:23 PM
Hi, I have a UserControl containing some controls of which one is a = ComboBox. All the InternalControls are Private and some are allowed to be accessed = through Public Methods. One of the things I would like to do (of course) is set the = DataBindings. Something clearly is wrong with the ...more >>

Save image to different format = 10x bigger file?
Posted by Ben Becker at 6/10/2004 12:14:29 PM
Why when I open an image in VB.NET, display it in an image box, then call the image.save property to save it to a file as a different format (e.g. tiff image with save to jpeg) does it become 10 bigger on disk? I have noticed that saving to GIF doesn't have this problem. I have tried adjusting...more >>

Listview AllowColumnReorder
Posted by J M at 6/10/2004 12:00:55 PM
When you set the Listview's property AllowColumnReorder to True, users can reorder the columns (quite logical I guess)... Bus how on earth can I obtain from code what order these columns are in??? I want to save these settings (to the registry or to a file) so that the program can recall which or...more >>

About WebForm ListBox question ?!
Posted by Paul Tsai at 6/10/2004 11:52:06 AM
Dear All, I used ListBox(SelectionMode=Multiple) to develop my web application, but I encountered some problems.. 1. I can use ClearSelection method to unselect all the selected items but how shoud I do if I want to select all the items of the ListBox. 2. Is there a better way to get all th...more >>

error in Visual Basic.net
Posted by bbdobuddy at 6/10/2004 11:46:01 AM
I keep getting this com error Unknown error (0x80005000) when I get to the for statement in this block of code. Anyone know how to fix it. Thanks Dim loDirectory As DirectoryEntry Dim loChild As DirectoryEntry loDirectory = New DirectoryEntry("D:\Unread Tracks" For Each loChild In loDirector...more >>

A simple MDB question...
Posted by Anon at 6/10/2004 11:23:02 AM
Hello All! I am trying to merge two tables from two different MDB's into one. I know I can just append the records from the second table into the first or vice versa, which will suffice in my situation, however, I'm not sure what the the correct way to do it. here i smy thinking on it, generat...more >>

Compare a Color?
Posted by Lars Netzel at 6/10/2004 11:15:34 AM
How to I compare a Color, for example the CaptionBackColor of a DataGrid to see if it is a specific Color? The "Is" or "=" does'nt work regards /Lars Netzel ...more >>

Updating typed dataset with the designer
Posted by Dave Taylor at 6/10/2004 11:15:34 AM
I've been using the dataset designer in Visual Studio to create typed datasets for my application by dragging over tables from the Server Explorer and dropping them into the designer. The problem is, when I modify these tables in SQL Server (typically adding fields and what not), there doesnt s...more >>

png files and imagelists
Posted by eaglei at 6/10/2004 10:57:11 AM
I am having trouble with png files loaded into an imagelist, they are incorrectly showing a blue shadow. Has anyone else got png files working correctly with imagelists? ...more >>

Using an xml file in place of a .ini
Posted by Woody Splawn at 6/10/2004 10:42:24 AM
In the tool I used to use I would write certain things to a .ini file in a users private directory from time to time. For example, when the application was started, a certain section of that .ini file is checked so that the application will start in a way that is unique to the users machine. Th...more >>

crystal report access database path problem
Posted by cad2 NO[at]SPAM saai-svc.com at 6/10/2004 10:42:06 AM
I am using access database to create a crystal report in VB.NET Everything works fine when I run on my machine. But when I am deploying it other windows machines. It is asking for database server name and logon information. The problem which I understood from this is that the path is hardcoded i...more >>

How to identify an error?
Posted by DraguVaso at 6/10/2004 10:14:35 AM
Hi, I want my application do different actions depending on the exception it gets. For exemple: I have an SQL-table with a unique index. In case I try to Insert a record that's alreaddy in it I get this exception: "Cannot insert duplicate key row in object 'tblTelephones' with unique index '...more >>

Interop.xxx.dll vs AxInterop.xxx.dll
Posted by Chris Dunaway at 6/10/2004 9:51:43 AM
I recently referenced a COM (ActiveX?) dll in my project. .Net seemed to create two wrappers for it: Interop.xxx.dll and AxInterop.xxx.dll. Why did it create two and what is the difference between them? Do I need both of them? Thanks, -- Chris To send me an E-mail, remove the "[", ...more >>

Calling VB.NET DLL from Java script
Posted by David Schwartz at 6/10/2004 9:24:17 AM
Does anyone know how I can call a function in a VB.NET DLL from Java script code? Thanks. ...more >>

Closing other win app from current app
Posted by Big D at 6/10/2004 8:32:09 AM
Hi all, Is there a way to kill another application from within the current application. I need to be able to stop an application we use in house, and can't modify that application, so what I'd like to do is write a little app that closes the first one when an event happens (most likely just a...more >>

Deployment Wizards/Wrappers
Posted by Ben Coats at 6/10/2004 8:01:49 AM
Hello, My question is regarding writing installation "wrappers" for .Net projects. I am considering making demos for a software package and handing them out at a conference. Therefore, I won't have any idea whether the end user has the .Net framework, MDAC, or MSDE installed. I want to write an...more >>

ListBox Selection
Posted by chris at 6/10/2004 8:01:45 AM
I have a list box that is populated with some file names from a directory. I cant seem to find how to tell what is selected. I wrote a message box to show me what was selected but it doesnt work....more >>

Running a program from the command line
Posted by hplloyd at 6/10/2004 7:16:01 AM
Hi I want my VB.NET application to run a command from the command line and then wait for the command to finish before continuing. I am currently using System.Diagnostics.Process.Start(strApp) where strApp is the the command line text. However this method starts a new process and therefor...more >>

Running a command line process
Posted by hplloyd at 6/10/2004 7:14:01 AM
Hi I want my VB.NET application to run a command from the command line and then wait for the command to finish before continuing. I am currently using System.Diagnostics.Process.Start(strApp) where strApp is the the command line text. However this method starts a new process and therefor...more >>

Explorer-style Combobox/Treeview Control
Posted by Ben Coats at 6/10/2004 7:04:01 AM
Hey, I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that you can navigate through the file system as well.) I've found some on the web, but all of them just ha...more >>

USB programming with VB
Posted by blakbelt12 NO[at]SPAM aol.com at 6/10/2004 6:54:28 AM
Hey all I am looking to write an application to interface with my Dell DJ MP3 player (copy files, work with playlists, receive data). I have only some brief experience with VB, but have good programming skills, so all the information you can give me will help. I specifically need to know ho...more >>

Tab Control for a Web Page?
Posted by cemich NO[at]SPAM chesapeakebay.net at 6/10/2004 6:50:48 AM
I'm trying to implement a tab control for a web application in VB.NET, but I can't seem to find one. I read the help on tab controls, but they only seem to apply to Windows forms. Where can I find a tab control for a web app?...more >>

2 instances of the program running
Posted by Chris Thunell at 6/10/2004 6:44:05 AM
I have created a VB.net windows forms application. If I have the program running and then I mistakenly click on my desktop icon again, I get a second instance of the program running. Is there anyway to check / prevent a second instance to startup and just take me to the already running applica...more >>

File Property
Posted by Eric Mckenzie at 6/10/2004 6:37:01 AM
Hi, I'm want to know if I can retreive file property in VB.Net without dsofile.dll . I want to access the Title, the author and the comment of the summary of a word file. Does anyone have an idea. Thanks for your help. -- Eric...more >>

Simple ListBox Question
Posted by Matt at 6/10/2004 5:27:01 AM
I would like to set up a for-loop like the one below relating to a list box. Could anyone please help me with the proper syntax? Is it possible to cycle through a list box and do things related to each item in the listbox? FOR EACH 'item' in LISTBOX Do stuff Next Thanks in advance!!! ...more >>

Add Checkbox to ListView
Posted by all2know2001 NO[at]SPAM yahoo.com at 6/10/2004 5:24:01 AM
How can I assign a checkbox to a listview ? I'm reading data from a foxpro table and one of the fields contains a 1 or 0. I would like for all 1's to show a checked checkbox in the listview. How do I get the checkbox in the listview? Thanks....more >>

Bug? Scope of private variables in classes
Posted by jkirk NO[at]SPAM pmsi-consulting.com at 6/10/2004 5:07:14 AM
One odd thing I've come across - if you declare a private variable in a class, it is exposed to other instances of that same class. To replicate this behaviour, create a class like this: Public Class Class1 Private mintID As Integer = 0 Public Sub New(ByVal pintID As Integer) ...more >>

URL's appended with tab id's
Posted by naren sarma via .NET 247 at 6/10/2004 4:17:11 AM
(Type your message here) -------------------------------- From: naren sarma The code i contains pages displaying a tab id appending to the URL. like, http://..../default.aspx?tabid=1 or http://..../default.aspx?tabid=2 and so on. How to trace the a particular error? -----------------------...more >>

vb.net and the old API
Posted by john andrew at 6/10/2004 3:21:01 AM
in vb6 you could use api calls in vb code to do some 'under the hood stuff' and it was fun eg open notepad from vb program whats happened with API calls now in VB.net....is it all changed or cant be done now? thanks...more >>

inputbox traps mouse
Posted by pproost NO[at]SPAM hotmail.com at 6/10/2004 2:31:48 AM
Hi group, I've got some strange behavior in my programm, I've got a flexgrid on a form and when I enter something in the flexgrid 2 inputboxes appear to enter the dimension of a window (an actual window, not a computer window). But the strange thing is that after the user presses ok in the se...more >>

Updataing ComboBox DataSource
Posted by Bob at 6/10/2004 2:27:02 AM
I want to remove the item from the combobox, but can't because I can't remove the ArrayList as being the datasource of the combobox so I can remove the item in the ArrayList and then assign it back as being the datasource of the combobox....more >>

AxMediaPlayer and URLs
Posted by FastForward at 6/10/2004 2:14:27 AM
Anyone know how to get AxMediaPlayer to play a URL? I thought it would be straight-forward, but this isn't working. Any help greatly appreciated. AxMediaPlayer1.AutoStart = False AxMediaPlayer1.FileName = "http://radio.yourstation.com" AxMediaPlayer1.Play() Thanks FF ...more >>

Strongly Typed Collections and the Collection Object
Posted by Ian Gore at 6/10/2004 1:43:01 AM
Hi, I'm relatively new to VB.NET so I'd be grateful if someone could point out what I don't understand here... 1) Creating a strongly typed collection by inheriting CollectionBase. This is covered in most of the books I've read. Basically you inherit CollectionBase and then add methods (sa...more >>

Updating ComboBox DataSOurce
Posted by Bob at 6/10/2004 1:40:01 AM
I have an ArryList that I'm using as a datasource for a combobox. As an item is selected in the combobox and processed I'd like to remove it from the combobox. When I try I get an error stating that the arraylist is being used as a datasource and can't be updated. I can't remove it as the datasou...more >>

Uxtheme skinning
Posted by Martín Heras at 6/10/2004 1:07:23 AM
Hello everybody... I am trying to apply some parts of the WinXP skins in panel controls. I am using the Uxtheme wrapper which you can download from www.codeproject.com and it is good. If I want to do what I explained, I have to pass a string to a function which makes the drawing. The string ref...more >>

Tools for Creating Help Files for a .Net Application
Posted by Charles Law at 6/10/2004 12:38:21 AM
There appear to be a myriad of tools for creating help files for .NET applications. What do people use, and what is the preferred help file format? In the past I have used HDK, which integrates with Word. It worked quite well, and produced a nice style of help file, but the process could so...more >>

Database does not take time value
Posted by J M at 6/10/2004 12:20:25 AM
Hi, I have a huge problem in an app I'm writing. I use an OleDbDataset (and OleDbDataTable, and so on, created in the Component Designer) to add rows to a table. Three of the columns have Date/Time values. Column 1 is only a date (time: 0:00), no problem there. Columns 2&3 are only time (I s...more >>


DevelopmentNow Blog