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 wednesday february 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

How to use QBColor in VB.NET?
Posted by kamlesh2000 NO[at]SPAM yahoo.com at 2/25/2004 11:03:12 PM
Hi, In VB6, on every click on Command1, to change the Form background color dynamically, I use: Private Sub Command1_Click() Me.BackColor = QBColor(Rnd * 14) End Sub How can I achieve the same in .NET? When I am using QBColor() function in .NET, it is giving the the following ...more >>

Shift-F2 Functionality in VB.Net
Posted by Randyb at 2/25/2004 9:54:43 PM
What key combination in .Net gives you the Shift-F2 in VB6 to goto item... TIA, rpb ...more >>

Exposing System.IO.FileInfo in a PropertyGrid
Posted by Lance at 2/25/2004 9:26:06 PM
I want to expose properties of a class to a user via a PropertyGrid class. Some of the properties are of type System.IO.FileInfo. Ideally, an OpenFileDialog window would appear when the user attempted to edit the value of the System.IO.FileInfo properties. Is there an existing UITypeEditor that w...more >>

Help with Directory Properties
Posted by Dave at 2/25/2004 8:12:08 PM
Is there a way to to retrieve Directory Property information? I am trying to develop a way to monitor total Directory size say any directory over 200 meg. I have the logic to enumerate the directories but I can't seem to figure out how to extract the directory size. ...more >>

Directory Properties
Posted by Dave at 2/25/2004 8:09:47 PM
Is there a way to to retrieve Directory Property information? I am trying to develop a way to monitor total Directory size say any directory over 200 meg. I have the logic to enumerate the directories but I can't seem to figure out how to extract the directory size. ...more >>

Directory Properties
Posted by Microsoft at 2/25/2004 8:04:54 PM
Is there a way to to retrieve Directory Property information? I am trying to develop a way to monitor total Directory size say any directory over 200 meg. I have the logic to enumerate the directories but I can't seem to figure out how to extract the directory size. ...more >>

datagrid to dataset
Posted by Esref Durna at 2/25/2004 7:37:09 PM
I fill the datagrid with oledbdataadapter. and make some changes on the datagrid.(Read only=False) now how could I update the database? How I could get this modified data to dataset from datagrid. Thanks ...more >>

Reconnecting to a remote MessageQueue when it has to reboot
Posted by felechaji NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/25/2004 5:40:27 PM
I have a VB.Net application that runs as a Windows Service and monitors a MessageQueue on another machine. At times that machine will have to be rebooted, so I've been working on how to get my Service to re-establish the connection after the remote machine is back. I found that as soon as ...more >>



datagrid question
Posted by Snuyt at 2/25/2004 5:13:40 PM
Hello, I'm using an Access database. I'm trying to built a datagrid from a OleDbDataReader. Does anyone knows how to do this ? dim reader as OleDbDataReader reader=foo() 'assume this correct: foo() returns an OleDbDataReader 'with the result of a certain Select-query 'here comes the...more >>

How to Map IIS Virtual Directory to Path Name
Posted by Charles Law at 2/25/2004 4:49:41 PM
I wish to create a file in a virtual directory, and then navigate to it. For this reason I need the virtual directory name, e.g. //localhost/MyVirtualDirectory (or http://localhost/MyVirtualDirectory) and a way in which to discover the proper path name from it, e.g. d:\inetpub\wwwroot\MyVi...more >>

Possible to get project's output automatically registered to the GAC on compile?
Posted by Bob at 2/25/2004 4:42:20 PM
After registration I'd also like VS to automatically attempt to unregister all older versions in the GAC. Is it possible to get VS to behave this way? If not will it be a Whidbey feature? Bob ...more >>

Simple Stock Control
Posted by Merlin at 2/25/2004 4:37:59 PM
Hi Group Anybody know where I could find a Example of a simple stock control system for Vb.Net using SQL or Access and ADO.Net? Many Thanks Merlin ...more >>

distributing windows services
Posted by Brent Burkart at 2/25/2004 4:31:31 PM
I have written a windows service which I want to deploy company wide to all machines. What is the best way to do this? Most users are remote users. Any ideas are appreciated. ...more >>

CObj() Function -- What's the point?
Posted by Raterus at 2/25/2004 3:44:00 PM
I'm trying to figure out what exactly the CObj() function does. I'm not using it for any reason, but on a review of all those casting functions like cstr, cbool, cdate, I saw it, but couldn't for the life of me figure out the point of such a function, or how I would ever need to use it. It take...more >>

Design question
Posted by Ruslan Shlain at 2/25/2004 3:04:26 PM
Hello Everyone, Looking for a better way to do this. I have several separate processes running on 5 + machines on the network. These processes are identical. What they do is, they look at a table in the DB and based on entries they perform some tasks.Once entry is read it changes a status. ...more >>

