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 > august 2007

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

IIS
Posted by Hello at 8/31/2007 9:27:40 PM
My operating system is Windows is windows XP Home. IIs(Internet Information System) not installed because this window does = not support the IIS. Can I install IIS to work with web applications? Where I go ? Thank you =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=...more >>


Handles Mix
Posted by at 8/31/2007 8:26:21 PM
Ok, so I've got a weird question. I'm working with an outside class that someone made that will save the application settings in the Application Data Folder. However, one problem I'm having, and I already found the (lengthy) fix for is that I'm not able to mix handles: Private Sub uicheck1_Ch...more >>

process and Listbox
Posted by Ben at 8/31/2007 3:44:00 PM
I am trying to list all the instances of notepad and some other specific apps running on my computer using the code below: Dim myPro() As System.Diagnostics.Process myProcess = System.Diagnostics.Process.GetProcessesByName("notepad") If myProcess.Length > 0 Then ...more >>

Setting FolderBrowserDialog.RootFolder yeilds error
Posted by Jerry West at 8/31/2007 3:16:32 PM
I'm trying to set the .RootFolder property of the FolderBrowserDialog object. Each time I try I get an error stating: "Object reference not set to an instance of an object." I have not opened the VB toolbox and placed a FolderBrowserDialog onto a Form. Instead, I have simply declared a var...more >>

Simple ADO.Net Recordset.
Posted by Greg at 8/31/2007 12:06:03 PM
My background is in MS Access and I am in the process of migrating my skillsets to Visual Basic.Net. So far I am able to display data in DataGridViews and Combo Box, etc with not problem. What I'm not so sure about is bullding a recordset so that I can iterate through the record set and perf...more >>

Visual Basic 2005.Net TableAdapters
Posted by Greg at 8/31/2007 11:42:01 AM
When using the VS Wizards to create a DataSet I select tables. Then, I use the TableAdapter Configuration Wizard to modify the underlying queries that retreive the data. What I'm wonder is, does this TableAdapter work in the same manner as a SQL Server Stored Procedure or View? Or, does it wor...more >>

KB Doc w/no content
Posted by Jerry West at 8/31/2007 10:34:06 AM
I was looking for a way to implement a managed component to wrap the Browse For Folder common dialog. I saw that there is a KB doc just for this task. So I went to review it and noted that it contains absolutely nothing!! There is no content. And then at the bottom it ask whether or not the ar...more >>

