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 > march 2004

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 31

Identifying a procedure's calling parent
Posted by Wayne M J at 3/31/2004 11:33:16 PM
Sub mySub () MySub2() End Sub Sub MySub2() Console.WriteLine("I was called by...") End Some Using the above example, is there anyway for MySub2 to identify its calling parent? If so, how? ...more >>


how to save content of picturebox to jpg or bmp??
Posted by MJ at 3/31/2004 10:56:08 PM
anyone can provide the codind to save the content of a picturebox to jpg or bmp??...more >>

Files-listbox
Posted by Niels at 3/31/2004 10:49:50 PM
Hello, I have a lisbox placed on a form, in the listbox i want to get the filenames of a specific directory. So if i have 3 files in directory "c:\Test", i want to be able to select them in the listbox. I think I have to count the number of files in the directory, and then per file ad...more >>

Determine how a form is resized.
Posted by Lance at 3/31/2004 9:31:07 PM
Is there any way to determine that the size of a form is changing due to the user grabing the edge of the form vs. the size being changed in code (e.g., via Form.Size property)? Also, I need to know the desired size before the actual size changes Thanks Lance...more >>

Accessing VB .Net Controls from Javascript
Posted by fripper at 3/31/2004 9:29:27 PM
Suppose I have a textbox that was created in a VB .Net web application in design mode ... the name of the textbox is txtCount and its text property is initially set to 10. Now I go into HTML view and want to add some JavaScript code to initiate a countdown timer that every second decrements t...more >>

Prob Installing vb.net service on win2k Server
Posted by J at 3/31/2004 8:53:36 PM
hi, I'm having a problem installing a service created in vb.net 2003 on a windows 2000 server. I have installed the service on a few XP machines with out any problems...but the 2 servers (win 2000 server sp4) I have triend have the same error (both are on diffrent domains and have framewor...more >>

Interface and struct
Posted by Bob Clegg at 3/31/2004 8:48:31 PM
Hi, I have a Data Class that declares a Public struct. It accepts instances of this struct in some of its function calls. I now want to put an interface between this class and the calling classes. I would like to move the struct out to the module that is housing the interface. But when I d...more >>

Deleting File from HardDrive
Posted by Arvind P Rangan at 3/31/2004 8:09:42 PM
Hi, After uploading a file i wish to delete the file which has been uploaded. Can anyone help me on this. Or give me links for the available Example. Thanks Arvind ...more >>



Conditional attribute is not working
Posted by Julian Hershel at 3/31/2004 7:58:13 PM
Hi. I am playing with the Conditional attribute. If I define Conditional("DEBUG") for my method and compiles my application as a release build, the method won't be called, as expected. If I define the attribute as Conditional("RELEASE") and compiles my application as a release build the metho...more >>

redirecting output from external EXE file from VB.Net application
Posted by jerry at 3/31/2004 7:26:06 PM
Using VB.net standard 2003. While in development environment can create process to execute an external EXE program and redirect output to "file.txt" using System.Diagnostic.Process.Start. If I launch the created vbnetprogram.exe file, either debug or release, output form external EXE file is n...more >>

App setup.exe on CD-ROM; problem deleting the app folders.
Posted by tek1940 NO[at]SPAM hotmail.com at 3/31/2004 6:41:19 PM
VB.net 2003 standard, XP windows home edition. Installed first application OK today. When I removed the application via Control Panel, there were no problems and the app folders were deleted. But when I installed the app from a CD-ROM (Release folder is in D:), when I remove the app in Cont...more >>

Shortcuts
Posted by Steve C. Orr [MVP, MCSD] at 3/31/2004 6:23:34 PM
I need to open a shortcut file and read its target. It sounds simple but the solution has been elusive to me so far. Does anyone have any .NET code that will accomplish this? Thanks, Steve Orr ...more >>

Two Questions
Posted by WStoreyII at 3/31/2004 6:19:01 PM
Question 1 I am trying to create an app that will convert an excel sheet to a predefined xml table. This i have undercontrol but as part of this app i need to be able to view a list of sheets that are in a excel spreadsheet so that the user may pick one once they have chosen a excel work book t...more >>

