Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > june 2006

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

How to find equal images?
Posted by Saber at 6/30/2006 10:21:40 PM
There are some Images (System.Drawing.Image) with same widths and heights, I want to find if 2 images are equal. How can I do it? The following code always returns false: If img1.Equals(img2) Then MsgBox("ok!") Else MsgBox("wrong!") End If ...more >>

converting RTF backcolor to Web back color
Posted by iwdu15 at 6/30/2006 9:28:03 PM
hi, im doing this: Dim str as string = "#" & Me.rtbCreate.ForeColor.R & Me.rtbCreate.ForeColor.G & Me.rtbCreate.ForeColor.B rtbCreate being a rich text box control, yet the colors dont match. the color shown in the WebBrowser control is different that that of the RichTextBox....ive also...more >>

What keystroke to pop back from a browse?
Posted by Richard Lewis Haggard at 6/30/2006 6:49:27 PM
In VB.NET, 2005, an F12 will jump the editor to the definition of the word on which the cursor was at the time that the F12 was entered. What is the key sequence to return? In C# and C++, this is Ctrl Shift Asterisk, but that doesn't seem to do the trick in VB. -- Richard Lewis Haggard w...more >>

Delete events/procedures of control if control is deleted at design time in VB.Net 2005 ?
Posted by Luqman at 6/30/2006 5:19:57 PM
Is it possible that if I delete any control on the form, all its related events / procedures should be deleted in VS.Net 2003 or VS.Net 2005 ? Best Regards, Luqman ...more >>

Access to DB on client-side with ASP.NET
Posted by damianmatiasmax at 6/30/2006 3:40:54 PM
Hello everybody! I'm an ASP.NET developer currently working on a ASP.NET application. This application requires access to a Database on the client side trough DSN connections and there execute some scripts. I know these actions can be developed under an ActiveX environment written in VB6, but I'...more >>

Store encrypted password in my.settings?
Posted by Heinz K at 6/30/2006 3:08:31 PM
Hi all, with VS2005 I want to use my.settings for storing user settings. I also want to store a password there, but of course not in plain text. How could I encrypt the password (or the whole settings file?) ? Many thanks in advance! ...more >>

A question about generics
Posted by Showjumper at 6/30/2006 3:03:35 PM
Back in asp.net 1.1 i made custom collection classes per Karl Seguin's article On the Way to Mastering ASP.NET: Introducing Custom Entity Classes to take advantage of strongly typed data. Now with generics i understand that one doesnt have to used these custom collections. So i want to move...more >>

need Help Regex
Posted by JM at 6/30/2006 2:09:55 PM
Hi, I am not sure if this is the place to post a REGEX question if not, please indicate me where i can post it?. My question: Given a string like: "Boston. MA. Holidays" I need to define the regular expression to find each dot, the previous word and the word after. That is i want to obt...more >>



Report showing RTF in textboxes - How?
Posted by Bob at 6/30/2006 2:01:09 PM
Got a filed bound to a ntext field that contains RTF data, The RTF tags show up in the report obviously I don't want this, Is it possible to show the report with RTF in the text boxes? If So How. Any help appreciated. Bob ...more >>

amortization... kinda
Posted by Brian Cesafsky at 6/30/2006 12:45:45 PM
I have the following code that will create an amortization schedule, but I need to do the following and can't figure it out. 1) instead of creating an amortization schedule where you know exactly the amounts the customer will be paying on a monthly basis, I need to figure out what the curr...more >>

Event Handlers
Posted by sqlhack NO[at]SPAM gmail.com at 6/30/2006 12:23:47 PM
Hello all, I am looking for a way to either parse though all event hadlers liked to an event, or to remove all event handlers linked to a object. I was thinking about using the handle created event, but it does not provide enough information about the created handle. Thanks in advance. ...more >>

