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 > april 2004 > threads for thursday april 1

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

Set Up Root Folder
Posted by WStoreyII at 4/1/2004 10:17:32 PM
when i am referencing file in my projects how can i do it so that it goes something like this root - which is the root folder where the project was installed so we get root/file/item.itemtype how is this done becuase i dont know where customers will be installing the file ...more >>


Project location not fully trusted by .Net runtime
Posted by Neil Robbins at 4/1/2004 9:20:41 PM
I am getting the following message when attempting to open a solution from another computer on my network: "The project location is not fully trusted by the .NET runtime. This is usually because it is either a network share or mapped to a network share not on the local machine. If the output p...more >>

Combobox.FindStringExact--doesn't find text that I KNOW is there.
Posted by rdi at 4/1/2004 9:12:29 PM
I've got a combo-box of the drop-down style (not drop-down-list). The = first item is "NHPI-Forms". If I type "NHPI-Forms" into the combo-box = that string is supposedly not listed in the combo-box. While if I type = "Personal" (which is the THIRD item in the list, it IS found. I'm using = "...more >>

Synclock clarification
Posted by Johan Karlsson at 4/1/2004 8:50:26 PM
Hi all! I just need a true or false answer for this statement. Consider having a piece of code that boils down to this Dim a = new ArrayList SyncLock a SyncLock a a.Add("Something") End SyncLock End SyncLock The question: Since it is the same thread that locks the resource twi...more >>

Dropdown Form menu. How to find the tree that the sselected item is from
Posted by rbrown NO[at]SPAM edium.com at 4/1/2004 8:37:30 PM
Hi There.. I have a Windows App with a menu. The menu is dynamically created at runtime. This is working perfectly, except..... I have serveral menus under the one parent. Under each of these menus, there could be menu items with the same text. Of course, when I click the menu item that I w...more >>

Calling VB.Net Class File from Delphi
Posted by Three at 4/1/2004 7:17:02 PM
Hi there, I have to integrate a .Net application into a Delphi application somehow. The simplest method is to get the Delphi app to call a .Net console app, however it would be better for various reasons if I could make the .Net side a DLL and this is what I am wondering about. Is there any...more >>

Bound Data Class
Posted by Steve Kallal at 4/1/2004 5:51:03 PM
I seem to remember that VB 6 had a way to bind a data class redirectly to an ADO recordset. Simply put, a the class could be populated with the recordset data without a lot of coding simply by using databinding Can this be done in VB .NET. I would like to write Data Classes and populate it from a ...more >>