error while connecting to oracle from Microsoft .net data provider for oracle
Posted by Reny J Joseph Thuthikattu at 3/31/2004 5:27:31 PM
Hi, When i try to connect to oracle from my vb.net application i am getting (System.Data.OracleClient) following error "Unable to find entry point named OCIEnvCreate in Dll oci.dll" I tried to connect using Microsoft .Net Data Provider for oracle. The connection string is "Server=pcname;ui...more >>

Enums: Good or Bad ?
Posted by tinman at 3/31/2004 4:59:16 PM
Hi... I'd like to some feedback as to how best to approach Enums. For example: Assume a staffing application which has the following enum for Project Types: Public Enum enmProjectType ptDepartmental ptDivisional ptGeographical End Enum If we were to take this approach...more >>

Page Expiration
Posted by Nithi Gurusamy at 3/31/2004 4:42:07 PM
Hello All: Page Expiration may look like a easy thing to do. It is frustrating that it doesn't work. This is a local website running in a Windows 2000 Server machine. I'm Accessing the website using http:\\localhost. I tried all POSSIBLE things that I could try... Nothing works. On the click o...more >>

Enum memory allocation
Posted by Michael Isaacs at 3/31/2004 4:21:09 PM
Regarding use of enum's, I am wondering what the cost of memory is when creating the enumeration on the calling side, and then using it on the function/method side. See example below. If I understand correctly, what is actually happening on the calling side is an instance of the enum class Favorit...more >>

Combo boxes
Posted by Rich at 3/31/2004 4:13:22 PM
Hi, Can anyone tell me if it is possible to show multiple columns from a datatable in a single combo box at once like you can in MS Access? Many thanks Richard ...more >>

For Next statement
Posted by Norton at 3/31/2004 4:10:16 PM
May i know if there is any method that can perform a skip within a loop? Like this For i = 1 to 100 if i = 5 then MOVENEXT '<--No this method if i = 10 then exit for Next Thx a lot ! ...more >>

HELP PLEASE
Posted by Domenico Daraio at 3/31/2004 3:23:17 PM
hi, i must, from file html, create a collection with its tag, property and text.. how can i do it? this work is similar at structure document synchronization when you clck with right button of mouse over form aspx... please help me... i'm desperate thnks all Domenico ...more >>

Complex Enum, or better soution??
Posted by Tom at 3/31/2004 3:17:28 PM
Hi I am trying to come up with a way of representing a text format, really i think it should but some values have a child value... all are fixed: Default Number --1,234 --1,234.00 --1234 --1234.00 --1.234568e+004 Date --3/31/2004 3:13 PM --Wednesday, March --3/31/2004 Time --3/31...more >>

Visual Studio 2005 Community Technology Preview March 2004
Posted by Chris Dunaway at 3/31/2004 3:12:15 PM
I was browsing through MS downloads and noticed this item and it prompted 2 questions (actually 1 question and one supposition): 1. Is this the same bits as the PDC bits that most of us already have or is it newer? 2. I suppose that because of the name, that we will not see the next VS un...more >>

Object Reference not set to an instance... Marshal.Copy problem
Posted by Robin Tucker at 3/31/2004 2:40:42 PM
(apologies in advance for cross post) Hi there, I have the following method which uses COM IPersistStorage to "save" a COM object into an ILockBytes in order for me to be able to fetch the data() bytes and put them into a database. I am using similar methods to create COM objects after rea...more >>

Please help with SHBrowseForFolder API in .Net
Posted by mkoslof NO[at]SPAM titlesupportservices.com at 3/31/2004 2:18:13 PM
I have been struggling with this all day and I know I am doing something wrong. This API code works in VB 6..and I am having a difficult time migrating it to .Net. Basically I need to do a call back procedure within my SHBrowseForFolder API code (setting an initial DIR). My code continues to ...more >>

MSFlexGrid
Posted by Bruce Forster at 3/31/2004 1:51:09 PM
Reading articles re: FlexGrid has show that it is exactly what I want. Unfortunately I do not know how to create one. Is there any suggested reading or can someone respond exactly how to create one. I have tried to add the FlexGrid control but it is not an option. Do I have to do something with ...more >>