Close all forms but Main
Posted by Ryan at 6/30/2006 11:35:37 AM
My application has a main form from which the user can use the Menu to open other forms. Each form opens in a separate window while the main form remains open all the time. Is their any code I can place in Form_Load for all my other forms (besides Main) that will close all other open forms (...more >>

Discover SQL Servers on network
Posted by Microsoft at 6/30/2006 11:19:38 AM
In my app I want to create a drop down that lists the available SQL Servers on the Network. How do I discover what servers are out there? This is exactly like when you use File/Connect in Query Analyzer, you select the server you want to connect to then you enter you credentials or use Wind...more >>

VB Express: Can't Add New Icon File
Posted by Jerry at 6/30/2006 10:58:57 AM
When I right-click on my project (in Solution Explorer) and go to add -> New Item, Icon File is not an option. Can I download this template from somewhere? -- Jerry ...more >>

how to create shift-F2 function for Textbox - shortcutkey?
Posted by Rich at 6/30/2006 10:43:02 AM
Hello, I need to add a shift-F2 function to textboxes to bring up a dialogform with the expanded text contained in the respective Textbox. On any of the keydown events of a textbox I can only trap for one key - well, I only know how to trap for one key. How can I trap for Shift-F2 combin...more >>

converting string to image..??
Posted by grawsha2000 NO[at]SPAM yahoo.com at 6/30/2006 10:39:46 AM
Hi, I'm trying to convert this simple string into image: Dim bytes() as byte()=System.text.Encoding.ascii.GetBytes("123") Dim memStream as System.IO.MemoryStream Dim img as image memStream.Write(bytes,0.bytes.length) img=image.fromstream(memStream) ' an error occurs here vb.n...more >>

ClickOnce
Posted by KenL at 6/30/2006 8:15:02 AM
I have a WinForm(VB 2.0) application that I am publishing as a ClickOnce installation. We have a need to publish the same application code for several configurations. (Staging, TestSystem, LiveSystem) Each of these configurations differ only in app.Config changes. I would like the ability to ...more >>

VB.NET 2.0 & Application Settings..
Posted by modi321 NO[at]SPAM gmail.com at 6/30/2006 7:48:35 AM
Everyone, I have a question on how to use persistant application settings with 2.0. I understand I can use defined types like ints, strings, and so on, but how about my own custom class? The problem is I can fill in the 'type' of the setting as my custom class, but if I try to save the sett...more >>

Visual Basic .NET Compiler
Posted by William Foster at 6/30/2006 6:57:42 AM
Good evening all, I am running Microsoft Visual Studio 2005, when I compile my programs with this software it has been compiled by the .Net Framework version 2. Unfortunately I need my program to run on .Net Framework version 1; does anyone know if there is an option to make a complied program...more >>

hide row from DataGridView
Posted by martin1 at 6/30/2006 6:40:02 AM
Hi, All, I try DataGridView1.Rows(rownumber).Visible = False to hide some rows, but get currencymnager error message, can you help this out? Thanks ...more >>

Printer Command
Posted by Sub-Lt at 6/30/2006 5:43:01 AM
Hello. Cor Ligthert [MVP] In: microsoft.public.dotnet.general recommended I ask this question here: We are upgrading one of our apps from VB6 to VS2005(VB). Barcode printing is part of the app. What we used to do is send the printer command directly to the printer. Printer.print...more >>

Question on XMLSerialization
Posted by Joe Cool at 6/30/2006 2:38:41 AM
I have an XML file that is created by an application that I do not have the source to and have no control over at all. I would like to read this XML file using VS2005 VB with XMLSerialization. The following XML file exhibits the structure of this file: <Root> <Group> <TypeA Attrib1="xxx" ...more >>

Comparing recordsets in VB2005
Posted by Kevin at 6/30/2006 2:21:06 AM
I'm trying to convert a VB6 app to VB2005. I'm trying to search for changes made to a record and record them in a log file. This is my code in VB6: Dim X As Long Dim oField As ADODB.Field Dim rs as New Adodb.Recordset pstrSQL = "SELECT * FROM qryCRClasses WHERE fldStudentNumber = '" & txt...more >>

Creating extra classes
Posted by Nathan Sokalski at 6/30/2006 2:13:45 AM
I recently upgraded from VS 2003 to VS 2005. In VS 2003 all I had to do to make an extra class was put the following in a *.vb file: Imports System.Web.UI Imports System.Web.UI.WebControls Public Class MiscExtras Public Shared Sub AddRollover(ByVal img As Web.UI.WebControls.Image, By...more >>

Visual Basic 6.0, Enterprise Edition
Posted by John at 6/30/2006 1:36:28 AM
Hi What is Visual Basic 6.0, Enterprise Edition that has appeared in MSDN this month? Thanks Regards ...more >>

Question about crystal report in VB.Net
Posted by at 6/30/2006 1:29:28 AM
Crystal report can accept 2 datasource ? cozs I create a xsd first and then add it in crystal report....after that...set datasource for the report..... So don't know can do it or not ? Thanks Edmond ...more >>

Getting the text from a bound combobox.
Posted by reidarT at 6/30/2006 12:00:00 AM
I want to get the text from a bound combobox in a variable I try to use strVar = me.cboName.SelectedText.Tostring, but it doesn't work. reidarT ...more >>

DateTime problem
Posted by reidarT at 6/30/2006 12:00:00 AM
I got help from Cor L, but is not finished yet. In a windows form I need to add a date to a table in Access. Dim dteDato As Date = (Me.txtDato.Text) ' I have tried Value instead of Text, but it doesn't help Dim con As New OleDb.OleDbConnection("Provider=Micr..... Dim cmd As New OleDb.O...more >>

What type is best for the return value of a function?
Posted by John Dann at 6/30/2006 12:00:00 AM
A question that I'm in two minds about - maybe someone more experienced could offer some advice? Let's say I have a method in a class whose function is to generate an image (But it could equally apply to any more complex object that the method might generate.) Then it seems to me that I hav...more >>

Datefield from variable into a datefield in an access b
Posted by reidarT at 6/30/2006 12:00:00 AM
I use a DateTimePicker to get a date. I want to add this date into an access table. I use a variable like Dim dteDato As Date = Format(Me.txtDato.Value, "Short date") In the sql-statement I use INSERT INTO tblToDo ( Dato, Bruker, Utfort, Melding, MeldingFra ) " & _ "SELECT " & dteDato & ", '...more >>

TextObject Multiline
Posted by Josep Blanch at 6/30/2006 12:00:00 AM
Hi, I'm making a report with Crystal Reports and I use a TextObjet witch I assign a string, but I need to show the text in multiline. How I could do it? Thanks! ...more >>

Writing ActiveX DLL in VB 2005
Posted by Michael Powe at 6/29/2006 10:57:28 PM
Hello, I have an application that exposes a VB 6 ActiveX API. I can write DLLs that plug into the application and add functionality to the application. I write these DLLs by implementing an interface. I have been doing this in VB 6. On initial review, it appears that it should be possibl...more >>

Writing a node like xs:element to file
Posted by ronchese at 6/29/2006 10:26:53 PM
Hello All. I need to complement some information in a xml file, using the = Xml.XmlDocument object. This xml contains several <xs:element ....> nodes (is a saved dataset), = and I need to write new nodes exactly in the same way the existant = nodes. I tried naming the new node as "xs:ele...more >>

DirectX and False Stretching Images
Posted by A. Gaubatz at 6/29/2006 9:55:06 PM
I am using some code that I somewhat cannibalized from a tutorial, and whenever I try to put in an image not of specific seemingly random sizes, it stretches them out alot. The module that runs the code I am using is this: (note that the tutorial had a 3D segment as well, which has been remark...more >>

ASP.NET: VSNET2003 to VSNET2005
Posted by Nathan Sokalski at 6/29/2006 8:07:55 PM
I just upgraded from Visual Studio .NET 2003 to Visual Studio .NET 2005. There are several questions I have about the code differences between them (I use VB.NET for as my language of choice): 1. 2003 used "Public Class classname" and 2005 uses "Partial Class classname". What, if any, diffe...more >>

Global.asax.vb in Visual Studio .NET 2005
Posted by Nathan Sokalski at 6/29/2006 7:43:07 PM
I recently upgraded from Visual Studio .NET 2003 to Visual Studio .NET 2005. Visual Studio .NET 2005 does not create the Global.asax files that Visual Studio .NET 2003 did, which I used for variables such as the location of my database. What is the conventional way of creating global variables...more >>

trying to execute a simple command line, need help
Posted by CP11 at 6/29/2006 6:28:16 PM
Newbie here. I am used to using vbscript but trying vb.net in vs2003. I am trying to add a button click event, like this: Dim LaunchApp As Integer LaunchApp = Shell("""c:\program files\myapp\bin\newapp.exe"" /cmdline http://myapps/file.asp /logon") AppActivate(Lau...more >>

String and int Issue
Posted by Bonzol at 6/29/2006 5:54:29 PM
vb.net 2003 1.1 web application Hi there. Atm I am using this SQL string SQL = "SELECT Addresses." + tab2LookupCol + " FROM Addresses INNER JOIN Clients ON Addresses.ID=Clients.AddID WHERE (((Clients." + tab1CheckCol + ")='" + checkval + "'))" However, it will not work where '"checkval...more >>

REGULAR EXPRESSION extract a word and text around it
Posted by teo at 6/29/2006 4:41:26 PM
I have a problem (partial). Some days ago I asked for a way to extract a word and few text around it (30 chars on the left and 30 on the right) from a long text. I went good with: ..{1,30}?myWord.{1,30} ----- here the code: ------------- ' Let's assume the target word is "c...more >>

OpenFileDialog Handle Leak
Posted by NickP at 6/29/2006 4:24:54 PM
Hi there, This is really crazy! 1. Make a folder 2. Put a text file in the folder 3. Run the following code... Dim pop As New OpenFileDialog Using pop Call pop.ShowDialog() End Using 4. Browse for the newly created text file 5...more >>

DataGridView Question - VB.NET 2005
Posted by Samuel Shulman at 6/29/2006 3:38:37 PM
Hi I am starting to use this powerful controls but I am having a little problem When I use ListView Control I could inherit the ListViewItem to add additional members typically for the Row ID in the database some times of more than 1 record (if the row contains related data from a number o...more >>

Trying to Track down an Unhandled Exception
Posted by Brien King at 6/29/2006 3:08:57 PM
I have 40 users using my application and a few are getting this exception: Message : Invalid parameter used. Source : System.Drawing Stack Trace : at System.Drawing.Font.GetHeight(Graphics graphics) at System.Drawing.Font.GetHeight() at System.Drawing.Font.get_Height() ...more >>

Disconnected Client Data Store
Posted by John Wright at 6/29/2006 3:02:43 PM
What are some good stragegies for writting a disconnected client store. I was looking at MSMQ, Serialization and possible SQL Server Express, but I am open to any suggestions. I have to scenerios. 1. I have a client/server application that needs to be connected as much as possible. I ...more >>

GetPrivateProfileString problem!
Posted by Domac at 6/29/2006 2:55:43 PM
I need to read some configuration data from .ini file located at Application.StartupPath location . Here is code snippet : Public Declare Unicode Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringW" (ByVal lpApplicationName As String, ByVal lpKeyName As Stri...more >>

Icons for explorer app depending on OS
Posted by news.microsoft.com at 6/29/2006 2:14:25 PM
Hello, I'm writing an explorer kind of application. How can I extract icons for a specific type of OS? for example the icon for 'My Computer' looks different on Windows 2000 then on Windows XP. Is there any way to fetch them through code (which I prefer)? Or is the only solution to mak...more >>

Browsing Records
Posted by Brahm at 6/29/2006 2:07:17 PM
hi Folks I have a datagrid filled out with some records and under it some text boxes . I want to fill out the text boxes according datagrid browsing . my question is: How can I bind this two controls to get the behaviour I want. Thanks in advance, Daniel ...more >>

+ and & operators
Posted by Domac at 6/29/2006 1:51:07 PM
What is the difference between "+" and "&" operator when joining strings? Thanx! ...more >>

MDI Form loading
Posted by Charlie Brown at 6/29/2006 1:05:49 PM
I am using the following to load my mdi form into the parent. If Me.frmIncoming Is Nothing Then Me.frmIncoming = New IncomingForm Me.frmIncoming.MdiParent = Me End If Me.frmIncoming.Show() ...more >>

"Control" color
Posted by Kevin L at 6/29/2006 12:21:33 PM
Can anyone tell me the RGB values for the "Control" System Color? Thanks ...more >>

determine which radiobutton in a groupbox is checked?
Posted by Rich at 6/29/2006 12:00:03 PM
Hello, I have a groupbox that contains 3 radiobuttons. Is there a groupbox property or some syntax that identifies which radiobutton is checked? Or do I have to loop? For Each rad As RadioButton In grpBox1.Controls If rad.Checked.Equals(True) Then Console.WriteLine(rad.Name) Next ...more >>


DevelopmentNow Blog