Treeview control
Posted by Rich at 4/1/2004 5:30:48 PM
Hi, I have a treeview in a Windows form. I want to be able to set a node as default when the form opens programmatically. Can anyone tell me how this can be done in vb.net (I think you use SelectedNode but I can't get this to work)?? Best Regards Rich ...more >>



I would like to know how to manage a listbox from javascript
Posted by asdfasdf at 4/1/2004 4:46:26 PM

Using a variable in an expression
Posted by Derek Martin at 4/1/2004 4:31:28 PM
Dim what As String = InputBox("What property do you want to get?", "Requested Property") RichTextBox1.AppendText(PersonList.getpersonbyusername(usernametextbox.Text) ..{what.ToString}.ToString) How can I do this???? (or is it not possible) Thanks, Derek ...more >>

How to hande events to control arrays?
Posted by SuperRider at 4/1/2004 4:21:24 PM
I have ~ 50 comboboxes (in an array) on a form, and I want to run the same subroutine every time any combobox changes. Now, I can get this done by manually editing the "OnChanged" for every one, but surely there is an easier (shorter) way to do it. TIA! ...more >>

ArrayList subtract?
Posted by Craig Buchanan at 4/1/2004 3:48:19 PM
I have two arraylists, one with a list of groups and one with a list of groups assigned to a user. I would like to subtract the second AL from the first AL to get an AL of groups to which the user *isn't* assigned. Is there an easy way to do this? Thanks, Craig ...more >>

How do I find the size of a file???
Posted by acool at 4/1/2004 2:27:35 PM
I looked all over at the File class and saw nothing for getting the size of a file, how do i do that? ...more >>

addhandler and creating buttons at run time
Posted by Paul Mars at 4/1/2004 1:44:25 PM
I am creating a user selectable quantity of buttons at run time and need to respond to their click events. My code: Dim btnButton as Button (global) Then in a sub: For intNumBtnsDown = 0 To intNumBtns - 1 pointLocate.Y += 70 pointLocate.X = 0 For intNumBtnsAcross = 0 To intNumB...more >>

Best vb.net book
Posted by Paris at 4/1/2004 1:40:39 PM
Can someone recomend a beginner's vb.net book? (one that includes info on ADO) I have learned a little vb6 and some dao in a VBA enviroment, but I would like to start vb.net from the begining and get a firm grounding. Thanks ...more >>

about using process
Posted by Norton at 4/1/2004 1:05:17 PM
I know Process can used to call an external application like myProcess.StartInfo.FileName = myDocumentsPath + "\MyFile.doc" myProcess.StartInfo.Verb = "Print" myProcess.StartInfo.CreateNoWindow = True myProcess.Start() However, what if i want to c...more >>

executing an outside file like .doc or even .exe
Posted by JhnGC NO[at]SPAM hotmail.com at 4/1/2004 1:03:15 PM
Hi, What's the command to execute another file with its appropriate player? Like if I have a filename in a string, and it ends with .doc, Word would load . Or just execute an exe if thats the extension. Thank you! ...more >>

Is anyone using a datagrid for data entry?
Posted by Randy Fraser at 4/1/2004 12:28:53 PM
Is anyone using a datagrid for data entry? All I am trying to do is create a grid where the user enters an Item Number and the rest of the grid displays the information such as Description. Is anyone else doing this? If so, I would love it if you could point me in the right direction. ...more >>

HttpWebRequest & Credentials
Posted by Greg at 4/1/2004 12:20:49 PM
I've been reading a lot of other posts and trying a bunch of things but just cannot get this to work. I'm hoping someone can help. Here's the situation. I have a test folder which only Administrator has access to. Inside it has a web page. In IIS (Windows 2003), I have "Integrated Windows ...more >>

static class members in VB
Posted by John Smith at 4/1/2004 11:39:37 AM
i need to pass some values bitween the classes of my my VB 2002 windows form app can u plz help TIA ...more >>

Driving me nuts
Posted by Sueffel at 4/1/2004 11:20:14 AM
Okay, I have my controls, and in each one's key_down even, I have: Me.SelectNextControl(Me.ActiveControl,True,True,False,True) All controls I need do have the TabStops and do have Index's set. I have stuff that each control has to do(Validation) before it moves on, so the Form.KeyPreview is...more >>

Expiring the Page To discourage Browser BACK button
Posted by Nithi Gurusamy at 4/1/2004 10:55:40 AM
Hello All: On the click of the back button, I just want the user to see "Warning: Page Expired...". I just couldn't do it in .NET. I am not sure what I am missing. I tried everything said in the Page.Response.Cache class. Even tried the traditional way of doing things in the previous ASP vers...more >>

Sorry to Re-Post - Databindings problem
Posted by MadCrazyNewbie at 4/1/2004 10:43:55 AM
Hey Group, Sorry but i`ve been searching everywhere for this even went out and bought a ADO book and still carn`t find what im looking for:( I have the following code for my postion changed: Private Sub objdsAccess_PositionChanged() If Me.BindingContext(objdsAccess, "Users").Position ...more >>

Code check please...
Posted by Derek Martin at 4/1/2004 10:35:59 AM
Thanks in advance: Dim thisperson(7) As Array Dim validcheck As Boolean = False thisperson = getperson(usernametextbox.Text, pinnumbertextbox.Text) .... private function getperson(byval username as string, byval pinnumber as string) .... dim returnarray(7) .... return returnarray ...more >>

Overrides Sub onMouseMove
Posted by Iouri at 4/1/2004 10:31:36 AM
I have added the Overrides proc onMouseMove like Protected Overrides Sub onMouseMove(ByVal e As System.Windows.Forms.MouseEventArgs) ........... End Sub This proc supposed to fire when I move the mouse. When I am moving mouse over the form it fires. But if mouse is over any control (text...more >>

A Stupid Question i know
Posted by MadCrazyNewbie at 4/1/2004 10:29:40 AM
Hey Group, Probably a Stupid question i know but, what is the difference between a datagrid and Dataview? Ta MCN ...more >>

Embedded icon file - how to reference?
Posted by Wayne Hoover at 4/1/2004 10:27:48 AM
I have an embedded icon resource in my project - I need to reference this icon for a grid cell. I've tried using the following but it does not work. Any help appreciated: Dim im As System.Drawing.Image im = CType(getobject("CHECKMRK.ICO"),System.Drawing.Image) <-- Fails here. g_mainform.fg.S...more >>

Clipboard in console app?
Posted by Scott Kilbourn at 4/1/2004 9:32:33 AM
Hi, I have a little console app that just does a little bit of processing. The last thing I want it to do before it exists is stick a string onto the clipboard. I will then access the clipboard and get the info I need. For instance, run the console app, and then past the info into a notepad...more >>

Returning Integer from String
Posted by DaveS at 4/1/2004 9:31:12 AM
Hi All! Hopefully this is an easy question... I am trying to convert input which is read in from a text file. All data is read in as String. What I'm trying to do is safely convert string data to integer data, if possible, or else return nothing. For instance, intDatum = ConvertToInt(...more >>

Waiting of process completion
Posted by Raymond Lewallen at 4/1/2004 9:12:33 AM
How to wait for a process to stop completion is my goal. Obviously, the looping while waiting for the HasExited property is not a solution.. but thats the best I can come up off the top of my head. Natuarally it will not work. I expect it to use up all resources looping, which will not allow t...more >>

XXXX_Load Event vs OnXXXX
Posted by Charles Law at 4/1/2004 8:22:15 AM
I may have asked this before, but what is the purpose of both these functions? Is there a time when one should be called over the other? Does one supersede the other, or do they both have their time and place? TIA Charles ...more >>

Deploying MSDE with VB .net
Posted by Sebastian Santacroce at 4/1/2004 6:33:37 AM
Is it posible to package MSDE with VB .net so that its part of the installation? If so, is there documentation somewhere? What about packaging the .net framework with the application as well? Thanks ss...more >>

sending file
Posted by klesjezot NO[at]SPAM hotmail-dot-com.no-spam.invalid at 4/1/2004 6:31:10 AM
Hi, I have a problem with sending a file. I have a client application that connects to a server and sends the string "data". Then it sends a file. If the server receives "data", the method getCsv() is started (this receives the file) The file however isn't received completely (most of the time...more >>

Remove a line from a text file
Posted by Li Pang at 4/1/2004 6:26:08 AM
Hi, I want to remove the last line in a text file. Anybody has an easy way to do so Thanks...more >>

Need regexp to extract uri from url
Posted by semick NO[at]SPAM msn.com at 4/1/2004 5:38:01 AM
Given url's like the following: http://www.xxx.yyy/foldername/index.cfm?id=165 http://www.xxx.yyy/index.cfm?id=165&pl=1 http://www.xxx.yyy/index.cfm http://www.xxx.yyy/foldername/subfoldername/index.cfm?id=165 I need to get the [/foldername][/subfoldername]/pagename I've tried a bu...more >>

Dates
Posted by Dennis D. at 4/1/2004 4:37:50 AM
Hello: Been working on this way too long. DateDiff returns a Long. : Totally counter-intuitive. Subtracting: 0400 - 0345 returns -15 : Wrong, should be +15? Subtracting 02:00 - 00:15 with an interval of minutes returns 105 which is 2 hours minus 15 minutes, not the expected 01:45 or at least ...more >>

removing repeats from an array
Posted by WStoreyII at 4/1/2004 3:41:06 AM
i have an array of string values i have tried all day to figure a sub that will remove them but everything i have tried only leaves me with one item in the array. any ideas. Thanks in advance WStoreyII ...more >>

add handle at runtime to comboboxes
Posted by ikkespeed NO[at]SPAM hotmail.com at 4/1/2004 3:18:26 AM
Hi, I have a table configuration that has indefinite records. I have created two arrays that contain as much labels and coboboxes as records in the table configuration. I've given each combobox the name of the configuration name. My question is: How can I add something like "onDisplayMe...more >>

Send form values using AspNetEmail. Can you help me out? Thank You
Posted by Miguel Dias Moura at 4/1/2004 2:47:29 AM
Hello, Can you help me out in making this work? What I want is as simple as sending form values to an email. The code I am using is the following: <Script runat="server"> Private Sub Page_Load() Dim msg As EmailMessage = New EmailMessage("localhost") ...more >>

A Strange Issue with DataGrid
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 4/1/2004 12:19:12 AM
Hello, I am trying to bind a DataTable to a Grid which will allow users to Edit data and then submit the changes back to the Database. I want to display values in the Grid satisfying a particular criteria like follows: Dim tbl as new DataTable For Each row As DataRo...more >>


DevelopmentNow Blog