DataSets with Business Entities and Data Access Layers
Posted by Ryan Shaw at 3/31/2004 1:46:10 PM
For my application, I stick to a Business entity class and a Data Access Layer class design (DAL For more complex situations I create a custom business entity class which users a DAL class. I also have many other small descriptor tables where I don’t need that level of control Is it proper to ...more >>

Debugging an ATL COM object in VB.NET
Posted by Simon Jefferies at 3/31/2004 12:20:50 PM
Hello, I've created an ATL component in C++, but wish to debug it when its called from .NET. I've placed it on a form and have set the component as the startup project. But the breakpoints never get called. TIA Cheers Simon -- Regards Simon Jefferies Tools Programmer, Headfirst Pr...more >>

App.config file Help
Posted by Marc Hall at 3/31/2004 12:11:07 PM
I have half of this figured out, but could use some help. I have created an xml app.config file. I have entered the Key/value pairs. no problem. I am running in to a problem in retrieving the data. Here is the code I am attempting to use Private Sub Form1_Load(ByVal sender As Object, ByVal ...more >>

Searching a dataset
Posted by Sean at 3/31/2004 12:01:12 PM
I have a DataSet.DataTable already loaded with values that I want to search for some information. What is the best way to go about doing it. Basically I want to know what DataSet.DataTable.Rows(intSomeRow).Item("Name") is when DataSet.DataTable.Rows(intSomeRow).Item("ID") = SomeID. I know I can do a...more >>

Exporting a vb.net executeable
Posted by jhgeorge NO[at]SPAM cfl.rr.com at 3/31/2004 10:51:47 AM
I am using the Microsoft.Ofice.Core to develop an exe I am having trouble getting a machine without vb.net on it to run this exe The other machine has office on it 1)Is the other machine missing some tools that might not have been loaded during office installation? 2) Has anyone else ran onto ...more >>

Real Challenge!! Capture KeyPress and Text from other Applications
Posted by DraguVaso at 3/31/2004 10:49:46 AM
Hi, For a telephony-application I need the following: When the user presses F10 in whichever application (Word, Excel, Notepad, Custom made Applications, ...) my program has to capture this, and go look in that application and select the telephone-number the user has put his cursor on. I...more >>

Closing a App
Posted by MadCrazyNewbie at 3/31/2004 10:26:58 AM
Hey group, Im trying to close a app (This is on a different machine to where it was compiled) but when i click on my Close button. I get the following exception: Im Using Application.Close in my code to end my App, it works ok if i use it in the IDE. Ta MCN ************** Exception T...more >>

Creating Strong Named Assemblies
Posted by Steve Holland at 3/31/2004 10:11:02 AM
I have created a Class Library (VB.Net) which references MS Word. When I attempt to compile the Class Library (<Assembly: AssemblyKeyFile("..\..\NHGeneralCourt.snk")>) I get the following error - - - Unable to emit assembly: Referenced assembly 'Interop.VBIDE' does not have a strong name...more >>

Video tutorials
Posted by Tomo at 3/31/2004 10:01:40 AM
Where can i find some good video tutorials for biginers ...more >>

How do we do arithmetic on UInts?
Posted by Rob Richardson at 3/31/2004 9:45:15 AM
Greetings! I am trying to read a file at the byte level (because the vendor does not provide a tool that exposes the ifnormation I need). So, I need to read offsets from within the file itself. For example, I know that the offset of the first field I need to read is contained in bytes 5 thro...more >>

NO MYTHS: ProgressBar
Posted by John Smith at 3/31/2004 9:34:54 AM
NO MYTHS: ProgressBar What is a progress bar? A progress bar is a fixed background and a sizable foreground. Can I design my own progress bar? Of course, maybe it is the easiest control. How to design MyProgressBar? You can use one or two basic controls to design YourProgressBa...more >>

Animated AVI's with transparency
Posted by Brian Henry at 3/31/2004 9:08:08 AM
Does anyone know how to play AVI files with a transparency key? like the file copy AVI file is one for example when you copy a file.. in .NET? thanks! I've been looking for examples but keep comming up with VB6 and the old Multi media control... ...more >>

auto fire of items events on initilization (check/radio buttons)
Posted by Brian Henry at 3/31/2004 8:31:24 AM
How can you stop the check changed event from fireing during the initilization of a form? I have about 4 radio and check boxes on the form, and when the form is initilizing, the one that is marked as checked during the initilization (when InitializeComponent is called) always fires it's check ch...more >>