Purging Dataset
Posted by Leon.Kemp at 2/25/2004 3:01:09 PM
I have a DataSet that contains 6 tables. When I write to the first table, all goes well, and my database gets updated. When I start to reference the second table, I get an error message that a colomn from the send table is not part of the first table Key portions of code follow ...more >>

Adding Double Clcik to DataGrid
Posted by schildb at 2/25/2004 2:36:08 PM
I would like to create a custom version of te datagrid that would support a double click event. Anyone know how to do this?...more >>

Character separated lines into a collection
Posted by cf_rich NO[at]SPAM hotmail.com at 2/25/2004 1:54:27 PM
Via a TCP/IP socket, I receive two lines of comma separated text. The first line is always the titles of all the columns. The subsequent line is the data for each column. How do I split out the titles and the data, put them in an array or collection of some kind, pull the data for one of the ...more >>

what is wrong?
Posted by Daniel Sélen Secches at 2/25/2004 1:38:02 PM
I was trying to make a simple dataReader.... Sub projets() Dim conn As New OleDbConnection(connstring) Dim dr As OleDbDataReader() Dim cmd As New OleDbCommand() cmd.CommandText = "select * from projeto order by nome" cmd.Connection = conn conn.Open() dr = cmd.Ex...more >>

Form Size Problem
Posted by A-PK at 2/25/2004 1:26:48 PM
Hi, How could I set the presence of the form to be called to be locked inside the boundary of the calling form ? I got A and B form A form contain tree view menu and B form was part of the tree view menu item. So when I click the tree view menu item and select B form to be showed under A...more >>

cant populate comboboxes in XP
Posted by Mike Fellows at 2/25/2004 12:21:43 PM
when i load my windows form i populate a combobox i use the code below Dim conn As New System.Data.SqlClient.SqlConnection(strConn) Dim sql As String = "AllLenders" Dim da As New System.Data.SqlClient.SqlDataAdapter(sql, conn) Dim ds As New DataSet() da.Fill(ds) ComboBox1.DataSource = ds.Tab...more >>

Tab pages rearrangeing themselfs
Posted by Brian Henry at 2/25/2004 12:20:03 PM
I've noticed this a few times now, I have pages in a specific order that i want them in, and every once and a while when I rebuild my project or edit a tab page, the next time i open that form up to work with it they are in a diffrent order again... has anyone ever seen this happen? ...more >>

SQL operation in Server Explorer differ from Enterprise Manager
Posted by AH at 2/25/2004 12:17:31 PM
Dear all, I am facing this 'bug' that really drive me nut. I created a = trigger for Update script and tested in Enterprise manager to ensure it = function correctly. However, when I used both VB or Server explorer to = update the table, it gives me error, Couldn't VB just act as a = intermidary...more >>

how to de-select datagrid row with currency manager?
Posted by Rich at 2/25/2004 12:00:30 PM
Hello, I have a datagrid (drg1) on a form and displays 6 records. I can set the row pointer (select row) with the currency manager(cma) as follows: cma.Position += 1 drg1.Select(cma.Position) But when I move to the next row, the previous row retains the drg1.SelectionBackColor (whic...more >>

Print Icons
Posted by James Proctor at 2/25/2004 11:46:05 AM
Hi Ive designed a page to print out and i had two icons on the page a tick and cross. These show up perfectly on the preview but when i print they dont print out. Any ideas why this is happening or how i can rectify the fault Regard JP...more >>

split question
Posted by Craig Buchanan at 2/25/2004 11:14:48 AM
I am trying to split a comma-delimited string into a string array. unfortunately, if the string doesn't contain a comma, the resulting array is Nothing. other than using vb6 compatibility, is there another option? thanks, Craig Buchanan ...more >>

wmv playtime (?)
Posted by Jochen Morweiser at 2/25/2004 10:44:20 AM
Hello, i develope a software with vb.net / ipaq (Pocket PC 2003) From my software i will start the mediaplayer with a movie but my programm have to wait until the video is finished. Dim nZeit As UInt32 = UInt32.Parse("4294967295") Dim prcNeu As IntPtr prcNeu = Core.CreateProcess"\windo...more >>

fastest, easiest way to remove item from a string array?
Posted by Craig Buchanan at 2/25/2004 10:34:00 AM
what is the fastest way to remove a value from a string array? something like: dim x as string() = {"A","B","C","D"} 'remove C x.Clear(x, x.IndexOf(x, "C"), 1) Questions: 1). if i'm calling x.clear, do i need to keep specifying x in the ..indexof method? can i use me.? 2). ...more >>

test
Posted by test at 2/25/2004 10:26:05 AM
test...more >>

impersonation
Posted by Brent Burkart at 2/25/2004 10:25:24 AM
I have a directory synchronization service that requires access to network shares. I am getting access denied errors. It looks like I need to implement impersonation. Can anyone direct me to a working example or good article of impersonation for a windows application? Any help is apprecia...more >>

