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 > february 2004 > threads for thursday february 19

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

need help: list box showing item selected when none are
Posted by Brian Henry at 2/19/2004 10:05:08 PM
I have a list box bound to a data set, of course the datasource,datamember, and valuemember are set, i tell it selecteditem = -1 to make nothing selected, select mode is set to only one item at a time. When the list fills the first item in the listbox has a background rectangle drawn but no focus...more >>


How to determine if an object has a certain method
Posted by Don at 2/19/2004 10:03:31 PM
Is it possible to determine if an object has a certain method or property available? For example, say I have a function with one parameter of type Object. At the end of the function I want to properly clean up the object passed to me, but I want to know, first, if the object that was passed t...more >>

Form contents in a panel?
Posted by Brian Henry at 2/19/2004 9:55:10 PM
I've seen someone on here talking about this in the past about doing this... but how can you load teh contents of a form into a panel? ...more >>

retrieving an image index on a label
Posted by Tom Foster at 2/19/2004 9:26:05 PM
This should be painfully simple but I have spent two days on it and I can't figure it out. I am NEW to vb.net, so please forgive my ignorance I have a label that I assign an image to through an imagelist index Label1.Image() = ImageList1.Images(3 This works fine and as expected. In the Mous...more >>

VB and VB.NET in the same computer
Posted by Toble Rone at 2/19/2004 9:21:20 PM
Sorry for the very newbie question. I have quite a bunch of projects in a developer workstation with VB6. I also have another comp with vs.net installed... but now i need to install vs.net in the same comp of VB6... It's possible?. There is any problem doing it? Tnx in advance Tobl3 ...more >>

Typed Dataset and Find row method
Posted by John at 2/19/2004 8:54:04 PM
Anyone knows how to use Strong Typed DataSet to find row. After added Order Details table, here's how I did SQLConn.Open() Order_Details.Fill(NorthWind, "Order Details") SQLConn.Close() 'the next line return nothing Dim dt As NorthWind.Order_DetailsDataTable = New NorthWind.Order_...more >>

Help me in choosing protocol
Posted by irfan_ahmed NO[at]SPAM hotpop.com at 2/19/2004 8:38:53 PM
HI, I wanted to develop an applicatioin which has to show current currency rates to to our clients (i.e. 10 currencies and 3 or 4 changes in our data in one second) and client may buy or sell his lots. Please let me know if TCP/IP is right protocol to use or should I use something else. and p...more >>

Why is this formatted result one day off?
Posted by Trint Smith at 2/19/2004 8:33:03 PM
Ok, the 'SecondDate' comes from sql server, but I wanted to make it visible here...but no matter what day I get in SecondDate, it comes up one day off every time...the hours minutes and seconds are right: Dim SecondDate As Date = "2/28/04 10:50:00 PM" Dim FirstDate As Date Fir...more >>



Is this a good way to do this or?
Posted by Kenneth at 2/19/2004 8:30:42 PM
Dim iNr(selectedItems.Count - 1) As System.Int32 Dim i As System.Int16 = -1 For Each Item In selectedItems i += CShort(1) iNr(i) = CInt(Item.Text) Next or is there a better one I dont like the i counter at all //Kenneth ...more >>

TreeView with a DataSet
Posted by Tom McLaughlin at 2/19/2004 8:00:21 PM
I would like to load a TreeView control with a DataSet. The DataSet contains 7 tables with numerous subItems. How would I go about doing this? ...more >>

About the DPI
Posted by yxq at 2/19/2004 7:23:39 PM
Hi, If the OS DPI set to 120(normal 96), the Form font will become bigger and overstep the Form bound, how to avoid the problem? Thanks ...more >>

Custom Control Property Question
Posted by Ed Bick at 2/19/2004 7:04:25 PM
I built a custom control. It has one custom property that I created exposed. What I want to do though is to have the property show as a dropdown with only a limited number of choices for settings. An example would be the dropdown style of a combo box. The designer can only select one of thr...more >>

Need some Java help
Posted by Mark at 2/19/2004 6:37:51 PM
Hello, I need a some help. I am not a java programmer. I mostly do VB and C#. Here is my problem I have sever side text boxes and when a user tabs off or presses enter I need to have the textbox do a format to change the about from like 121.23 to $121.23 and have it move to the next fie...more >>

