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 2007 > threads for wednesday february 7

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

Position Control when Created dynamically
Posted by Lou at 2/7/2007 11:19:14 PM
I have a menu item that creates a new command button. Each time I create a new command button I need to position it to the left of the last created button. In VB6 I could create a control array, look at the UBound of the array (Last control Created) and find the position of the last created c...more >>

Running text in the buttons
Posted by tony wong at 2/7/2007 9:55:12 PM
i have 2 questions 1. click button1, button1.text run. click button2, button2.text run. 2. multithreading - 2 buttons run at the same time. Thanks a lot. ******************************* Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handl...more >>

Current Time
Posted by John Devlon at 2/7/2007 9:00:09 PM
Hi, Does anyone know how to get the current time in Visual basic? I would like to read the current time from the BIOS, not the windows clock. I also would like to connect to a time server on the web... Does any one know the answer ? Thanx John ...more >>

DataSet Locale problem
Posted by Matt F at 2/7/2007 8:22:04 PM
I have an application that utilizes a dataset. I've found just today, that if the regional language settings are changed at the point of where I instantiate the DataSet an error is thrown of: "Cannot add a DataRelation or Constraint that has different Locale or CaseSensitive settings between ...more >>

HELP!!!!!!!!!!!!!!!!!!
Posted by Desperate NO[at]SPAM aol.com at 2/7/2007 8:12:31 PM
I am having probles with the IDE. The proeprty box fails to repopulate when I click on a contrl. I am desperate and have reboot which corrects it for about a minute...more >>

save text from text box into text file
Posted by nuhura01 NO[at]SPAM yahoo.com at 2/7/2007 8:07:54 PM
Hi.. I'm trying to save query path which is in text box to text file. Below is the coding that i'm using currently: Private Sub SaveQueryPath() 'save to text file Response.Clear() Response.Buffer = True Response.AddHeader("content-disposition", "attachm...more >>

How to deploy Window service project?
Posted by Cylix at 2/7/2007 7:32:45 PM
I have create and finished a windows service project. I test and debug the project in my computer by just rebuild the file, and so the service is installed in my computer before. Now, I need to deploy it to the admin computer, but I don't know the way. I have tried to copy file in \bin and us...more >>

ArrayList?
Posted by Kym at 2/7/2007 6:30:43 PM
Hey, I have an arraylist which I have added a number of objects to (all the same type of object), I need to be able to check if the array already contain the object before adding it, I have tried something like... if Not myArray.contains(newObject) then myArray.Add(newObject) end if ...more >>



Column Headers of DataGridView Control
Posted by Samuel at 2/7/2007 4:30:30 PM
Hi I would like to change the column headers appearance, is it possible? I did change the ColumnHeaderDefaultCellStyle but it has no effect Thank you, Sam ...more >>