How to post a form in a webpage using VB 6.0? (I've provided full explanation)
Posted by corporateattitude NO[at]SPAM gmail.com at 8/31/2007 8:39:14 AM
Hello. I have a question concerning how to post a form to a webpage in VB 6=2E0. The following is my webpage. I've already design a function to collect the following data: desire1, desire2, description, accesskey, process_on and identity. Have I collected the right data? I've saved all in a str...more >>



Help, Calling c++ dll from vb.net
Posted by xin.huang.xh NO[at]SPAM gmail.com at 8/31/2007 7:11:48 AM
Hi All: Please help me out here. I try to call a C++ dll from my VB.NET code. I follow the examples given on the web, but it does not work for me!!! It drives me crazy, so please help me out. Here is what I did Create an empty VC++ dll project from Visual Studio 2003. Create a test.cpp f...more >>

Server side component, events and AJAX
Posted by Mike at 8/31/2007 1:20:40 AM
Hi, I have a component that resides on the server side (distributed). This component will trigger some events that I need to catch in an ASP.NET form. Basically, a user will press a button (in the ASP.NET form, client side), a method on the server side component will be invoked, i...more >>

Reading values from register
Posted by Michel at 8/31/2007 1:04:03 AM
Hello, When I try to retrieve values from the register with Select Case Dir(CStr(My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Kassasysteem\Gegevenslocatie", "Gegevenspad", "")) & "\" & CStr(My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Kassasysteem\Gegevensloca...more >>

IOException - Bad file name but NOT a permissions problem
Posted by teddysnips NO[at]SPAM hotmail.com at 8/31/2007 12:09:53 AM
My clients get the following exception message when they try to write to a file: <exception> Server Error in '/MyApp' Application. Bad file name or number. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more ...more >>

.Net Sockets
Posted by Meftah Tayeb at 8/31/2007 12:00:00 AM
Hello, please Help me i am Developing a Mail Server Application but ho to use Sockets using VB in .Net FRAMEWORK 1.1 or 2.0 ? Thanks ...more >>

[STRING] retrieve the pixel length, MeasureString
Posted by teo at 8/30/2007 11:25:39 PM
Hallo, I'd like to retrieve the pixel length of a string. ------------------------ I decided to use MeasureString, but I have a problem with the graphic "instance" of it. I'm in a Sub and I have the "graphics" word underlined: Private Sub CalculateTheWidth Dim myFont As New Fo...more >>

PROBLEM PASSING ARRAY OF STRUCTURE TO VC++ DLL
Posted by Phoenix at 8/30/2007 9:24:27 PM
Hi Friends , Could anyone please help me to resolve the following issue : I pass an array of structures to a dll written in VC++ 6.0 whih fills it with data . The following works well for VB 6.0 but when I wrote the same piece of code in VB 2005 the array of structures remained empty even a...more >>

Disable Add-in command
Posted by Johnny J. at 8/30/2007 4:54:18 PM
It's no problem adding a new command to the Visual Studio (2005) ide using the commands collection. But I cannot seem to find any way to disable and reenable the commands added. Has anybody got an idea? Cheers, Johnny J. ...more >>

Good VB.net resources on the net
Posted by Andy.I at 8/30/2007 3:44:01 PM
Hi I'm looking for good VB.net resources on the net for learning Vb. I've looked at www.devcity.net, and I'm looking for similar sites for learning. Any input would be apreciated. A/. ...more >>

SqlError Deserialization - Possible Version mismatch.
Posted by Mythran at 8/30/2007 2:51:54 PM
We have an application on one server and a web service on another server. Our BLL and DAL layers are behind the web service. When a SqlException is thrown, the application receives the following error: System.Runtime.Serialization.SerializationException: Possible Version mismatch. Type Sy...more >>

VB6 program needs to run and install without admin rights.
Posted by buzzluck68 NO[at]SPAM hotmail.com at 8/30/2007 1:03:12 PM
Hello, I have an in house application that we developed, but everyone who needs to use the program are not allowed to be local admins on their PCs. I was wondering if there was a way to code the application to not require admin rights (for modifying/creating excel and text files as well as m...more >>

Setup Project Not Removing Previous Version
Posted by zacks NO[at]SPAM construction-imaging.com at 8/30/2007 11:52:17 AM
I have created numerous Setup projects with Visual Studio 2005. I have a current solution that is fairly complex with numerous projects. It contains two primary applications so there are two setup projects. The setup project for the first application works fine, it removes the previous version a...more >>

Basic design question for a distributed application - How to access application's data
Posted by JB at 8/30/2007 10:53:06 AM
Hi All, I need to write my first "distributed" application and due to my lack of knowledge and experience in that area, I'm stuck on the first big design decision. Reading a lot on distributed applications, remoting, etc didn't help me much for that particular issue. The main data the appl...more >>

Printing positioned text (Invoice printing)
Posted by Sergio Montero at 8/30/2007 10:51:45 AM
I have a VB6 app that allow users to set up invoice formats indicating X and Y position for each field (customer,total,etc). So when the format changes, the user only needed to change the X,Y settings. When the invoice is printed the app reads that settings and using the printer object send ea...more >>

Prace programistyczne
Posted by r.kulesza NO[at]SPAM dysponent.pl at 8/30/2007 9:55:09 AM
Podejm=EA si=EA zlece=F1 programistycznych w dowolnym zakresie: - outsourcing oprogramowania - budowa modu=B3=F3w - tworzenie ca=B3kowicie nowych aplikacji Narz=EAdzia programistyczne (do wyboru przez klienta) - Visual Studio 2005 (dotnet) - Visual Studio 6 Platformy bazodanowe - Microso...more >>

Closing ODBCConnections
Posted by zacks NO[at]SPAM construction-imaging.com at 8/30/2007 8:18:47 AM
If I close and dispose an ODBCConnection object, shouldn't the connection actually close? I have found that even after closing and disposing an ODBCConnection, the database it was connected to still has an active connection as long as the application is still running. I have to close the applica...more >>

How can you translet the MAC address to IP
Posted by Husam at 8/30/2007 8:14:00 AM
Hi EveryBody: Two days ago I post question regarding how can I get the MAC Address And I recived the answer which is: Imports System.net.networkinformation Dim networkcard() As NetworkInterface = NetworkInterface.GetAllNetworkInterfaces() Dim netcard As String = networkcard(0...more >>

vb.net Load JPG in a Picture Box without Locking File
Posted by Marcolino at 8/30/2007 7:05:46 AM
Hy Guys, I have a problem loading JPG in a Picture Box. I need to load a jpg files into a PB and then unlock the original JPG. I'm using following code: Dim picture1 As PictureBox Dim OriginalImage As New Bitmap(FilePath) 'Load orginal JPG Dim iImage A...more >>

suspicious delay when changing textbox properties??
Posted by weg22 NO[at]SPAM drexel.edu at 8/30/2007 6:24:08 AM
Hi all, I'm developing a Visual Basic 2005 application to communicate with an I2C device. I recently decided to add an i2c status bar. The status bar is just a textbox with the following properties: When I2C communication active: Public Sub i2c_active() statusBar.Text = "Exchanging Data....more >>

Textbox MouseDown
Posted by at 8/29/2007 10:19:36 PM
Is there a way to modify all textboxes on a form so that when you click on any of them you process the SelectAll() function. For exaple, let's say I've created a form with 30 textboxes. These textboxes when clicked on, will select all of the text inside of them using the textbox.selectall(). I...more >>

Populating related business objects from database
Posted by ITistic at 8/29/2007 8:24:36 PM
Hi everyone, Just curious as to how much of you OOP developers are handling this scenario. Say I have an Order and OrderItem table. Example schema below: Order == order_id int (PK) customer_id int CreatedOn datetime ModifiedOn datetime OrderItem == order_item_id int (PK) order_id ...more >>

What are the benefits of partial class?
Posted by Peter at 8/29/2007 7:58:01 PM
Besides allowing separate physical files (.vb), what other benefits does it have? My understanding is that partial classes are still compiled into one assembly (.dll). ...more >>

Enumerating folders always yeilds an error
Posted by Jerry West at 8/29/2007 5:20:09 PM
VB 2005 .NET I'm trying to enumerate through a folder structure. Everytime I try I receive an error. The error states: ContextSwitchDeadlock was detected The CLR has been unable to transition from COM context 0x1a0de0 to COM context 0x1a0f50 for 60 seconds. The thread that owns the dest...more >>

DataTable: Sort by multiple columns.
Posted by Hetal at 8/29/2007 5:14:53 PM
Hi... We are on Visual Basic .NET 2003 and i am using DataView to sort the DataTable. However, we are facing problems with sorting the data based on multiple columns. The below statement to sort the table based on 1 column works perfectly fine. dvShiftData is a DataView dsScheduleData i...more >>

how can I change this get code to post code
Posted by cj at 8/29/2007 4:55:27 PM
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim URL As String Dim webReq As Net.HttpWebRequest Dim webResp As Net.HttpWebResponse Dim respStr As String Try URL = "...more >>

Reflection PropertyInfo.GetValue - how to know when it's an indexed property?
Posted by Tom Dacon at 8/29/2007 4:42:35 PM
I'm using Reflection to iterate over the properties and fields of an arbitrary object. For non-indexed properties it's pi.GetValue(theObject, Nothing) for VB, or pi.GetValue(theObject, null) for C# For indexed properties, instead of Nothing (null) you pass an array of index values. ...more >>

HTML Get Form
Posted by Tim Burkart at 8/29/2007 4:40:03 PM
I don't know where to post this question (here or an HTML forum). I have an HTML form field on a plain HTML page - <Form method="GET" action="http://www.someothersite.com/ProductSearch/LinkInQS.aspx"> <input type="hidden" name="ID" value="E8352CCC-DE22-4DC8-829E-69E5BC071195"> <input type="te...more >>

Quick Info option
Posted by Jerry West at 8/29/2007 4:32:44 PM
In VB6 there is a option titled "Quick Info". Using this option one could right click a function and view its possible parameters. I don't see a comparable option in .NET VB 2005. Am I just missing it or is it now removed? Thanks! JW ...more >>

Let's Unite Against Jews and Mongrels!
Posted by Nenad Milicevic - The Aryan Serb at 8/29/2007 3:44:26 PM
Rise up and shine, white sons and daughters Rise up and shine, you gotta fight to part those waters When we swim in the light, all will be okay The black, yellow and brown man will wash away. ------------------------------ Let's break the chains of Jewish and black domination! Unite, white bro...more >>

The meaning of the icons used in VS2005 IDE?
Posted by Peter at 8/29/2007 3:28:03 PM
Where can I find out the meaning of the icons used in VS2005 IDE such as the icons shown with intellisense and the icons inside the Solution Explorer (I'm talking about the ones next to items in a solution)?...more >>

Adding a objet to a queue
Posted by A Shawn at 8/29/2007 3:24:15 PM
I am trying to create a queue of objects. I have a taskHolder object using a Task class. I have an activeproject object of project class. Each project has a queue called Tasks. Everything looks good up to the point that i try to add the taskholder object to the queue. I get an nullreferencee...more >>

possible to generate a serialization assembly in debug mode?
Posted by PJ6 at 8/29/2007 3:09:35 PM
The compiler only pays attention to the "generate serialization assembly" option in release mode. I'd quite rather have this working in debug as well... is that possible? Paul ...more >>

Tracking change of control variable.
Posted by tc at 8/29/2007 12:49:33 PM
I'm trying to put together a small control. It's not, but for arguments sake, let's say it's a progress bar. The user will make a change to a setting, lets call it 'value'. I want to trap the change of the public variable in the controls code so I can act on that change. How would I do...more >>

Display Resolution issue?
Posted by Marc at 8/29/2007 12:26:16 PM
Hi, I have a simply 'one main screen' vb.net application. This works fine on most machines...however on the new wide screen laptops and also on some flat screen monitors the screen does not automatically size itself correclty..i.e. the right hand side of the screen gets cut off. Any ideas wh...more >>

Can someone explain this issue with nullable(of DateTime)...
Posted by Terry at 8/29/2007 11:42:02 AM
I have a generic function I am using to check constraints, an example of which is the following: Public Function ValidateMinValue(Of t As IComparable)(ByVal PropertyName As String, ByVal value As t, ByVal min As t) As Boolean Dim newMessage As String = String.Empty If value.Comp...more >>

Issue's with form's taskbar button
Posted by ljlevend2 at 8/29/2007 8:56:02 AM
I have a case where I need to set my main form's FormBorderStyle property to None and I also can not set the form's Text property (i.e., Form.Text = ""). These requirements are to allow me to implement a custom titlebar and border for the main form and to avoid bugs. But, I have two issues...more >>

HELP! How to generate HTML based on querystring
Posted by Tim Burkart at 8/29/2007 7:51:17 AM
I'm sure this is simple. I'm writing from a classic ASP perspective which is something I know well. I want to select/generate HTML on a page based on the value of a querystring variable. I tried this but got a runtime error: <script runat="server"> sub Page_Load(Sender as object, e as eve...more >>

Catch a user pressing Alt-K
Posted by Phillip Taylor at 8/29/2007 5:40:02 AM
>From a previous post you guys may be aware I'm writing a component which is a text box and icon inside a panel. I want to detect when a user presses Alt+K together so I can throw up a dialog. It's basically identical to how the Alt-K feature works in the To and CC fields of Microsoft Outloo...more >>

Simple DB appliaction - DB
Posted by Andy.I at 8/29/2007 12:00:00 AM
Hi I'm working on a little database application, and mst be cosnidered a newbie. What are the recomended way of making the database? Is it by adding a database file directy in my vb solution, or making a database on my SQL server and connecting to this? If I choose add item from "solution ...more >>

Autocomplete XML comments stopped working in Visual Studio
Posted by Robin Tucker at 8/29/2007 12:00:00 AM
Hi, Previously when I go to the head of an item and type ''', I got an XML comment auto-complete in my source (most useful). Recently its stopped working. Is there some simple setting I need to apply to get it working again? Thanks, Rob. ...more >>

How to change data provider of a dataset?
Posted by Peter at 8/28/2007 9:02:07 PM
I have created some datasets and they are created with oledb data provider. Now, I want to change them to sqlclient. How can I change it? ...more >>

How to replace process file itself?
Posted by yxq at 8/28/2007 8:12:37 PM
Hello, I want to update A program file from A. First startup A, then startup B process from A, close A, B will copy new file to replace A file. But system states that A is using. A code: //////////////////////////////////////////// Dim objProcess As New Process objProcess.StartInfo.File...more >>


DevelopmentNow Blog