Help fixing "type not recognized" error in VB.net
Posted by sprain195 NO[at]SPAM yahoo.com at 2/19/2004 5:17:27 PM
I am using an external object called WebZinc to help parse web pages in VB.net. I am trying to use a particular method following the example in the help reference but am unable to get VB.net to recognize it. The code example is: Dim containsWordA As Boolean = New TextProcessor("my string conta...more >>

API calls in VB 6.0 for USB Device (HID)
Posted by Nirupam Gupta at 2/19/2004 5:11:10 PM
Hi, This Is Nirupam Gupta I want to Give some commands to my USB device Through VB 6.0. So Please can You Tell me that which API calls are used for accessing USB device and Which windows DLL file is used alsong with that. Like In HID class devices which API calls are there ...more >>

Newbie question, please....
Posted by Stuff at 2/19/2004 5:07:43 PM
Hi, (Running XP Pro, IIS 5.1, version 1 of VS Studio and Framework 1.0) With the simplest of datagrid generated web control, doing a CTRL+F5 results in no errors, and when IE comes up, the control is not visible. When looking in IE's VIEW->SOURCE, the original source code is there...the asp...more >>

Can't show form in class Library module
Posted by Laurence Nuttall at 2/19/2004 4:52:14 PM
I have a .net solution that is a class library. I have a form in it called frmAbout I have a public sub, or I assume what will be a method to show the form. but when I type the frmabout name and then a . there is no show method listed. Thanks in Advance, Laurence Nuttall Programmer An...more >>

FTP File on a Pocket PC
Posted by Mark at 2/19/2004 4:41:07 PM
Hello Does anyone know the best way in vb.net to move a text file from a Pocket PC device onto an FTP server (over an Internet connection) I don't see any FTP tools in the .net compact framework (or the normal framework for that matter) Any ideas would be much appreciated Thank you Mark...more >>

Setup project not dependent on Framework version
Posted by Howard Kaikow at 2/19/2004 4:30:21 PM
When I build a setup project, the dependency in the setup project is tied to the version in which it was built. Is there a way to build a setup project that can be used in both versions of the Framework? There is provision to build the app's .exe so that the .exe can be used in either version...more >>

How to get a Window's Restore Dimensions when Minimised
Posted by Charles Law at 2/19/2004 3:48:41 PM
When an MDI child window is minimised its height attribute returns 24 (on my system), but when it is restored it goes back to its former height (and width). How can I get the restore height and width while the window is minimised? I want to save the state of my application windows, including t...more >>

Old Style Resource "embedding" in VB.NET... please help.
Posted by mphilmon NO[at]SPAM yahoo.com at 2/19/2004 3:33:39 PM
I'm working on a plug-in for an application called DesktopSideBar for Windows. It emulates to some degree the Longhorn sidebar. The SDK for DesktopSideBar supports .NET plug-in development through COM Interop and a provided reference DLL. In the SDK are two included samples... One, called Recycl...more >>

Can System.DateTime.Now get seconds also?
Posted by Trint Smith at 2/19/2004 3:25:54 PM
I know that System.DateTime.Now doesn't have the seconds and looks like this: ("2/19/04 05:39 PM") Can I get the seconds also, so that it looks like this?: ("2/19/04 05:39:19 PM") With seconds added---^^ Thanks, Trint .Net programmer trintsmith@hotmail.com *** Sent via Deve...more >>

Run delete msgbox.
Posted by Phoebe. at 2/19/2004 3:00:59 PM
Hi, Good Day! I need to display a msgbox asking user whether to delete a record or not using javascript. It works fine. Later on user request to add in more info in that msgbox, displaying records info like employee no, employee name, i.e. i need this msgbox to be display during runtime & ...more >>

1-based index array issue
Posted by John Dolan at 2/19/2004 2:56:58 PM
Hi all, I need some help here. I have an ActiveX object that requires me to pass in an array that is 1-based (as opposed to the normal 0-based index). Unfortunately the author of the ActiveX defines a 1-based array (to be passed to it) ByRef. So as far as I can tell I need to pass it a 1-base...more >>

Loading and Showing a Form before Adding Items to a Listview
Posted by Holmes at 2/19/2004 2:41:07 PM
Hello Ran into a bit of a problem here and have now exhausted my resources to getting this working What I am trying to do is load and show a simple vb form with a listbox in it Dim frm_nc_code As New frm_nc_sen frm_nc_code.Show( Well what I want to have happen is it loads the ...more >>

VB.Net Text Editor stalls when I try and declare a variable
Posted by Desmond Cassidy at 2/19/2004 2:30:09 PM
Hi, I don't know whether this is the correct place to ask this question..anyway here goes... I have a large solution with about 300 .vb files split into 9 projects VB.net Framework 1.1 WinXP Pro Whilst editing, as soon as I try and enter a statement like Private strName as string Then...more >>

Creating a HTML looking GUI
Posted by Andreas Kyriacou at 2/19/2004 2:13:27 PM
How do companies make the GUI intefaces look like web pages? Some examples are InstallShield Developer 8 and the Microsoft Base Security Analyser. Thanks -- Andreas Kyriacou Senior Technical Consultant GoldMine® Certified Professional GoldSync® Certified Professional Technology Plat...more >>

.NET Control in Title Bar
Posted by Mr Utkal Ranjan at 2/19/2004 2:10:43 PM
Hi I'm writing a VB.NET Windows application. I want to place a Link Label control on the right of the titlebar(left to the minimize box). How can I do that ??? Thanx ...more >>

Data bound list box automaticly selection
Posted by Brian Henry at 2/19/2004 1:51:30 PM
Is there a way to keep a list box from automaticly selecting the first value when its data bound? im doing something like this Dim dsCategories As New DataSet Dim daSQLCategories As New SqlClient.SqlDataAdapter("SP_GetAccountsCategories", database.dbConnectionData) daSQLCategories.Select...more >>

threading question
Posted by Sougato Das at 2/19/2004 1:07:44 PM
I just finished chapter 19 on threading in Wrox's 'Professional VB .NET". The chapter describes two basic things: 1.. Creating/maintaining your own threads 2.. Creating 'worker' objects and letting Windows decide when to allocate threads to them from Windows' thread pool I think the overall...more >>

how to load a dll assembly at runtime
Posted by Willie wjb at 2/19/2004 12:27:02 PM
Hi, i know how to start a dot net exe with the executeassembly, but after an assembly is started i would like to call a function in this assembly to do something. What is the best way to accomplish this? thanks, willie. ...more >>

Number of hours in date range
Posted by Totto at 2/19/2004 12:23:54 PM
Hi, Is ther a simple way to calculate number of hours in a date range. (dtFrom as date , dtTo as date) Had a look at timespan, but can's see that it's possible to add dates. Tnx Totto ...more >>

HttpWebRequest.GetResponse Error
Posted by Claudio Di Flumeri at 2/19/2004 12:23:22 PM
In my application I use a sort od LiveUpdate to download updates from internet. To do that, a .xml file hosted on an internet area contains all the relevant information (like version, dimension, name of the file to download etc.). To estabilish if the file .xml exists, the following function is ...more >>

Rediming an array causes an exception on End Sub
Posted by Ashish at 2/19/2004 12:04:25 PM
Hi, please take a look at the following code. (I've ommitted the Windows generated code) -------------------------------- Imports System.Drawing.Drawing2D Public Class Form1 Inherits System.Windows.Forms.Form Dim points() As Point = {} Dim pen As New Pen(Color.FromArgb(255, 0, 0, ...more >>

Next line.
Posted by Phoebe. at 2/19/2004 11:48:28 AM
Hi, Good Day! I have such a statement written in vb myDeleteButton.Attributes.Add("onclick", "return confirm('Are you sure to delete client: " + mClientNo + "');") I need to display the mClientNo below the statement "Are you sure....", what keyword shd i put. Can someone help? Thanks in...more >>

Printing specific worksheet of Excel file from Visual Basic program
Posted by Davy at 2/19/2004 11:31:09 AM
Hi Can somebody help me to print a specific worksheet of an Excel file thru Visual Basic Thank Davy...more >>

Grid Control
Posted by Tim Schwab at 2/19/2004 10:49:22 AM
In a VB.NET 2003 Smart Device Application, neither the "CE Grid Control 3.0" nor the "FlexGrid" controls are available. (Enabling them in "Add/Remove Toolbox Items" makes them appear on the toolbox, but they are grayed out.) It there a replacement I'm overlooking? (The DataGrid won't work for m...more >>

How to export a user control?
Posted by Paul Fredlein at 2/19/2004 10:42:32 AM
Hi, I have a user control in one project that I would like to use in another. I've tried; 'copy' but can't 'paste'; 'save as .vb' but then when I open it in the other project the code's there but the 'design' for it isn't. Any help appreciated, thanks. Paul ...more >>

ActiveX controls are not loading
Posted by rajupusapati NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/19/2004 10:31:38 AM
Hi, I am working on a source code written earlier in VB.net.While loading some forms(already created with some controls on it), I am getting the following error: ************************************** An error occurred while loading the document. Fix the error, and then try loading the documen...more >>

VB.Net hardware monitoring
Posted by McK_N at 2/19/2004 10:26:05 AM
Hi I want to find information about how to do hardware monitor in vb.net Thanks for your help...more >>

RPC Error?
Posted by scorpion53061 at 2/19/2004 10:11:15 AM
Hi big problem here. I am automating MS Word. I created a global instance at program startup to avoid having the end user have to wait a extremely long time to get thier report. The first time a report is generated everyting runs fine. The second time an attempt is made to write a report I g...more >>

Changing F1 Help in VB.Net
Posted by Archie Graham at 2/19/2004 10:01:09 AM
In 2003 VB.Net, is it possible to change displaying Help by pressing F2 instead of F1? ...more >>

listbox and linking to database
Posted by amber at 2/19/2004 9:56:05 AM
Hello, I have a form with a listbox that displays a list of records from a SQL table. When one of these is selected, another listbox is populated with data from a SQL table that is linked to the 1st table. I'm not sure what I'm doing wrong, but when you first click on a value in listbox1, it shows...more >>

"Fire and forget" asynchronous methods
Posted by michaelloll NO[at]SPAM hotmail.com at 2/19/2004 9:33:52 AM
I want a class to fire a method in another class, and once it fires it, to not care about what happens (i.e., if there are errors, return values, etc). I want this to happen asynchronously. I read this post: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=812beb6be4fd2339&rnu...more >>

running vbscript from VB.NET
Posted by DraguVaso at 2/19/2004 9:11:20 AM
Hi, I want to run some vbscripts from a VB.NET application. Anybody knows how to do this? Thanks, Pieter ...more >>

Properties in VB = Parameters in .NET??
Posted by Pablo Ricco at 2/19/2004 9:04:23 AM
Hi! I have this problem... In Visual Basic I am work with ADODB and the next code work perfectly... Dim cmd as New ADODB.Command cmd.Properties(15).Value = 2 .... But in .NET.. OleDbCommand cmd = new OleDbCommand(); cmd.Parameters.add("15",2); .... this code throws an error: "An u...more >>

Can't build release version
Posted by SamSpade at 2/19/2004 8:54:02 AM
I can run in the IDE but if I try to build a Release version I get errors. I think the root error is: Satellite assemblies could not be built because the main project output is missing. I've repeatedly looked through project properties and can not find anything that looks suspicious. ...more >>

Search all fields in all tables of a SQL Database
Posted by KRoy at 2/19/2004 8:41:07 AM
How can I seach all of the fields of every table in a databae for a particular value. When it is found, I want to be able to display the table name and the field name, then continue to search....more >>

Array problem?
Posted by Lisa at 2/19/2004 8:36:11 AM
Can anybody tell me what's the problem with this code? Class CRate public mRate as double public mValue as double end class Class CBox public bNo as long public bRate as CRate() End Class ====================== Private Sub Test() Dim J as long Dim BoxRead as CBox = New CBox...more >>

Change the sign of an integer
Posted by Totto at 2/19/2004 8:27:14 AM
Hi, How do I change a positiv integer to a negative value ? tnx Totto ...more >>

QueryPageSettings and the Printing dialog box
Posted by SamSpade at 2/19/2004 7:56:14 AM
In QueryPageSettings I tell the user to do things like reinsert a sheet to print on the other side. I also let him optionally cancel printing that page. Or the rest of the pages. Probably add a button that cancels previous pages not yet sent to the printer (when I figure how to do it) ...more >>

adodb.connection problem
Posted by Robert Batt at 2/19/2004 5:16:07 AM
Hello, I am having a problem with ADODB connection class. This was all working fine until I restarted the pc with last known good configuration, which seems to have screwed things up In the code below the conn.open command fails with a cannot find stored procedure error. and system.runtime...more >>

Function to convert a number to text.
Posted by hughsie1000 NO[at]SPAM hotmail.com at 2/19/2004 4:39:08 AM
Hi I am looking for code to convert a given currency amount (i.e. 321654.85) to the equivalent words (i.e. three hundred and twenty one thousand, six hundred and fifty four pounsd and eighty five pence). I have trawled the web and have found a few but haven't found anything which fits my need...more >>

How to Run App only one instance
Posted by Li Pang at 2/19/2004 2:41:06 AM
Hi I want to run my app only one instance, i.e. only one session is allowed to display Thank ...more >>

Listing Images in a List Box
Posted by James Kunicki at 2/19/2004 12:08:03 AM
Hello, I would like to know if anyone as found a way to list a image next to a list box to indicate what type of drive (local or network) and a folder I would like to present in a user interface like the OpenFileDialog that has a pulldown(at the top of the dialog) to allow a user to naviga...more >>


DevelopmentNow Blog