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 > may 2005 > threads for thursday may 19

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

Improve the Alog (Datatable & SP)
Posted by Agnes at 5/19/2005 10:46:18 PM
I had a temp table, I need to pass each invno to a SP to process an update command . Now, My client complaint the following process is too slow and take many times. I really got no idea to improve it. Can SP recieve a temp table ? or receive a arraylist to process ??? Thanks D...more >>

Class Builder
Posted by Rlrcstr at 5/19/2005 7:52:43 PM
Is there a class builder in VS 2003? I see stuff all over about a builder in 2005, but nothing on 2003. Thanks. ...more >>

Different header and text alignment in form datagrid
Posted by Simon Abolnar at 5/19/2005 7:42:31 PM
Is it possible to align headers and text in different way. Because with: dgts.GridColumnStyles(0).Alignment = HorizontalAlignment.Center alignment is set for all column (header and text). Thanks for help! Simon ...more >>

Using LIB files with VB.net
Posted by Sameh Ahmed at 5/19/2005 7:35:28 PM
Hello there Is there a way to use lib files as com objects? I have an SDK of an API used to communicate with an EMC storage box that contains only LIB, DLL, and C files. Is there way to use these files in Vb.net? Thanks in advance. Regards ...more >>

Detect .Net Framework Security ?
Posted by Jm at 5/19/2005 5:50:47 PM
Hello all Is there a way that i can detect what security level has been set for the local intranet for the .NET framework ? Or is it possible to set it during the installation of the framework ? Any help is greatly appreciated Thanks ...more >>

Save as.. or copying and pasting project/solution
Posted by Bob Smith at 5/19/2005 5:36:22 PM
I'm using VB.NET 2003 to extend the functionality of an application (Cadcorp GIS) and have a solution with a single project, a user control and a constants file added from the application. The code merely connects to the application and so is required for every customisation I produce for the a...more >>

printing column values for only first of two rows....
Posted by hazz at 5/19/2005 3:45:01 PM
The datareader below contains two rows of two columns but in the for loop, the values for only the first row are getting printed twice. How do I get to the values of the second row? Thanks. -hazz Dim dTable As DataTable Dim dsBlock As New DataSet Dim rowBlock As DataRow Dim myColumn ...more >>

How to determine implemented interface
Posted by Tosch at 5/19/2005 3:44:45 PM
I have written an interface, let's call it AddinInterface1. At some stage I had to add more properties to the interface. So I wrote a new interface, AddinInterface2 which inherits AddinInterface1. My application tries to load DLLs which implement AddinInterface1. If I have a DLL which implement...more >>



Create file client side with VB.NET and ASP.NET
Posted by Russ Green at 5/19/2005 3:32:47 PM
I need help writing a method to create a simple text file. I want that file to be saved to a local drive (client side of my asp.net app). The filename will always be the same "license.txt" but the content will be different for each user. I don't really want to create the file on my server and the...more >>

If/EndIf and Select Case different outcomes.
Posted by Bob Day at 5/19/2005 3:21:07 PM
Why do the if/then and Select Case statements below results in different outcomes? Bob Day Dim Test_Object As Object = 0 If Not (Test_Object Is Nothing) Then ' this considers Test_Object <> Nothing Stop End If Select Case Test_Object Case Is <> Nothing ...more >>

convert columns to rows and rows to columns
Posted by helpful sql at 5/19/2005 2:04:53 PM
Hi all, I am using an HTML table control on my ASP.Net page. Now I need to change this table so that columns become rows and rows become column. Since the table is very complex with many controls in them, I am wondering if there is any way to do this in visual studio 2003 or using any other ...more >>

Formatting single row on DataGrid - Webform
Posted by Gary Paris at 5/19/2005 1:49:22 PM
I have a datagrid on my web form and I have populated it with the following code: Dim strConn As String Dim strSQL As String strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Test\MyDatabase.MDB;" strSQL = "Select client, newstarttime, newendtime, ccode f...more >>

Newbie: Trigger event on form's *complete* visibility
Posted by steve at 5/19/2005 1:41:08 PM
Hi, I have the following very annoying problem: Form1 gets user's choices to construct an SQL string and when Button Extract gets hit a new form, Form2, is supposed to open with the results of the querry. Now, I overloaded the New() of Form2 so that i can pass the SQL string generated b...more >>

