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 > november 2003 > threads for tuesday november 25

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

Returning ID from Listbox bound to DataTable
Posted by Young J. Putt at 11/25/2003 11:56:21 PM
I've got a list box bound to a Datatable, like this: lstProjects.DataSource = m_oProjectSet.DataTable lstProjects.DisplayMember = "ProjectDesc" lstProjects.ValueMember = "ProjectID" I want to pass the ProjectID value (integer) of the selected item in lstProjects to another function. I as...more >>

VB Run-time Error
Posted by Majestic at 11/25/2003 11:46:14 PM
Hello, When i try to run my VB application, sometimes i get Run time error '-2147024890(80070006)' : Method '~' of object '~' failed. I don't know why i am getting that error. If somebody could help me in this regard it would be great. Thanking you all in ...more >>

Report
Posted by Rado at 11/25/2003 11:43:26 PM
Hello. I`ve got one question. Can anybody write me where can I find some information about REPORTS?-datareports, how can I make it, save.... Thank. ...more >>

Get URL property from file
Posted by Zack Trainor at 11/25/2003 10:27:14 PM
Does anyone know of a way to get the URL for an Internet shortcut given that you have the name of the underlying file. For example, I have a shortcut pointing to http://www.yahoo.com stored on my C: drive as: c:\yahoo.url. Within my program, I already know the filename, but I can't seem to...more >>

xml documentation for VB like C#
Posted by billypilgrim at 11/25/2003 10:15:07 PM
Does the ability to document code with xml exist for VB like it does for C#. I haven't found anything that mentions it. ...more >>

Updating a PropertyGrid
Posted by Lance at 11/25/2003 10:14:09 PM
Is there any way to tell a Windows.Forms.PropertyGrid to update the values for the properties that it is displaying? I am having trouble getting the PropertyGrid to update when I make changes to the SelectedObject's properties outside of the PropertyGrid. If I use the PropertyGrid to cha...more >>

MustInherit and Design Mode
Posted by Lance at 11/25/2003 9:57:47 PM
I get an exception when attempting to open a form in design mode if the form inherits from a form that is declared as MustInherit. For example, if I have: Public MustInherit Class TestFormBase Inherits Windows.Forms.Form '...Normal Windows Form Designer generated code here Public Mu...more >>

Help me please .... Sending Files to a printer
Posted by Valeria Galvano at 11/25/2003 9:44:22 PM
Hi, I'm a newbie in vb.net. I have to send to a printer a file that need to be printed. My problem is that I don't know which kind of document is.. I tried to read the file with a BinaryReader but once I have read the file ( a doc file or an xls or a txt or a psd or another format) how can I say...more >>



Please help.....
Posted by EMW at 11/25/2003 9:41:28 PM
Hi, Could you please take a look and tell me what this means? Cor has tried to help me, but we haven't found it yet. Everytime I run this code, I get an exception error. Here is my code: Dim connStr As String = "Provider=Microsoft.JET.OLEDB.4.0;data source=" & Me.txtFile.Text Dim SQLs...more >>

Shorter way to refer to another forms controls/events?
Posted by Dean Slindee at 11/25/2003 9:38:07 PM
Is there a shorter way of referring to another forms controls/events than creating a class hold forms, adding a form item each time a new form is loaded, and then looping thru the class of forms to find the reference? Like "friend", rather than like below: Public Class frmMain Private Su...more >>

TcpClient remote address
Posted by Stephen Remde at 11/25/2003 9:37:42 PM
what the kosher way of vreating a tcp client/server app in .net? can anyone recommend a good in depth tutorial? currently im using a TcpListener but i cant get a remotre address from the TcpClient's it returns Stephen ...more >>

Forgive my stupidity, but I'm baffled by JIT debugging
Posted by Bob Graham at 11/25/2003 7:53:25 PM
When my applications hit certain types of errors, it shows me a box that says if I enable JIT debugging in the machine.config file, the code will break into a debugger instead of showing me the dialog in question. My machine.config file *does* have jit debugging = true. Just how stupid am I?...more >>

Back to basics !!
Posted by Nice Chap at 11/25/2003 7:29:33 PM
If I'm using the VB.net compiler from *commandline*: 1. How do I specify references to other dlls 2. Start up method Thank you.... ...more >>

How to capture output of a console based program
Posted by Anoj Kumar at 11/25/2003 6:22:14 PM
Hi Guys! How to capture output of a console based program and display it on Windows Forms applcation. Thx Anoj Kumar ...more >>

Programatically retrieving name of a sub/Function?
Posted by Rick Derthick at 11/25/2003 6:15:58 PM
Hello, I'm adding a logging capability to error handler routines for troubleshooting (using vb.net) and had just recently come across a way to programatically determine the name of the subroutine or function. For example... Private Sub SomeRoutine() Dim strRoutineName strRouti...more >>

String Error
Posted by Ivan Weiss at 11/25/2003 6:05:15 PM
I am assigning a string variable with my sql statement getting the item from a listview filled from a database. I am getting an error saying that & is not defined for types 'String' and Systems.Windows.Forms.ListViewItems. I am using an index of 0 because the value I want is in the first col...more >>

instantiate a new object with a constructor
Posted by portroe at 11/25/2003 6:04:40 PM
in VB .net how will an event procedure instantiate a new object with a constructor call and then show the main form again? i am lost, any help appreciated, thanks portroe ...more >>

how to make keyboard & mouse temporary not response
Posted by cc at 11/25/2003 5:54:23 PM
hi, how do I make keyboard & mouse temporary not response to desktop ...more >>

vb.net and MSDE 2000
Posted by JFB at 11/25/2003 5:21:05 PM
Hi Folks, Does anyone implement an application using vb.net and MSDE 2000? or anyone can help me, please? Can I use in my pc with sql2000 and vb.net to create the all application and them create an MSI file and install the application in the client pc but including MSDE 2000 into the setup? Th...more >>

'Select' expression cannot be of type 'system.OperatingSystem [HELP]
Posted by JH at 11/25/2003 4:39:37 PM
Dim SysInfo2 As System.Environment Dim OS As String With SysInfo2 Select Case .OSVersion Case 4 : OS = "Win NT" Case 5 : OS = "Win 2000" Case 6 : OS = "Win XP" End Select End With ...more >>

Looking for dockable window example
Posted by Richard L Rosenheim at 11/25/2003 4:28:44 PM
I'm looking for an example on how to implement floating/dockable windows using either VB.Net (preferred) or C#. I've searched gotdotnet, MSDN and Google but wasn't able to find an examples. I was wondering if anyone knows of any? TIA, Richard Rosenheim ...more >>

XML.NET unexpected EOF error on Processing Instructions
Posted by Mark at 11/25/2003 4:28:19 PM
I get the following error (see stacktrace) while loading an XMLDocument. The document is huge and it has PI's created from Arbortext's editor. Works fine when I use MSXML2 to load the Document. Fails only on .NET XMLDocument.Load(). Document loads on IE, XML Spy etc. without a problem. ...more >>

Is It Me Or ?
Posted by One Handed Man at 11/25/2003 4:27:49 PM
Has this newsgroup become very quiet lately? Regards - OHM ...more >>

FileOpen
Posted by zurg at 11/25/2003 4:23:57 PM
Hi! I have a specific problem - I need to take some informations from a .txt file from another computer... I use OpenFile and the program runs perfectly... But when I run it second time I get an error... I'm unable to give it characterist because I have to run the program on a computer without ...more >>

Parsing XML
Posted by Kent Ogletree at 11/25/2003 4:15:37 PM
I seem to be having a problem parsing an XML string and have not found a good reference to assist me. I have XML strings stored in a database such as: <qMultipleChoice> <qText>My distance learning experience was positive.</qText> <qChoice>StronglyDisagree</qChoice> <qChoice>Somew...more >>

Draw datagrid with no data
Posted by thorung NO[at]SPAM mailcity.com at 11/25/2003 3:50:09 PM
Hello All - Ive got a datagrid that displays results of a user search. How can I show the datagrid even when no results are found? I.e., and empty datagrid? Right now, it disappears in this case. Thanks. Dave...more >>

Object refernce not set (newbie question)
Posted by JH at 11/25/2003 3:40:15 PM
"Object reference not set to an instance of an object" is the error I got whenever I run a code that has the following. It crashes when Itry to assign Bob with the sysInfo1.OSPlatform Dim SysInfo1 As SysInfoLib.SysInfo Dim Bob As Short ...... Bob = SysInfo1.OSVersion ..... ...more >>

Inherited Form
Posted by RRiness at 11/25/2003 3:27:35 PM
I'm trying to use a template form I created. When I add an inherited form to my project, I get the error: Object reference not set to an instance of an object. when the inherited form is displayed in the designer. Last week I used the same template and didn't have any trouble creating in...more >>

VB.Net code for detecting OS (newbie here)
Posted by JH at 11/25/2003 3:16:26 PM
I tried to run this code which I found on the web. But it always crashes. It shows SysInfo1 is Null ...object refernce ..... I tried to add refernce ( Microsoft scripting runtime , Interop.SysInfoLib...), but every time it reaches this section the program crashes. Can somebody please ...help m...more >>

Child Form Icons
Posted by Steven Smith at 11/25/2003 2:49:25 PM
How is it possible for me to completely remove the icons in my child forms ? Thanks in advance Regards Steve...more >>

Help is needed.
Posted by Alan at 11/25/2003 2:30:28 PM
I will need to load data from a datatable to a datagrid several times. How do I clear the contents of the datagrid before loading the contents into the datagrid ? ...more >>

DataGrid
Posted by Uri Dimant at 11/25/2003 2:05:29 PM
hello, friend I want to Alignment my header (row=0) of the column This is my code that does Alignment on whole column but I would like only the header text Dim grdColStyle1 As New DataGridTextBoxColumn With grdColStyle1 ..HeaderText = "pub_code" ..MappingName = "pub_id" ..Width = 1...more >>

populate a combobox
Posted by portroe at 11/25/2003 1:53:19 PM
in VB. net how do you populate a combobox with items? thanks portroe ...more >>

DoubleClick events in ListBox and ListViews
Posted by active at 11/25/2003 1:33:08 PM
DoubleClick seems to work OK with a ListBox. However, with a ListView I never get the event fired. I looked at both the LIstBox and ListView events and neither lists the DoubleClick??? But IntellSense gives it as an option for both?? Any enlighten comments? Thanks, Cal ...more >>

Need help C# TO VB conversion
Posted by Crirus at 11/25/2003 1:05:01 PM
Can someone help me convert C# to VB the code following my signature? The main problem I face it is event handlers mapping to delegates Thanks -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you ----------------------...more >>

using vb.net to insert into ms access
Posted by Brian at 11/25/2003 1:03:28 PM
hello, I am trying to insert into an access database using vb.net. I tried to use DAO, but I found out that it is no longer avaliable. Next I went to oledb and I am now getting an error saying that one or more of the required fields are missing. The only thing is, there is only one ...more >>

BackgroundImage in Listview
Posted by Sander R at 11/25/2003 12:52:51 PM
Hi, All. I have problems with a listview control. Hopefully, I am at the right usergroup, otherwise, I apologize. Now, I'm finishing off a project where the main interface is a tree view an two listviews. I would really like to complete my design with a background image on the main lis...more >>

Array advice
Posted by Stuart at 11/25/2003 12:43:50 PM
I am converting a VB6 App. In the VB6 app, I have a Type structure of about 30 elements (mixture of booleans, integers, strings and some doubles), in an array of say 20 to 100+ records. The size of the array doesn't change that frequently, so the speed of inserting and removing records i...more >>

Development Standards and Procedures
Posted by Yoav Shtainman at 11/25/2003 12:36:41 PM
I am looking for .NET (VB, ASP and C#) development standards in term of code style, Naming conversion, code documentation, etc. If you know of this kind of document or you can share the one you are using it will be helpful. Thanks Yoav Shtainman ...more >>

Convert VB Double to Pascal Real
Posted by David Scemama at 11/25/2003 12:00:18 PM
Hi, I'm writing a program using VB.NET that needs to communicate with a DOS Pascal program than cannot be modified. The communication channel is through some file databases, and I have a huge problem writing VB Double values to the file so as the Pascal program can read them as Pascal Real val...more >>

grid-column formatting ?
Posted by jobi at 11/25/2003 11:56:03 AM
Hi, in VB6 I formatted gridcolumns like this : If UCase(oRSOverview(Ix).Name) = "KBINDEX" Then Me.GrdOverview.Columns(Ix).Alignment = 1 Me.GrdOverview.Columns(Ix).NumberFormat = "#,###,####,##0" End If 'MaxTsStats If UCase(oRSOvervie...more >>

Extracting data from datagrids.
Posted by ElenaR at 11/25/2003 11:21:24 AM
I am trying to get data from certain columns of a selected row in a Datagrid. In VB6, I simply wrote: strVariable = DataGrid1.Columns(Index).Value what is the equivalent in .NET? Thanks, Elena ...more >>

Problem with VB Project files
Posted by Keith D at 11/25/2003 11:08:02 AM
I am having a problem with the VB6 "Recent" tab. When you are switching between projects and creating executables, you will notice that when you make a project (after the first project is made) that the "make path" is relative to the path you last created an executable to instead of the p...more >>

Setting Selected Index causes invalid cast exception!!!
Posted by Bilal Abbasi at 11/25/2003 10:40:05 AM
Hello all, I am re-writing an application in dot net, that I originally wrote in VB6. The snag I am getting into is at one part of the application setting the selected index of a list box works, however, it fails for another list box. Something is telling VB that I am casting. The error messa...more >>

how to get multiselect selectedvalue from listbox in vb.net window application?
Posted by Tony Dong at 11/25/2003 10:36:02 AM
Hi there I have one multiselect listbox, and get date from database using DataSet HolidaysListBox.ValueMember = "HolidayDate" HolidaysListBox.DisplayMember = "HolidayName" HolidaysListBox.DataSource = HolidayDS.Tables("dtHolidays").DefaultView if I use one selec...more >>

Windows User Control as a container
Posted by Sam at 11/25/2003 10:26:26 AM
Please help! I want to create a user control that can act as a container for other controls (like a panel or a groupbox). The control will consist of a panel that acts as the container for external controls plus some other stuff. I hoped that all I needed to do would be to implement System...more >>

Advantages of .NET DLL over VB6 DLL
Posted by Precious at 11/25/2003 9:45:38 AM
Hi, We are planning to migrate our vb6 components (published in com+) to vb.net dll. Front end (vb6) will remain the same. What are the advantages and disadvantages, do's and don'ts, best pratices to follow? Thanks and regards J Justin ...more >>

lifetime of the objects Shared
Posted by Eduardo Azevedo at 11/25/2003 9:26:46 AM
If I have a class with method Shared, when this objects are destroies what's happend with the objects Shared? How long is the lifetime of a function shared in the Class ? there are no instantiate tks Eduardo R Azevedo ...more >>

How apply XSD, XSLT to XML file from VB.NET?
Posted by bill salkin at 11/25/2003 9:05:58 AM
I have an XML file that I want to validate against an XSD and then transforma using an XSLT. I have no problem doing this with external commercial tools but how it this done from VB.NET code? TIA, Bill P.S. I looked at code samples on the Internet but they make references to "URL"s....more >>

app.config
Posted by Tim Gallivan at 11/25/2003 8:19:35 AM
Hi all, I think read somewhere (but I can't find it ... note to self: must get new filing system ...) that there is a workaround so that an app.config can have multiple keys with the same name or something of the like. What I require is the ability to point at a development or live database ...more >>

ADO.NET, need to get index of datarow
Posted by BB at 11/25/2003 8:10:48 AM
Hello all, I am using the currency manager in VB to navigate a dataset. I know how to use .position to loop through the rows, but what I want to do is *get* the position of the row I just added/updated, so that I can reposition the currency manager there sometime later. Seems like aft...more >>

loop over Enum values
Posted by dinosaur8000 NO[at]SPAM yahoo.com at 11/25/2003 7:30:10 AM
This seems like a long shot, but I wondered if there's a way to loop over the values in an Enum. For example, say I have an Enum as follows: Public Enum statusValues Ready Running Finished Error End Enum '..... I'd like to be able to loop over and print out these values' name...more >>

Performance slows down gradually
Posted by cow3 NO[at]SPAM hotmail.com at 11/25/2003 7:29:42 AM
Is there anyone who can help me with this: I have written a fairly complicated vb application of hydrological model that does a lot of number crunching. The model creates a set of object variables before entering the main loop and then main calculations are done within the main loop using the ...more >>

Search and delete directories
Posted by Philip Wagenaar at 11/25/2003 6:46:59 AM
How do I search for a directory on a windows xp machine and delete the directory including all subfolders and files in them?...more >>

Getting a form from a Main Menu
Posted by Elena at 11/25/2003 6:46:57 AM
Hi everyone, I need the (i'm sure, very simple) code to get a form from a main menu. In VB6, all I had to write was FormName.Show. Thanks, Elena ...more >>

Run my program under other user
Posted by Philip Wagenaar at 11/25/2003 6:45:21 AM
I have a program that has to run under the administrator account. But the use that will start the program has it's own (limited) account. How can I run a program under administrator? I'd like solution that is a secure as possible. So not using run as or something on command prompt....more >>

Removing network printers from Windows XP
Posted by Philip Wagenaar at 11/25/2003 6:43:53 AM
I need to write a program in VB.net that removes all network printers installed on several windows xp machines. How can I accomplish this?...more >>

How to reload MDI Child
Posted by Tony Diggs at 11/25/2003 6:27:26 AM
Hi VB.Net Gurus. Initial MDI Child form loads fine. exp. Dim objChild2 As New Form2() objChild2.MdiParent = Me objChild2.Show() MDI Child unloads just fine. Exp. If e.Button Is tbbExit Then '' Me.Close() Me.Hide() ...more >>

Net Advantage 2003
Posted by Steven Smith at 11/25/2003 6:11:03 AM
today I invested in Infragistics Net Advantage 2003, what an utterly amazing piece of kit, want to make your applications look identical to Windows XP, Office XP or 2003, then this is the piece of software for you ! Simple to use creating breathtaking effects 10/10 Happy days are here ag...more >>

what is "managed code" mean
Posted by blarfoc NO[at]SPAM yahoo.com at 11/25/2003 5:39:23 AM
hello, this is to be a loaded question!! i do not really know what "managed code" means. can somebody explain it to me? AP...more >>

Consume Webservice question
Posted by kai at 11/25/2003 3:57:23 AM
Hi, All I have following Webservice code rom a book, it works well, it returns a dataset contains customerOrderHis base on CustomerID. But I cannot display the returning dataset in datagrid. <WebMethod(Description:="Get an instance of the custom class " & _ "CustomerAndOrderHistoryInfo,...more >>

Problems with KeyPress
Posted by Mehul Malhotra at 11/25/2003 3:55:44 AM
Hi all! I was just messing around with something that I wrote in VB 6.0 and ran into a problem. In case any you of you have read my post of boolean, its back to that same calculator. I wanted to design it in such a way that if a user presses enter then it takes it as the person has chosen ...more >>

Problems with boolean
Posted by Mehul Malhotra at 11/25/2003 3:37:09 AM
Hi all! I've just started playing around with Visual Basic 6.0 and tried to make a calculator just for fun. Everything works except for the decimal button which has some serious issues!! Everytime I click the button it will display a decimal point on the screen which is obviously not what ...more >>

New To VB.NET
Posted by Newbie at 11/25/2003 2:33:18 AM
Hi I am new to VB.net and the .net framework! I have been coding for the last 7 years in purely COBOL and am now moving to .net na dvb.net. Just wondering if anyone can give me some advice on where the best place to start learning vb is! I am quite confident with the general overview...more >>

Create multi element property?
Posted by Grahammer at 11/25/2003 2:03:18 AM
Is it possible to create a multi element property in VB.Net? Something similar to the "Location" or "Size" property. Each of these has two elements. I'm trying to create an IMAGE property that has four different elements. One for each state of a button. I would set the image for a normal bu...more >>

Communication Between Forms
Posted by Saber S at 11/25/2003 1:47:52 AM
I've two forms and want do something like it: If Form1.MenuItemPersian.Checked THEN Form2.LabelCaption.Text="Something..." ' ... End If ...more >>

TimeStamp Problem using ADO Control
Posted by Bob at 11/25/2003 1:09:35 AM
Hi all, I am trying to pass a timestamp value to an ADO field and I am getting the following error : -2147217887 Multiple step operation generated errors. Check each status value. I aasign the value as : ..Fields("FPTMSTMP") = s_timestamp1 If i assign s_timestamp1 = 2003-11-25 2:2...more >>

Component Update -VB.net (Repost)
Posted by bga at 11/25/2003 12:20:30 AM
I have VisualBasic.net standard, (visual studio.net family member-version 2002). I have xp pc running office xp developer and I cannot install vb.net on this pc. When doing the component update I insert the component cd as required and always get the message that the cd is the wrong one. I've ...more >>

REPOST: Selecting region on a form
Posted by Dino M. Buljubasic at 11/25/2003 12:02:10 AM
I have a form and a panel on the form that holds 24 user controls each one representing an hour (0 - 23). The panel is completelly covered with the user controls. I need to be able to select user controls and highlight them or select them (like rubber band) by mouse-down-drag-mouse-up events....more >>


DevelopmentNow Blog