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 > december 2004 > threads for friday december 3

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

Shared methods derrived from interface
Posted by Elephant at 12/3/2004 11:36:44 PM
Hello, question, I want to make a COM-compatible .NET DLL (Visual Basic). For this I need an interface. The DLL has a class that must contain methods that can be used without making an instance of the class first. So I have a class that has methods that derrive from an interface, and the sa...more >>

vs 2005 beta or ctp?
Posted by John at 12/3/2004 10:59:02 PM
Hi We are in December now, any news on the vs beta2 or ctp? Thanks Regards ...more >>

App.Config
Posted by Landley at 12/3/2004 10:52:02 PM
Is there a nice way of writing out to app.config file? Landley ...more >>

modify a XML file
Posted by Maileen at 12/3/2004 10:46:31 PM
Hi, I have the following element into my XML file : .... <Test>result is bad </Test> .... I would like to modify the value "result is bad" by another string and to save xml file. I've never done it before. How can i do this, please ? thanks a lot, Maileen...more >>

Possible TRY...CATCH...END TRY
Posted by Nay Myo Aung at 12/3/2004 10:36:16 PM
Hi All! I think I discovered a possible improvement on .NET Framwork's TRY...CATCH...END TRY statement. I guess most developers might also have been discovered that at some point in their .NET development process but continued to ignore the problem due to their workloads. The word is RET...more >>

how to put a scalable image into a form (or panel)
Posted by rnott NO[at]SPAM nospam.ilternet.edu at 12/3/2004 10:03:49 PM
I'm a Java developer relatively new to to VB .NET (and I don't know the old VB6 at all). I know how to draw lines, circles and other simple shapes on a form in VB.NET (using the onPaint event). Could someone out there please give me a simple example, or point me to a SIMPLE example that: ...more >>

how to put a scalable image into a form (or panel)
Posted by rnott NO[at]SPAM nospam.ilternet.edu at 12/3/2004 10:01:35 PM
I'm a Java developer relatively new to to VB .NET (and I don't know the old VB6 at all). I know how to draw lines, circles and other simple shapes on a form in VB.NET (using the onPaint event). Could someone out there please give me a simple example, or point me to a SIMPLE example that: ...more >>

count down multiple textboxes
Posted by Maarten at 12/3/2004 8:46:15 PM
hallow i have the folowing code to add somme textboxes comboboxes and checkboxes Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ControlCount = ControlCount + 1 Dim check As New CheckBox() check.Name = "checkonoff" ch...more >>



VB 6 - VB.Net
Posted by Paul Ilacqua at 12/3/2004 7:25:23 PM
I have spent the last 7 years doing things like this... relatively simple. Now with the move to .NET I'm lost. Can someone give me a headstart on how to do this in vb.net. I appreciate any help I can get I learn the best from having a working model and then expanding on it. Function Inser...more >>

Compilation Error
Posted by Ellis Yu at 12/3/2004 7:16:43 PM
Hi all, When I compile my project, there're errors shown as below. Preparing resources... Updating references... Performing main compilation... vbc : error BC30464: Namespace or type 'Drawing' in the project-level Imports 'System.Drawing' cannot be found. vbc : error BC30464: Name...more >>

Are Tape Devices Natively Supported by .NET?
Posted by Charles Law at 12/3/2004 7:14:33 PM
I am looking for a way to manipulate a tape device from within .NET. I see there is the ManagementClass, which I think others have mentioned before, but it is not clear at the moment whether this allows control of the device. For example, I would like to be able to issue commands to move to a ...more >>

Checking for reference file existance before use
Posted by Jm at 12/3/2004 6:18:00 PM
Hi all Im a bit of a newbie to VB.NET. Under vb6 if i used a class library DLL and it wasnt available i could use the on error resume next to get past the code that calls it and trap it afterwards and display a custom error messageor move on. I was wondering if this is possible in VB.NET, it s...more >>