Weird VB .Net Question
Posted by Randy at 2/25/2004 10:23:33 AM
Hi, I am trying to do something that should be EASY but is not working for me for some reason. My application opens to a Main form, similar to a SwitchBoard in Access. What I am trying to do, and I may not be doing the best thing, is hide the Main form, and open whatever form the user ...more >>

Is there a Now time function that gets the Servers Now?
Posted by Trint Smith at 2/25/2004 9:44:59 AM
Is there a Now time function that gets the Servers Now? Instead of the Now from local computer? Any help is appreciated. Thanks, Trint .Net programmer trintsmith@hotmail.com *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it...more >>

requirement to cast from one custom object to another custom object
Posted by Craig Buchanan at 2/25/2004 9:03:01 AM
If I have two custom vb.net classes, where 80% of the properties are alike and there is one method with a matching signature, can i cast between one and the other? do i need to have each class implement a common interface? thanks, craig buchanan ...more >>

How can I tell if the system is 'idle', or the screen saver is running, or the machine is locked?
Posted by Kevin Buchan at 2/25/2004 8:55:27 AM
How can I tell if the system is 'idle', or the screen saver is running, or the machine is locked? I am writing an application that could really benefit from knowing this information. During 'idle' time, I could do some of the slightly heavier processing; during the 'working' time, I would displ...more >>

Self updating applications
Posted by Marco Castro at 2/25/2004 8:22:35 AM
Is there someway to get an application to update itself? Right now I'm including a second executable that the main application calls whenever it sees a new version of itself. This works but it doesn't seem like a very clean way to do it so I'm just wondering how everyone else handles it. Mar...more >>

DataGrid - Multiple Selections
Posted by Kirk at 2/25/2004 8:06:07 AM
I have a data grid in VB. I am trying to loop through all of the records and stop on the ones that are selected. What is the the syntax for this? Basically. IF is selected the Process recor Els Skip recor End i Any help would be appreciated. Thanks Kirk M. Dowd...more >>

Passing Classes
Posted by RBCC at 2/25/2004 7:54:13 AM
Public Class fraction Dim m_numerator As Int16 Dim m_denominator As Int16 Public Event zerodenom() Public Property numerator() As Int16 Get Return m_numerator End Get Set(ByVal Value As Int16) Value = m_numerator ...more >>

cdate is slow... any alternatives?
Posted by Eric Fleet at 2/25/2004 7:31:08 AM
In implementing the IComparer method of a listview, I found sorts by date are incredibly slow. I used a second dummy project to find out what the issue was. Code as follows simply converts two strings to two dates, and if they are not dates, uses 1/1/1900. If str1, and str2 are both valid dates, thi...more >>

Crystal report - suppresion formulas
Posted by Georgess at 2/25/2004 6:51:07 AM
Hi I have a problem with a crystal reports viewer I have developed with VS.Net 2003. Everything was working fine until I tried to view reports with suppression formulas... Eg. suppress (no Drill Down) group header 3 when: DrillDownGroupLevel < this formula should return True or false and work fi...more >>

Text Height
Posted by James Proctor at 2/25/2004 5:06:06 AM
Hi there, ive got a page which im printing but in order to centre some text i need to know the width and height of the text. I have done this before a long time ago and i seem to have totally forgotten how to do it. Hopefully someone can help me out Regard JP...more >>

Try...Catch question
Posted by jy836 at 2/25/2004 4:52:08 AM
When using the Try...Catch...Finally statements, what happens if an error occurs in a procedure called by the main procedure? For instance... Private Sub DoSomething() Try Call DoSomethingElse() Catch MsgBox("An error occured.") Finally MsgBox("This code always executes.") End Try En...more >>

HTML in Textbox
Posted by mr_carl_gilbert NO[at]SPAM hotmail.com at 2/25/2004 2:15:42 AM
Hi I was looking to impliment a TextBox or RichTextBox that provides links to other forms or pages. For example: Outlook 2003 >> Tools >> Rules and Alerts >> New Rule Something like the box shown in step 2 which provides text with links to items such as a folder browser or contacts list....more >>

How to create a file link in RichTextBox ?
Posted by ksskumar2000 NO[at]SPAM hotmail.com at 2/25/2004 1:39:00 AM
Hi Friends, I am creating a application using C#. In that application I am using RichTextBox (System.Windows.Forms.RichTextBox). My query is how to create a file link in Rich text box. Means, I want to embed file in Richtextbox. If the user click / doubleclick / Ctrl+click the link, that...more >>

way to check if program is already running
Posted by TM at 2/25/2004 12:00:54 AM
Is there any way to check if another instance of my program is running if a user executes it ? I would like to warn the user if the program is already running to prevent multiple instances. Thanks -- Tony ...more >>


DevelopmentNow Blog