Controls Newsgroup
Posted by Rlrcstr at 5/19/2005 1:22:21 PM
Did something evil happen to the controls newsgroup? There haven't been any posts since yesterday. I tried resetting the dbx and still get the same result. I suppose it's possible that there's just no activity, but it seems unusual. Just wondering. Thanks. Jerry ...more >>

.NET security exception when running from the server...........
Posted by Robin Tucker at 5/19/2005 12:55:31 PM
Hi, I recently wrote a really simple key generator for our software. It is designed so that it is only capable of being run from a given server, by checking an encrypted MAC address and other noddy stuff. When I run the software by double clicking it in the server folder, I get security...more >>

Case-sensitive imports conflict
Posted by Ross Presser at 5/19/2005 12:39:34 PM
Background: I am trying to make use of the pdfbox library (www.pdfbox.com), which is a java-based project that the user has ported to dotnet using the ikvm environment (www.ikvm.net). IKVM in turn relies on a port of the GNU Classpath library, which implements much of the standard java 1.4. ...more >>

Unique ID of an email? or how to identify them?
Posted by DraguVaso at 5/19/2005 11:28:01 AM
Hi, I once saw a fax-application that puts faxes as email in a pst-file, sends the ID of that email to a user, and than an application opens that specific email/fax on the screen of the user. I also would like to be able for my application to identify emails uniquely: where should I find th...more >>

Problem With Assembly.Load
Posted by Ram at 5/19/2005 11:25:07 AM
Hey, I have a windows application that uses Assembly.Load to get information on certain Assemblies. But the problem is, that after the Load, even after I clean the object (set it to null), I cant access (physically) the assembly I loaded - I keep getting: "The Process Cannot Access The File B...more >>

Need help understanding the Cursor
Posted by Alex at 5/19/2005 10:39:49 AM
In the code below, clicking on the button ButtonChangeCursor changes the form's cursor to a WaitCursor. Clicking the button ButtonRestoreCursor changes the form's cursor back to its original cursor. For the reasons I explain below I wouldn't expect this code to behave as it does, so why does it...more >>

Casting Help Needed
Posted by Brian at 5/19/2005 10:31:21 AM
Hello! What is the proper syntax for casting? For example, how do I change an Integer in to a String if the variable is called Joe1 and has 20 assigned to it. Thanks, Brian ...more >>

Web Forms
Posted by Richard Harris at 5/19/2005 10:16:06 AM
Hi I'm trying to create my first vb.net web forms but have run into a problem. When I do build and browse to view the form, static items such as labels and text fields are shown, but the web form buttons that I've added to my form are not shown. I'm running IIS 5.1 on a Win XP Pro machin...more >>

getting a list of running applications
Posted by Kevin at 5/19/2005 10:04:39 AM
how can I get a list of applications running on the system (the list that appears in the applications tab of the task manager) and set one of them active? I am trying to have my app find other running apps and switch focus to one of them thanks kevin...more >>

Patching (update) my app
Posted by Viktor Zadro at 5/19/2005 9:10:03 AM
How create patch (update with new version) for my dotNET app? ...more >>

Parent and Child for a Treeview.
Posted by amruta at 5/19/2005 9:00:19 AM
the code below dows not let me get the parent child view... all the nodes are show in one line only... also i need them to be collasped ... Thanks .. Private Sub GetTree() Dim objNode As TreeNode Dim i, j As Integer TreeView1.ImageList = ImageList1 ...more >>

Removing failed Install artifacts
Posted by BobAchgill at 5/19/2005 8:56:59 AM
I had a setup install fail on me for some reason which is not clear. I had to kill the install because it got stuck... I killed it using Windows Task Manager. So now I can not make another setup install file that will run because the system thinks there is already a install in process. ...more >>

DateDiff rounds?
Posted by Brian Henry at 5/19/2005 8:45:19 AM
I am trying to find someones age within 2 months of their birthday on the given date for the run of the application Dim d_runOn As DateTime = #4/4/2005# Dim d_bday As DateTime = #6/26/1986# Console.WriteLine(String.Format("Ran on {0}, birthdate {1}", d_runOn.ToShortDateString, d_bday.To...more >>