need help:unable add records with OLEDB
Posted by Chriz Yuen at 12/3/2004 4:15:29 PM
Sub Button1_Click(sender As Object, e As EventArgs) Dim ConnectionString As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & server.mappath("EzySys.mdb") & ";" Dim myConn As New OleDbConnection(ConnectionString) Dim myDataAdapter As New OleDbDataAdapter() dim mySQL = ...more >>

Can anyone translate this form C to VB please
Posted by Tosch at 12/3/2004 4:11:22 PM
Thanks anyone for helping me out in translating this code snippet to VB. typedef unsigned int WORD; typedef unsigned char BYTE; typedef union { WORD w; struct { BYTE lo,hi; } b; } BYTEWORD; WORD ComputeCRC16(char *msg, int len) { BYTEWORD chksum; unsigned char...more >>

Simplest approach to string-based look-up table
Posted by John Dann at 12/3/2004 4:01:12 PM
I'm struggling to think of how best to make a lookup table for strings that's robust to maintain. What I mean is that when my program encounters string1, it can for example easily substitute string2, where string1, string2 belong to a set of pairs of arbitrary string values. I could set up ...more >>

Is it possible to enable/disable scripting in IE programmatically?
Posted by MJB at 12/3/2004 3:33:40 PM
I am using the embedded ActiveX IE WebBrowser component in my C# application. I want to be able to Enable/Disable javascripting programmatically. I was wondering if there was a way to achieve this? I was hoping maybe there was a registery entry I could modify directly. Any help will be a...more >>

Raising event from async thread
Posted by Joe Wright at 12/3/2004 3:11:55 PM
Hello, I have a client/server application that needs to show forms depending on what is received. The problem is that my Client class that handles all of the sending and receiving of data raises it's DataReceived event in the thread that is asyncronously reading the data from the tcpclient. Th...more >>

installer for vb win service?
Posted by Brian Henry at 12/3/2004 2:58:48 PM
Is it possible to create an installer for a windows service i created in VB.NET? I need to install the service and start it up automaticlly. thanks ...more >>

event notification
Posted by Greg Chu at 12/3/2004 2:16:30 PM
Hi, all, I have a timer on one form (A), which is a parent form, use click on one button on form (A) to show form (B). When timer ticks on form (A), I need to notify form (B) that it happened. Do I have a way to do it in vb.net? Thanks! Greg ...more >>

How to do this C# code in VB??
Posted by G Dean Blake at 12/3/2004 2:08:07 PM
This is some C# code out of a book that is part of a server component using Application state. I'm trying to convert it to VB. I can't find the VB equivilent of the Lock. I thought it might be a Mutex but those docs look different. What is the VB equivelent of the Lock code below? Thanks,...more >>

Attributes in a class module
Posted by Chris Dunaway at 12/3/2004 2:05:57 PM
I am using a PropertyGrid with some classes that have custom Type Descriptor attributes. The attributes change how the PropertyGrid displays the properties of the object. The folder structure for my app is this: MainAppFolder | -- Modules | -- Module1 ...more >>

How to convert date to string value?
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 12/3/2004 1:56:26 PM
Hi expert, I have a data field (birthdate) contains a datetime datatype (mm/dd/yyyy), how can I convert to mmdd?? say, the birthday is 8/1/1979 and convert to mmdd DOB = DS.Tables("AcctInfoTble").Rows(3)("BRTHDATE") strResult.Insert(12, DOB.PadLeft(37, " ")) ------------------------...more >>

SQL Reader problem
Posted by Nikolay Petrov at 12/3/2004 1:42:05 PM
Hi, I have the following code. Dim RD As System.Data.SqlClient.SqlDataReader Try 'Try2 OpenConnection() RD = cmdSQL.ExecuteReader While RD.Read = True UserIDSQL = CInt(RD.Item(...more >>

VB and Fingerprint Reader
Posted by James_patageul at 12/3/2004 1:16:14 PM
Hello people, I'm currently dev. a application under VB.NET and i would like to use the microsoft Fingerprint Reader for the login of this app. so i whant stock the information (from the reader) direcly in my own DB if you know a litlle bit about it or if you know a url just reply ;-p thx...more >>

How to get the no of memory bytes allocated to the Array of type String?
Posted by Sakharam Phapale at 12/3/2004 12:40:16 PM
Hi All, How to get the no of memory bytes allocated to the Array of type String? Dim arrDetail(100,10) As String Thanks and Regards Sakharam Phapale ...more >>

Cannot get right value from nested query string
Posted by Leonardo Santos-Macias at 12/3/2004 12:39:34 PM
I would like to query a nested query string go.aspx?redirect=to.aspx?par1=value1&par2=value2 The problem is that inside go.aspx, Request.QueryString("redirect") only gives me to.aspx?par1=value1 instead of to.aspx?par1=value1&par2=value2 Is there any other way to write go.aspx?...more >>

OT:Just how good is Infragistics NetAdvantage?
Posted by Richard Myers at 12/3/2004 12:34:05 PM
Hello, O.k so we're looking to "outsource" all our control development. Off the shelf is simply too easy and comparatively inexpensive to continue to ignore. Infragistics have been on the radar for quite some time. Who out there is using their toolsets for UI in their dotNet apps, and what ar...more >>

Try catch
Posted by Nikolay Petrov at 12/3/2004 11:13:05 AM
Are nested Try/Catch statments allowed? TIA ...more >>

Compiling a project just freezes
Posted by Simon Jefferies at 12/3/2004 10:51:30 AM
Hello, I am having trouble building a visual basic project. It is quite common and can be the first time or after a number of builds where it starts to compile a project and freezes waiting for something. I can stop the build and it responds. I've tried rebuilding and make no difference,...more >>

AppActivate after a Context menu doesn't work?
Posted by Lars Gaarde at 12/3/2004 10:51:01 AM
I need to activate another application, after clicking in a right click menu/context menu in my application. Problem is that the other application doesn't get activated and brought to the front as expected. All it does is flash it's "icon" in the taskbar. I then have to click on the flashin...more >>

A good debug tool.
Posted by James at 12/3/2004 10:17:22 AM
Hoo WinTail v2.11 Hoo WinTail is a real-time file viewing Windows utility like the Unix tail -f utility. It can be used to view the end of a growing file. It is ideal for viewing application traces or server logs in real time, as they are generated. Quickly viewing the last part of a large fil...more >>

Child Form Question?
Posted by DebbieC at 12/3/2004 10:07:10 AM
I have a MDI parent form with a RichTextBox docked on the right hand side. When I open a child form part of it is under the RichTextBox unless I move it over. Is there anyway to set my child forms to display on top of the RichTextBox? ...more >>

Object Reference when adding UserControl
Posted by Shallotx at 12/3/2004 9:59:05 AM
I am building a simple user control - a listview, a couple buttons. I build the solution, drop the control on a form, and all is well. I then go back, modify the Usercontrol, rebuild, and still all is well. However, at some point I get the "Object Refererence not set to an instance..." err...more >>

Interface question
Posted by Chris Dunaway at 12/3/2004 9:54:45 AM
I have created an Interface called IClientModule in a class libarary and have compiled the library to a .dll. In my main app, I scan a folder for .dll's and load each one that implements the interface. For each one that is loaded, it is stored in a collection object which is an instance of a ...more >>

Creating an "output window"
Posted by Progalex at 12/3/2004 9:49:03 AM
Hi everybody! I'm creating a very simple VB .NET application that needs to launch the command line ml.exe compiler. At the moment I'm redirecting ML's output to a text file and then my app reads its content and puts it to a textbox for the results. Is it possible to redirect ML's outp...more >>

VBS
Posted by Dave at 12/3/2004 9:28:18 AM
Is there a way to use put a working VBS script into VB.Net version 2003? I would like to compile it. ...more >>

Double Click DataGrid Cell
Posted by Doug Bell at 12/3/2004 8:58:03 AM
Hi, I have a DataGridbound to a DataView. I have a variable gstOrderNo that is set; After the grid is loaded or on Event - MyGrid_CurrentCellChanged. On Event - MyGrid_DoubleClick I am loading another form that shows the order details. This works fine but I would like to launch the Order D...more >>

Real or single
Posted by Peter at 12/3/2004 8:58:00 AM
Hi, there I'm creating a table for my Access database. Below is my code. I always got a table I wanted no matter if I use "Single" or "Real" data type. strSQL = "CREATE TABLE GeometryValues (" & _ "zNameID SmallInt NOT NULL PRIMARY KEY ," & _ "zValue Single...more >>

Multi-Project solution - how to show form from other project.
Posted by Gary Kahrau at 12/3/2004 8:49:42 AM
If I create a solution that contains (2) projects. ProjMain and Proj2. Each project has a form1. I want to press a button in ProjMain and show form1 of Proj2. How do I do this? Gary... ...more >>

HTML Style Borders
Posted by Turbot at 12/3/2004 8:08:04 AM
Hello, Anyone know how to draw HMTL style borders, such as ridge and groove, on a VB.NET control. I want to be able to draw borders of various styles, colours and sizes on a picture box or similar control. Thanks in advance. Ian Kevan ...more >>

Package a oldb Connection?
Posted by Brian at 12/3/2004 6:55:20 AM
Hello, Is it possible to package a oledb data provider? I need to be able to access an iSeries machine, but the server that the program is being installed on does not have the ibmda400 provider. The easy way would be to install client express, but unfortunatly that can not happen. Any...more >>

make usercontrol appear in component tray
Posted by davermcl NO[at]SPAM hotmail.com at 12/3/2004 6:48:05 AM
hi, I am creating a usercontrol in .net that inherits from the panel control. I want to display it in the component tray -- like the timer control -- and not on the form. thanks, dave...more >>

Is web page access possible?
Posted by Niels Jensen at 12/3/2004 6:31:04 AM
Hi, I've been playing with an idea in my head but don't actually know if it's possible, so I thought I'd post the qustion here and see if anyone knows how? Is it possible to type some text into a textbox then get your app to put this text into a web based textbox, then get the text from t...more >>

MSACCESS export to XML read file into VB .Net dataset
Posted by BobAchgill at 12/3/2004 5:37:49 AM
I am trying to read in a xml file that I exported from my MSAccess table using the following lines of code but it bombs. Is this the right code? Is there a way to get a clean export from Access so the XML file will read in OK into a VB .Net Form dataset? ==========================...more >>

Trying to send mail
Posted by Sachin Gusain at 12/3/2004 5:13:02 AM
Hi, I am trying to send an email with attachments(these attachments are in temporary folder) in ASP.NET using classes defined in System.Web.Mail Namespace. I dont have SMTP service installed on my machine. When I invoke "Send" method of SMTPMail class it throws exception and in "Finally...more >>

Anyone use the "<Description...>" Attribute?
Posted by Larry Woods at 12/3/2004 4:51:43 AM
I am trying to put a description on a Constructor of a class. All doc says to Import System.ComponentModel, which I do. But in order to get "<Description" to be recognized I have to use "System.ComponentModel.Description(..." and, even then, it doesn't display when I reference the class. Fi...more >>

Can VB (6 or .net) talk to perl?
Posted by JS at 12/3/2004 3:53:34 AM
In other words, can I start a function that sends values to a perl script and then get the return values back to VB??...more >>

where is the Key in TreeView.NET?
Posted by Tark Siala at 12/3/2004 1:01:13 AM
hi i working with TreeView in VB6, and have good Properity Named (Key) with the Key i can goto Any Node i know hes Key. but in VB.NET i can find the Key :( please tell me where i can find the key in TreeView.Net... ----------------------------------------------- Best Regards From Tark ...more >>

Adding Tables to DataSet in Component
Posted by cjobes at 12/3/2004 12:01:41 AM
Hi all, I'm trying to create a dataset as a component to make it accessable from all forms. I have used that following code so far in the component designer: Inherits System.ComponentModel.Component Dim _TryDs As dataSet = NewTry Public Property dataSet() As dataSet Get ...more >>


DevelopmentNow Blog