Dos Command in VB
Posted by MadCrazyNewbie at 3/31/2004 8:28:48 AM
Hey Group, I`ve been using the following code that Herfried K Kindly gave me: Dim psi As New ProcessStartInfo() psi.FileName = "C:\bla.exe" psi.Arguments = "abc.def" Process.Start(psi) to run some Dos commands. Unfortunatly if I try and run on, it tells me that the program needs to be r...more >>

Help converting C# to VB.Net - I'm doing something wrong.
Posted by standish22 NO[at]SPAM hotmail.com at 3/31/2004 8:07:55 AM
I posted this on the csharp group, but no response, so I'll try here. I'm trying to convert some code I've downloaded from http://www.codeproject.com/cs/miscctrl/CsExRichTextBox.asp What it does is insert an image to a RichTextBox w/o using the clipboard. I've converted the code to VB.Ne...more >>

Simple ListViewItem questions
Posted by burak.gunay NO[at]SPAM xpandcorp.com at 3/31/2004 7:13:54 AM
Hello, I have two quick questions about adding a ListViewItem to windows forms combobox and listbox. 1) When I try to add a listview item to a combobox using the following code lstFrgnTables.DataSource = ds.Tables(0) lstFrgnTables.DisplayMember = "TABLE_NAME" lstFrgnTables.ValueMember ...more >>

passing values
Posted by mike at 3/31/2004 6:51:14 AM
I would like to know how to refer back to an object that I have passed to a dll For instance, if I pass a form to a function in the dll then how do I determine the name of the form passed inside of the dll reportform.gettype. I want to be able to refer back to the form I passed in and reference...more >>

C# to VB.NET converter?
Posted by Darin at 3/31/2004 4:36:06 AM
I have to rewrite all my C# classes in VB.NET. Is there a free tool that could convert my code for me or at least speed up the process Thanks....more >>

tabcontrol problem
Posted by Tom at 3/31/2004 3:31:09 AM
Hi I have a very weard problem I have a win form with some controls, including a tabcontrol When i put a control (a textbox or anything else) on a tabpage in the tabcontrol and when i switch to an other tabpage (in design!) i keep gettin "NullReferenceException: Object Reference not set to an i...more >>

LIST VIEW - Column sort
Posted by neil at 3/31/2004 3:06:12 AM
Could some body tell me if its possible to sort a list view by clicking on the column header At the moment I have a list view box called 'lwvAlbums' on a form called 'fclsMain.vb' If it is possible could you pls tell me what code I add where Many thank Neil....more >>

jagged arrays and API
Posted by marian at 3/31/2004 3:01:07 AM
hello Expert I have a DLL with a C Header file with typedef char typ_ascii and a function like result = testf(typ_ascii Data[5][10] Can someone help me how I can make a call to this function in VB.NET ? I tried with <dllimport> and the old 'declare function' declaration but unfortunatly, with...more >>

Suggestion for a spawning a remote process
Posted by andrew_webby NO[at]SPAM hotmail.com at 3/31/2004 2:00:52 AM
Hi I'm working on an app that I will use to target and install patches remotely for testing purposes (and also to get a bit more experience of VB.Net). Given that MS supply their patches as .EXE's, it doesn't look like I can use Win32_Product to install them (MSI only apparently). Am wonde...more >>

Call a Sub
Posted by sayerst NO[at]SPAM bellsouth.net at 3/30/2004 10:50:13 PM
What variables do I have to supply when I call a sub routine that contains (sender, e). For instance I want to call this: Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click When I try to call it using: Call MenuItem1_Click() I...more >>

P2P sample/doc
Posted by Stan Sainte-Rose at 3/30/2004 8:57:11 PM
Hi, I m looking for some P2p vb.net samples and/or documentation. Thanks Stan ...more >>

MDE 2003 Docs
Posted by Dennis D. at 3/30/2004 8:53:47 PM
Hello: I have purchased and installed VB.net Standard Edition. The help.about dialog of VB uses the string "Microsoft Development Environment 2003 Version 7.1.3008. I entered the string "Microsoft Development Environment 2003" in the MSDN site hoping to find documents for the IDE. The result: ...more >>


DevelopmentNow Blog