Compare Timespan Values
Posted by Russ Green at 5/19/2005 8:09:16 AM
How does this: public TimeSpan Timeout { get { return timeout; } set { timeout = value; if(timeout < licenseTimeout) licenseTimeout = timeout; } } private TimeSpan timeout = TimeSpan.FromMinutes(10); Convert to VB.NET when in VB.NET Opertor '<' is not defined for types...more >>

change tabpages order
Posted by Sam at 5/19/2005 7:28:02 AM
Hi, How can I change the order of my tabpages in my tab control ? Can't figure out how to do that programmatically ? Thx ...more >>

DataGrid / DataSet Issue
Posted by youngster94 NO[at]SPAM hotmail.com at 5/19/2005 7:12:41 AM
Hi all, I'm having a little trouble with some code Im writing and Im thinking there has to be an easy fix. What Ive done is fill a dataset via 3 odbcdataadapters. The dataset is also the datasourse for a datagrid. When I run the program, the datagrid is nothing more than an empty box with a...more >>

change tabpages order
Posted by Sam at 5/19/2005 6:55:45 AM
Hi, How can I change the order of my tabpages in my tab control ? Can't figure out how to do that programmatically ? Thx ...more >>

Overloaded methods
Posted by pmcguire at 5/19/2005 6:05:20 AM
A little embarrassing but, Public Sub MySub(ByVal row as MyTable1Row) .... End Sub Public Sub MySub(ByVal row as MyTable2Row) .... End Sub How do I get the following to work without the Select...Case block and the Ctypes? Public Sub DoSomething(ByVal row as Datarow) Select Cas...more >>

How to hide a console window?
Posted by Terry Olsen at 5/19/2005 5:43:46 AM
I would like to hide a console window on startup so that the user can't close it. is this possible? If so, how would I also show it when I want to view it? *** Sent via Developersdex http://www.developersdex.com ***...more >>

Extract path from path & filename
Posted by Paul at 5/19/2005 5:14:44 AM
Hi, Using the code below I can extract the filename from a path but I would like to know how to get just the path too. So if the full path is "C:\A Long Time Ago\In A Galaxy\Far Far Away\SomeFilename.txt" The filename is: SomeFilename.txt The path only is: C:\A Long Time Ago\In A Galaxy\Fa...more >>

To Start the MSDE Service
Posted by Solution Seeker at 5/19/2005 5:07:29 AM
Hi, we are using MSDE as our Database Now we have a Validation to check the MSDE availability If Database Connectivity fails, I need to check the MSDE availability If MSDE is not available(i.e., Service is stopped), then i have to Start the Service thro' VB.Net Code I need a Solutio...more >>

Button1_Click Change image in PictureBox1
Posted by NeverwaY at 5/19/2005 3:36:10 AM
How can i make a button click change an image in a picture box? I basically have an image in my main Form, i want it to change when a button is clicked. -- <XML> <BEGIN:: DCSE-TRAINING> <END:: DCSE-TRAINING> <BEGIN:: GOOD-CAREER> <BEGIN:: GOOD-CAREER> <I SAID BEGIN:: GOOD-CAREER> <B...more >>

getchanges returns nothing
Posted by Sam at 5/19/2005 3:02:31 AM
Hi, Here is my code : For Each row As DataRow In m_dsTabs.Tables(0).Rows If CInt(row("TabId")) = DirectCast(tabQryTabs.SelectedTab, QueryTabPage).TabId Then m_dsTabs.Tables(0).Rows.Remove(row) Exit For End If Next m_dsTabs.AcceptChanges() m_dsTabs.GetChanges(Dat...more >>

How do I Implements Parent class Interface in child class
Posted by owais at 5/19/2005 12:23:28 AM
Hi, I have a problem, I want to implements Parent class interface methods in child class. for e.g -------------- Test1.vb ---------------- Imports System Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Globalization Public Class Test1 Inherits RadioBu...more >>

NEWBIE- connection objects
Posted by Lawrence J. Rizzo at 5/19/2005 12:19:51 AM
Hello, A couple easy questions...any help is greatly appreciated! 1) I am writing an application that will have a login form. I have defined the connection and get it all to validate against a USER table in my database. I then load an MDI form. My question is do I need new connection ...more >>


DevelopmentNow Blog