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 2004 > threads for wednesday june 2

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

java
Posted by hopefull at 6/2/2004 11:56:03 PM
any chance of a version of VB that compiles to java byte code? then Sun would have a proper development langauge <g>...more >>


how do I turn off the form designer's automatic handler code deletion?
Posted by Bob at 6/2/2004 11:25:06 PM
Is there a way to turn off the form designer's automatic deletion of "handles <control>.<eventname>" when you delete a control? It's extremely annoying to replace one control with another of the same name, run the project, then realize that none of the events are being handled any more. This fea...more >>

Numeric Textbox - getting warmer
Posted by Keith at 6/2/2004 11:13:34 PM
The following control code - only allows for the entry of numbers, backspace, and decimals (or periods). The problem lies in the last statement - it allows multiple decimals or periods. How would I modify the code to only allow 1 decimal? In other words - once a user entered one period ...more >>

Use of Modules
Posted by SamSpade at 6/2/2004 10:14:04 PM
I've used modules like I did in VB6, but is there any reason. If I have a variable in a module because I want it to be available to all instances could I instead put it the UserControl file and make it shared? Is that the same? ...more >>

Problem with Connection based Transaction in SQL Helper class
Posted by Rahul Anand at 6/2/2004 10:00:24 PM
Getting SQL Exception when trying to implement Connection based Trasaction using SQL Helper class. I am using the follwing function to execute my stored procs: -=-=-=- ExecuteScalar(ByVal transaction As SqlTransaction, _ ByVal spName As String, _ ByVal ParamArray parameterValues() As Ob...more >>

dataset
Posted by Sam at 6/2/2004 9:26:03 PM
I am trying to count the number of rows in a datset called dsBooks I have an access DB named HomeBooks with a table name book I am using this code to count the number of rows in the datase "Dim holdmycoun holdmycount = dsBooks.books.Rows.Count + msgbox (Holdmycount) When I run it, the messag...more >>

Creating a Shared Folder
Posted by Jeff at 6/2/2004 9:21:17 PM
Hi - I understand how to create a directory folder, but how can I programatically create a _shared_ directory folder and set its permissions?? (I'm using VB.NET.) Thanks for your help. - Jeff ...more >>

Color in rich tekst box
Posted by whaletyr at 6/2/2004 9:19:50 PM
I created a rich tekst box in vb I need to write some data into a rich tekst box and I willput a standard line of tekst in there and the variable. but I want the variable in another color. eg red inb stead of black like the standard teksts line How can I do that ...more >>



How to Split a XML file to multiple small XML Files
Posted by kb at 6/2/2004 9:04:14 PM
Hello, I am trying to split a XML file to multiple small xml files in vb.net and am trying to get the best possible approach to this. Any help on this will be great... Sample example on what I am trying to do... Any help on this will help me a lot. Thank you KB Source XML document ------...more >>

multithreading vb.net - how do I tell when a thread is done
Posted by stmthoma NO[at]SPAM gapac.com at 6/2/2004 7:55:27 PM
I have an application that creates mutliple thread like this: My code: > ------------------------------------------------------------------------- > Private Sub StartGPReportServer() > Try > 'Dim some variables........ > While IsRunning > ...more >>

Again API call with structures error
Posted by NewAlias at 6/2/2004 7:47:55 PM
I still can't make APIs with structures to work at first time in VB .NET This is a required function to be called prior to use ScriptStringOut to display unicode complex scripts The famigerate message shows for the signaled line: :: An unhandled exception of type 'System.NullReferenceExceptio...more >>

How can I get a listview to auto scroll down to the last item entered (n/t)
Posted by Jay at 6/2/2004 7:31:14 PM
n/t ...more >>

How do i programatically tab to the next field?
Posted by Dan Keeley at 6/2/2004 5:52:07 PM
Hi, I want to make the enter key in certain fields do the same as the tab key I've caught the KeyPress event for the enter key, however I cannot find the function to call in order to tab to the next field?? I just want to do a generic event handler, so if i need to specify a tab number ca...more >>

Layout Designer Suggestions
Posted by jcrouse at 6/2/2004 5:51:04 PM
I have written an application. It that has a background image on the main form. There are also about 25 label controls (maybe text boxes depending on your recommendations). The location of the label controls needs to be repositionable by the user. He also needs to be able to choose a font, font size...more >>

Multiline Listbox?
Posted by Max at 6/2/2004 5:29:51 PM
I need some control that basically acts as a listbox, but allows each item to take up more then one line. I've tried adding a new item and putting in a vbCrLf in there, but that just comes out as a box on the same line. Is there some way of making the listbox show multiple lines for each ite...more >>

Oracle Client, stored procedures and Cursor release.
Posted by bclegg at 6/2/2004 4:58:39 PM
Hi, Does anybody know if it possible to force Oracle to release cursors that have been generated when servicing a vb.net stored procedure call? ie My app makes a call that populates a field in a datagrid row This means the number of calls depends on the amount data in the grid. The cursors a...more >>

Access Conversion
Posted by Richard at 6/2/2004 4:29:18 PM
I am going to be converting an Access project to .NET The existing Access project is fairly complex, having numerous forms. It is tied to a SQL Database. Multiple users have access to the front end via a Terminal Services connection. I'm wondering if going with ASP.NET is the way to go, as...more >>

Suspend and resume layout
Posted by Brian Henry at 6/2/2004 4:20:52 PM
Hi, What exactly does suspend and resume layout do? the MSDN docs say "Resumes normal layout logic." but what does that mean? what is normal layout logci? and what does it change by doing this before adding a control to a form or panel? thanks ...more >>

listview problem
Posted by amber at 6/2/2004 4:01:07 PM
I have a listview (lstvwAmend) (containing 2 columns) that is populated by a filtered dataview (dvRPA) that is based on a dataset (dsRPAmend1) pulling data from a SQL Server database This dataview will contain 0-10 records. The dataview is displaying field 1 & field 2 from my dataview When a user...more >>

Java calling Office API via VBA.NET ?
Posted by Oleg Konovalov at 6/2/2004 3:21:03 PM
Hi I am writing a Java application which among many other thing has to call some MS Office [PowerPoint] internal methods, which only seems to be possible from either VBA or C# Can anybody suggest a way of Java calling VBA or C# I do know how to call an executable from Java or Java interfac...more >>

Installing and running on another machine
Posted by Richard Boehme at 6/2/2004 3:21:01 PM
I have a small VB.NET application that uses the .NET framework 1.1. I have .NET 1.1 installled on another machine, yet my application crashes when it starts saying that it has thrown an exception. I'm including a DLL that I wrote with it and the DLL registers properly and has the apppproprite DLLs f...more >>

What do People do to avoid Tight Coupling?
Posted by Charles Law at 6/2/2004 2:43:47 PM
Take a solution with a project hierarchy along the lines of an n-tier system, so that we have a data layer, business layer and presentation layer. The presentation layer is coupled to the business layer, and the business layer is coupled to the data layer. So far so good. Suppose the data laye...more >>

How to use the "SendMessage" function?
Posted by phx at 6/2/2004 2:43:10 PM
In order to use "sendMessage" of "findwindowex" functions , think "user32.lib" must be declared. but In vb.net , i can only reference .dll 's. how am i going to user these functions , or similer functions in .net? ...more >>

MessageBox Question
Posted by MadCrazyNewbie at 6/2/2004 1:35:37 PM
Hey Group, Sorry to be a pain again but i have the following code: If MessageBox.Show("Are Your Sure You Want To Send This Email?", "Are Your Sure You Want To Send This Email?", MessageBoxButtons.OKCancel) Then Try SmtpMail.SmtpServer = txtSMTP.Text Dim Message As MailM...more >>

Primary Key
Posted by Richard at 6/2/2004 1:34:37 PM
Hi I'm trying to create a relationship between two datatables in a dataset but I think I need to set the primary key first. Can anyone tell me how to set the primary key on a datatable as all I can find in the help is how to create a primary key on an XML file. Thanks Richard ...more >>

How do I access and ASP page via VB.net
Posted by Whitecrest at 6/2/2004 1:27:46 PM
I have a stand alone VB.net application that (after pressing a button) I would like the VB.net application to call an ASP page, passing information to it in the query string. www.somesite.com/registration.asp?id=1234 The ASP will enter the information in a database and return a "key" to ...more >>

Question about visual inheritance
Posted by Bart Schelkens at 6/2/2004 1:04:01 PM
Hi, i've created a base-form from which all the forms in my application need to inherit. This works just fine. I've put some buttons on my base-form. They are displayed correctly, only if my inheriting form is bigger than my base-form, the buttons stay at the position where i've put them o...more >>

So simple
Posted by MadCrazyNewbie at 6/2/2004 12:57:37 PM
Hey Group, Sorry to ask such a simple quwation but how do i close a form which has been called from another. E.G:- form1 uses: Dim LoadModifyTablesArcirs As frmModifyArcirisRoles LoadModifyTablesArcirs = New frmModifyArcirisRoles() LoadModifyTablesArcirs.ShowDialog() How do I then clo...more >>

other ways to use/open a Database Connection?
Posted by DraguVaso at 6/2/2004 12:49:42 PM
Hi, In a VB.NET-application I use this to open a Database Connection: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strConn As String strConn = "Server=BESQL1;DataBase=VocalcomCetelem;User ID=vocalcomcete...more >>

How to display comments for each enum entry?
Posted by NewAlias at 6/2/2004 12:38:49 PM
How to display comments for each enum entry? 'Enum example with commnents commented Private Enum MyEnum YourName =1 ' Set this to get your real name YourAge=2 ' Set this to get your real age YourNationality=3 ' Set this to retrieve your real nationality End Enum 'Program extrac...more >>

ADO / SQLDataAdapter Quick Question
Posted by Doug at 6/2/2004 12:13:37 PM
Hi, I have a quick question - I have a table where the primary key is an autogenerated GUID via SQL Server 2k. The table has just 2 fields, the PK and the ChangeDate. When I do an insert into the table w/ the date, the PK is generated, but I need to have that PK value returned to the a...more >>

Implicit conversion from System.Object Array
Posted by Petro at 6/2/2004 11:46:02 AM
Good morning The following code generates the exception: "Option Strict On disallows implicit conversion from System.Array to 1-dimensional array of 'String'. I've been unable to find the conversion command that works. If any of you fine folks could point me in the right direction it would be ...more >>

AppSettings
Posted by lobrys at 6/2/2004 11:24:35 AM
Hi the question is simple: How to delete the appsettings section in memory in order to re-use the configuration file????? I know that for the first access in the appSettings, .NET build in memory un readonly Key - Value collection. I just want to delete this collection... and rebuild it in...more >>

Coolbar in VB.Net?
Posted by Grahammer at 6/2/2004 11:18:32 AM
Is it possible to use a Coolbar in VB.Net? I've added the control to my toolbox, and onto my form, but I can't put a Picturebox or Panel into the Coolbar. The Coolbar requires some kind of container in each band. I'm assuming that this is because the Coolbar is an old ActiveX control and th...more >>

Multithreading vb.net -- Threads seem to step on each other
Posted by stmthoma NO[at]SPAM gapac.com at 6/2/2004 10:38:41 AM
I am trying to write a windows service application to create reports. This program reads from a MSSQL database where the report request are placed. When it finds a new request a new thread is created and a sub is called to run the report and save the snp file out of access. If I slow the code...more >>

MDI Forms
Posted by Adriano at 6/2/2004 10:26:32 AM
hello, what is the property or event to check if the child form is alredy open? I just want to avoid opening a child form inside the parent form twice. thanks in advance ...more >>

How MDI form resize with it's Parent form?
Posted by solex at 6/2/2004 9:53:13 AM

Ilist
Posted by Wally at 6/2/2004 9:52:07 AM
I'm using IList interface to browse ITEMS (of listbox and combobox), TABPAGES (of tabcontrol) and so on. My problem is that TABPAGES have property ToolTipText (ITEMS haven't), how can I manage this property using IList interface? Thanks. ...more >>

Process excel files, suppress alerts
Posted by mwazir at 6/2/2004 9:43:12 AM
Dear all, I have a .NET app that processes some excel file and it was working in all scenarios. Recently however we received excel files from a new client which my application has been unable to process. The problem is that this file has external links and when you open the excel file, it p...more >>

MSMQ - confused about COM - Invoke COM component (trigger rule)
Posted by Leo Muller at 6/2/2004 8:49:52 AM
Okay, I got confused here. In order to get the messages out the MSMQ 3, on windows 2003, I need to invoke a COM component (ProgID). However, if I compile a class of .NET, and get a DLL, is this considered a COM component? If this is the case, should I register it? (against all .NET logic?). ...more >>

msflexgrid
Posted by Doug at 6/2/2004 7:01:02 AM
How do you make a column invisible. I see that there is the option .get_ColIsVisible, so I assume there is a way to set it invisible Thanks for the help...more >>

newbie combo box question
Posted by larrymacii NO[at]SPAM msn.com at 6/2/2004 6:30:21 AM
I've got what I'm sure is an easy combo box question (I'm running ..Net, by the way). I'm trying to create a combo box that will select and input the matching list entry as the user types. I've done it with a text box and a list box, but it doesn't seem to work in a combo box. What am I missi...more >>

Managing files by Create time/date
Posted by Bob Achgill at 6/2/2004 4:51:03 AM
I would like to use the timestamp on files to manage the currency of support files for my VB windows application. In this case I would only put the timestamp of the file in the management database and not the file itself. To do this I will need to have a File class property for Create ti...more >>

datagrid and combo boxes
Posted by rut at 6/2/2004 4:36:04 AM
I have a need to put a combobox in one column of a datagrid. My problem is that I need to be able to have different datasources for each row of comboboxes. Is there anyway to do this Thanks Rut...more >>

What's the difference between Application.Exit() and End
Posted by oktave NO[at]SPAM tpts5.seed.net-dot-tw.no-spam.invalid at 6/2/2004 4:23:30 AM
Hi, Anybody would like to tell me ther defference between Application.Exit() and [b:9a317afd33]End[/b:9a317afd33]? I can use [b:9a317afd33]End[/b:9a317afd33] to end my application no matter how many forms and codes after the [b:9a317afd33]End[/b:9a317afd33] statement. But since I change the ...more >>

Send to CD
Posted by Luis at 6/2/2004 2:21:02 AM
Hi How can I 'send' a file to the cd recorder Like the 'send to CD' under windows Best Regards Luis...more >>

(Expert question) How to make this thread-safe?
Posted by BoloBaby at 6/2/2004 1:40:01 AM
All, I believe I am having a threading problem. Class "BELights" is part of a larger DLL that is used by my main application. A user control (of type BESeat) within the main application raises an event and attempts to execute the "StartTiming" method of BELights. The method does not execute...more >>

How to set a form's text in the taskbar
Posted by oktave NO[at]SPAM tpts5.seed.net-dot-tw.no-spam.invalid at 6/2/2004 1:20:42 AM
Hi, Every form showed on the Windows also show in the task bar while it's showontaskbar property set to true. And the text show on the taskbar is the same as the form's [b:2eddeaf7b2]text[/b:2eddeaf7b2] property. Can I set the taskbar's text of a form differ from it's [b:2eddeaf7b2]text...more >>

GetLayeredWindowAttributes
Posted by Doominato at 6/2/2004 1:20:39 AM
good day, can anyone please give me some insight as to how I can get the current amount of alpha of some window using the GetLayeredWindowAttributes function. I know how to declare it in VB.NET: Public Declare Function GetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Integer, ByVal co...more >>

Restarting Threads
Posted by Max at 6/2/2004 12:46:09 AM
I have a small program which has a separate thread for the user interface. Actually the interface is just used as an output for the status of objects within the program. Anyway, this is basically the whole new thread: Private Sub Start() ConsoleGUI.ShowDialog() End Sub When...more >>

How to end an app from its dlls
Posted by Li Pang at 6/2/2004 12:31:01 AM
Hi app.exe used several dlls. I want to know how to end app from its dlls. What is the equivalence of END in VB6 thank ...more >>


DevelopmentNow Blog