Vista and VB Express problems
Posted by Lloyd Sheen at 2/7/2007 4:23:38 PM
I am using VS Express (VB and C#) under Vista Ultimate. When I installed I got msg to install updates to make VS work with Vista. I did this and turned off the msg to show that it is not compatable. At present there are all sorts of VS errors (just like VS 2002). Things like my right hand CTL...more >>

business objects vs. datasets
Posted by Penelope Dramas at 2/7/2007 4:17:19 PM
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as this application is heavily data-centric around MSDE database. Would it be better to use custo...more >>

DataGridView Control Question
Posted by Samuel at 2/7/2007 3:52:09 PM
Hi I would like to change the column headers appearance, is it possible? I did change the ColumnHeaderDefaultCellStyle but it has no effect Thank you, Sam ...more >>

How to get string resource in the dll file?
Posted by yxq at 2/7/2007 3:45:13 PM
Hello, How to get the string resources in the shell32.dll? LocalizedString = @%SystemRoot%\system32\SHELL32.dll,-32517 Thank you ...more >>

How to get CurrentCell location in DataGridView?
Posted by Lennart Nielsen at 2/7/2007 3:34:44 PM
I can find the X and Y (column/row) coordinates, but not the actual location (Left,Top) positions. Any ideas? Lennart ...more >>

How to get image bits from a Bitmap
Posted by Frank at 2/7/2007 3:30:51 PM
Given a bitmap I want to write a Icon file using it. I believe I can do it except for writing the bits of the image. Can you tell me how to get the bits into a ByteArray Thanks ...more >>

vb.net web application fails when using IE7
Posted by Mark Brown at 2/7/2007 2:14:22 PM
I've written a web application using vb.net (vs2003) that works fine for me, using IE6. An individual that has upgraded their browser to IE7 is getting an error on a variable I'm using to reference a selected item in a list box, saying something like the value 1 is not non-negative or not 0. ...more >>

Error
Posted by Justin NO[at]SPAM NetZero.com at 2/7/2007 1:58:19 PM
I downloaded some coed and got this one warning message. How do I correct it The code fragment <Category("Progress Bar"), _ Description("Progress Bar Border Style.")> _ Public Property BorderStyle() As BorderStyle Get Return pnlBar.BorderStyle ...more >>

Visual Studio Std vs Pro?
Posted by Mark at 2/7/2007 1:41:24 PM
I recently picked up some reading materials on Visual Basic 2005 and although I don't actually own Visual Studio, I'm considering buying it - just to try to teach myself some VB. Anyway, can somebody tell me, what's the real difference between the Pro and Std Editions of Visual Studio (besides ...more >>

Custom drawing all scrollbars in application
Posted by ljlevend2 at 2/7/2007 1:10:00 PM
I am implementing an Office 2007 – like interface, including the ability to change colors. One issue that I have is that scrollbars look poor if the application color theme (e.g., Black) does not match the windows color theme (e.g., Blue). So, I want to custom draw every scrollbar within m...more >>

Determine bounds of ImageMargin
Posted by ljlevend2 at 2/7/2007 1:09:01 PM
Is there any way to determine the bounds (or at least the width) of the image margin region of a Windows.Forms.ToolStripDropDownMenu? I know that the bounds are specified in Windows.Forms.ToolStripProfessionalRenderer.OnRenderImageMargin via the Windows.Forms.ToolStripRenderEventArgs.Affect...more >>

Prevent Form Resize
Posted by Zytan at 2/7/2007 1:06:23 PM
How can I prevent a form from being resized? The default settings don't really make all that much sense. I realize you can instruct it to show scroll bars, and thus if one were made smaller, you can scroll to see all of it. But, I am willing to bet most people just want to ignore any user re...more >>

TabControl
Posted by Jim NO[at]SPAM Juno.com at 2/7/2007 12:29:46 PM
Is there a way to hide and show tabs programatically? ...more >>

Problem with inserting a string with quotes into a table from VB
Posted by Bill Gower at 2/7/2007 11:52:05 AM
I want to store an SQL string into a table and then be able to run it later. Here is the insert command "insert into ProjectSQL(ProjectID, SQLID, SQLString) values( " & locProjectID & ", " & nID & ", '" & tSQL & "')" that I will use inside of VB The problem is that inside the string tSQL...more >>

Writing to a sequential file from various child forms
Posted by Cashewz at 2/7/2007 10:54:01 AM
Using a menu item to write to a sequential file from the parent form, what code and where would I put it to write the text values, settings, bool values from various child menues? ...more >>

Need help coding vb.net XML file lookup
Posted by XML Beginner at 2/7/2007 10:49:06 AM
I have an XML file that contains values that my application needs, so it knows which database to connect to. It also contains a configuration option so that I can specify which node to return values from. For example, the XML file is meant to return the values from node"config2", because the ...more >>

Serialize or persist to file a COM object from VB.Net
Posted by jeff at 2/7/2007 9:51:00 AM
Hi. I am wondering if it is possible to serialize or somehow persist a COM object that does not implement IPersist or IPersistStream from VB.NET. Is it possible to roll my own serializer; ideally xml. However, this is an object that contains other objects. Please, any direction would be ap...more >>

VB6 automation error trying to use a COM-exposed C# DLL
Posted by Tremendo at 2/7/2007 9:11:16 AM
Hi, I have two PCs: PC1: Visual Studio 2005 (including .NET framework 2.0. PC2: Visual Studio 6 (using Visual Basic 6) + .NET framework 2.0 installed separately. On PC1 I wrote and built a C# DLL (see code below), and created one .tlb and one .reg file to expose its methods to COM. On PC...more >>

Visual Basic Express 2005 speed questions
Posted by Marco at 2/7/2007 8:57:05 AM
Hi everyone. I've been trying to move some small applications written in vb.net 2003 to vb.net 2005 express just for testing purposes. I have noticed so far that the applications seem to run much slower in the 2005 version. Especially when it comes to nested loops. I haven't done much t...more >>

download the trial??
Posted by aaron.kempf NO[at]SPAM gmail.com at 2/7/2007 8:18:38 AM
hey has anyone around here tried to download the trial of the professional edition? i swear; it gives me the file in IMG format.. drives me crazy! WTF IS AN IMG? I tried their instructions; to download IsoBurner... and it just blatantly didn't work.. I mean; it just didn't work at all. w...more >>

Using a Timer to CountDown in VB.net
Posted by WorldIsEnding NO[at]SPAM googlemail.com at 2/7/2007 7:06:05 AM
How could i use the Timer component to count down from a certain number that i specify thats been entered into a variable? For example; Lets say i want to book a table at my local Snooker Club. When i go in, im given a set of balls and a table to play on - in turn, the person operating the co...more >>

Reflection
Posted by BK at 2/7/2007 6:56:21 AM
I've used reflection quite a bit to launch forms, it works great, requires little coding, and allows me to launch forms from a dynamic menu. Now I have a need to instantiate any one of several business classes dynamically, so my natural inclination was to use reflection. The problem I'm runn...more >>

Trigger event when disk free space is lower than 500 MB
Posted by greg chu at 2/7/2007 6:06:40 AM
Hi, all Does vb.net has something can check the disk space and if less than 500 MB it will trigger an event? Or I have to write a time to read disk space every "X" minutes? Thanks. Greg ...more >>

GetCursorPos - PInvoke error!!
Posted by Rajesh Soni at 2/7/2007 2:27:31 AM
Hi! I'm getting a PInvoke error while trying to execute the following code... declaration: Structure POINTAPI Dim x As IntPtr Dim y As IntPtr End Structure Private Declare Sub GetCursorPos Lib "User32" (ByVal lpPoint As POINTAPI) usage: Dim MouseLocation As New POI...more >>

This SHOULD be an easy question....
Posted by Chad Dokmanovich at 2/7/2007 12:40:20 AM
As someone who's had a "fair" amount of web development experience, I shocked that I can't answer this question myself: Q: How does one maintain state and pass data across web pages and do so in a secured manner? Before you answer, let me assure you that I familiar with the normal methods ...more >>

New Resource
Posted by Miro at 2/7/2007 12:21:41 AM
Im really stuck on something. My goal is to get away from Image Lists and to use a Resource file instead. I followed an example and went to Properties of my project and clicked on the resource tab. Here I have found that I can add my images here. But how do I create a Resource file that ha...more >>


DevelopmentNow Blog