Home All Groups Group Topic Archive Search About

Visual Basic .NET

microsoft.public.dotnet.languages.vb
Score Stored Procedure and SQLCommand
fniles - 6 Jan 2007 4:19 PM - 10 messages
I am using VB.NET 2003 and SQL2000 database. I have a stored procedure called "INSERT_INTO_MYTABLE" that accepts 1 parameter (varchar(10)) and returns the identity column value from that table. When calling the stored procedure from VB.NET, in the CommandText, can I ...
Score ArrayList in Thread question
fniles - 6 Jan 2007 4:13 PM - 8 messages
I am using VB.NET 2003 and a socket control to receive and sending data to clients. As I receive data in 1 thread, I put it into an arraylist, and then I remove the data from arraylist and send it to the client. ...
Score Output quote...how to proceed...your thoughts???
jmar - 6 Jan 2007 4:03 PM - 2 messages
I posted on this topic a while back and received some good responses. However, I have better insight into what I'm looking to do so I am tapping the wealth of experience here again hoping to find a general ...
Score Re: DAO vs ADO
mg - 6 Jan 2007 1:25 PM - 2 messages
OK peeps, hands up who really cares?  It's much more interesting watching aaron.kempf trying to be relevant!  Keep trying, PHP guy! ...
Score The trouble with my code ?
Just Me - 6 Jan 2007 8:44 AM - 7 messages
Any ideas on this. I am trying to loop through an xml document to remove attributes, but Im having so much trouble, any help is appreciated //THIS IS THE EXCEPTION ( SEE CODE LINE WHERE FAILURE OCCURS '//Unexpected XML declaration. The XML declaration must be the first node in ...
Score Object reference error in UserControl's Load event
Nathan Sokalski - 6 Jan 2007 7:28 AM - 2 messages
I have a UserControl that I declare programmatically as follows: Dim userctrl as New rightside_portal() The codebehind file for this UserControl looks like the following: Partial Public Class rightside_portal : Inherits System.Web.UI.UserControl Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) ...
Score play video
John Piper - 6 Jan 2007 5:29 AM - 4 messages
Again, I am a beginer, and need help. Can some walk me through the steps to do the following: click a button, which will play a video file in WMP in fullscreen mode (launch player, not in a form) then when the video is done playing, I want the player to close, then the ...
Score SMTP Relay/Server in VB2005
Jerry Spence1 - 6 Jan 2007 4:40 AM - 6 messages
I am trying, without much luck, to find help in implementing an SMTP server/relay program from VB2005. My company produces software to go on customer's PCs. I am trying to implement email fault reporting back to our support centre, but cannot ...
Score How to avoid exception breakpoint inside my reference assembly ?
Bruce - 6 Jan 2007 3:41 AM - 7 messages
I have a reference assembly that I wrote.  The assembly can throw exceptions.  I am handling these exceptions but, when running my code from VB, VB still insists on setting a breakpoint where the exception is being thrown inside the assembly. ...
Score Default Value of Nothing for Property of type System.Drawing.Image
Eric - 6 Jan 2007 2:26 AM - 10 messages
Hi Everyone, I'm writing a UserControl that exposes a property of the type System.Drawing.Image, like this: Public Property DefaultImage() As Image     Get         Return propDefaultImage     End Get ...
Score best design for parse
gs - 6 Jan 2007 1:36 AM - 30 messages
let say I have to deal with various date format and I am give format string from one of the following dd/mm/yyyy mm/dd/yyyy dd/mmm/yyyy mmm/dd/yyyy dd/mm/yy mm/dd/yy dd/mmm/yy ...
Score Why is this file.copy not working
Saabster - 6 Jan 2007 1:08 AM - 6 messages
Hi all, It's always the simple stuff that trips you up I guess. Here is the issue I'm dealing with. I have a folder with 1400 excel files that I need to move to another location. Since each file has to go in to a particular target folder I ...
Score How to access the NT Name Cache?
Michael M. - 5 Jan 2007 11:36 PM - 10 messages
Hi all, I would like to know how to access the NT/2000/XP/2003 Name cache; what I mean by this is: Open a Command Prompt and.., C:\> C:\>IPCONFIG    /DISPLAYDNS You will see a bunch of cached name records for pretty much all of the ...
Score when to use stringBuilder vs string concatenation?
Rich - 5 Jan 2007 10:12 PM - 15 messages
Hello, I need to build some query strings based on selections on a form some like this: Private Sub buildQueryString()    strSql += "Select ...Where fld1 = '" & txt1 & "' And fld2 = '" & txt2 & "'..."    If something Then strSql += " Union All " ...
Score Pass Generic::List in C++ Library to vb.net
Nip - 5 Jan 2007 8:17 PM - 3 messages
Hi I want to access the Generic List of the following c++-class inside a vb.net app. Is this possible/how can I do that? Atm, I get the following error in the vb.net app:  "Field 'GeoElems' is of ...
Score Disable an Item in a Combobox
Michael - 5 Jan 2007 7:01 PM - 2 messages
Hi All, I was wondering if there is a way to disable an item in a Combobox without removing it from the list. I know I can just remove an item if I want, but I would like to have the item stay in the list, but not selectable. If there ...
Score Need to read data from HTML table into an array
ducky801 - 5 Jan 2007 7:00 PM - 2 messages
Using VB 2005 express: I am using the webbrowser control to manipulate a website.  i need to get the contents of a named table off of one of the pages and put into an array.  how can i do this?  i have been tinkering with the ...
Score Error reading key file '..\..\..\OurKey.snk' -- The system cannot find the file specified
Ben - 5 Jan 2007 5:36 PM - 3 messages
Hi We have setup a Strong Name for our Applications, but are having problems with the essembly throwing an error: Error creating assembly manifest: Error reading key file '..\..\..\OurKey.snk' -- The system cannot find the file specified. <Assembly: AssemblyKeyFile("..\..\OurKey.snk")> ...
Score Make Context Menu @ Runtime HELP!
Brandon Johnson - 5 Jan 2007 5:32 PM - 2 messages
I can make a single column context menu easy enough in runtime but the problem that im having is that im having a hard time finding a place to learn how to make submenus. If anyone could help that would be very ...
Score How to Loop My.Settings
igor - 5 Jan 2007 5:15 PM - 2 messages
Does anyone know how to loop through the My.Settings items in VS2005? ...
Score checkbox = -1
Dwight - 5 Jan 2007 5:12 PM - 17 messages
If a windows form checkbox control is checked, shouldn't the following equal 1 instead of -1 ? DIM  Acndt_ind  as integer Acndt_ind = CInt(chbAcndt_Ind.Checked) Thanks ...
Score ODBC
marcmc - 5 Jan 2007 5:12 PM - 6 messages
Hey, What do people/gurus think of ODBC connections to databases? The beauty of .net is it allows the database to only be connected to for the length of time you need it. This is great for classes like SQLClient and ...
Score Hashtable, retrieve first entry in case of duplicate key
christophe.leroquais - 5 Jan 2007 4:15 PM - 3 messages
Hi, I have a HashTable that can have the same keys. For example: Key:     myKey1, myKey2, myKey3, myKey1 Value:  "value1" , "value2" , "value3", "value4" That's ok and I'm happy with that. My issue is that when I want to retrieve the entries one by one, I want ...
Score spawning/launching a stored procedure as a seperate process? fork?, thread?
jobs - 5 Jan 2007 4:14 PM - 4 messages
Im writing an SSIS script task using VB.NET. I'd like to be able to initiate an oracle stored procedure call for a process that will run for 8 hours, but I don't want my process to wait for it finish. In ...
Score Open text file from the from the end backwards
Stupid48 - 5 Jan 2007 3:59 PM - 5 messages
I'm trying to do a simple task but can't seem to find a solution.  How do I read lines from a text file backwards. i.e. I want to select the last 20 lines of a text file and display them ...
Score string to double problem
sachin - 5 Jan 2007 3:55 PM - 2 messages
hi everyone ....... could u please help me out of this........... i have a string with value........ dim str as string="789456123078945612307894561230" now i need to take the modulos of this number...... dim dbl as double = cdbl(str) mod 256 i get a value of zero....... ...
Score Thread.Sleep question
fniles - 5 Jan 2007 3:05 PM - 2 messages
I am using VB.NET 2003 and a socket control. As I get quotes, I add the quote to the arraylist, and I send the quotes to my clients by removing the message from the arraylist and send it to the client using the socket. ...
Score 2 selected Radio buttons in a Group
lakepeir - 5 Jan 2007 2:57 PM - 3 messages
Hello, I have 4 radio buttons in a groupbox on a form.  When I run the application, I would like to only select one radio button, but I can select one radio button from the first three radion buttons and the ...
Score Supporting multiple database'
TClancey - 5 Jan 2007 2:45 PM - 5 messages
Hi all. I have an app that needs to connect to either - an Access database, MySql database or MsSql database.  It will be the end users decision which they want to use. I've done a lot of work with Access in the past, and a good deal with MySql ...
Score StringBuilder.Replace Problem
Peter Gast - 5 Jan 2007 12:38 PM - 4 messages
Wieso wird beim folgenden Code nicht das Ergebnis ...drei Schwe... geliefert? Startindex 5 statt 6 ändert auch nichts am Ergebnis. Dim sb As New System.Text.StringBuilder("habe zwei Schweine und zwei Hühner") sb.Replace("zwei", "drei", 6, 1) ...
Score Wireless Networks - Is this even possible?
justsome_newbie - 5 Jan 2007 12:34 PM - 11 messages
I'm wanting to create a simple program for my computer at home. I would like to keep my wireless network disabled and then only enable it when a certain program starts (internet explorer or firefox), and then disable the network when the program closes. Trapping when ie or ...
Score combobox set seletectedindex at design time
Rick - 5 Jan 2007 11:20 AM - 3 messages
I have a combobox on a WinForm with DropDownStyle = DropDownList. I don't see any way to set the SelectedIndex of this control at design time. Do I have to do this in code on Form load? Rick ...
Score Using tlbimp.exe without .NET framework
AA - 5 Jan 2007 11:12 AM - 3 messages
Hi, I would like to use the type library import exe tlbimp.exe without actually having the .NET framework setup on the machine. Is there any way, like installing some minimal dlls, so that I can use tlbimp? Currently, when I run the tlbimp.exe, I get an error saying " To run ...
Score print dialog
James Wong - 5 Jan 2007 10:27 AM - 2 messages
Hi, I use framework 2.0, and the print document to control the printer. When the program is printing, it will popup a print dialog to show the number of  printing page. Is it the printer driver's problem? framework's problem? xp's problem? ...
Score Print problem
James Wong - 5 Jan 2007 10:23 AM - 2 messages
Hi, I use the print document to control the printer. When the program is printing, it will popup a print dialog to show the number of  printing page. Can I invisible it? ...
Score Develop update
Silviall - 5 Jan 2007 9:00 AM - 2 messages
Hello, I've developed a program, this is installed in a lot of client computers. I would like to know, how can I do an update of the program. Can I develop a ..msi and install with the active directory? ...
Score Try Catch
Morten Snedker - 5 Jan 2007 8:28 AM - 6 messages
The use of Try in the Finally part - is that overkill?. I think of the code failing before opening sqlCon - that would generate an error in the Finally part. How would Finally handle that? Try             Dim cmd As New SqlCommand ...
Score Assembly Version
James Wong - 5 Jan 2007 8:25 AM - 6 messages
Hi, Can VB.Net change the next assembly version automatically when I compile the program? <Assembly: AssemblyVersion("1.0.0.1")> <Assembly: AssemblyFileVersion("1.0.0.1")> Thanks James ...
Score service of W2K
win - 5 Jan 2007 6:42 AM - 2 messages
How can i check the status of a service and start it using vb6 and .net? Thanks ...
Score Passing varibles using "Byref"
Peter - 5 Jan 2007 5:37 AM - 11 messages
I will excute the code below to get MethodName array.  These codes are edited under VS2003. Now I want to upgrade it to VS2005,but VS2005 gives me a varning message: The varible "sSourceMethodName" may throw a Null reference exception because it passes using "Byref" before being assigned. ...
Score GetExtendedTcpTable API Part 2
Michael M. - 5 Jan 2007 3:12 AM - 4 messages
Hi all, I am trying to use the GetExtendedTcpTable API function and I having some problems. The program generates memory access errors, but not every time I run it (about 1 n 3 times). I first tried using StructureToPtr to read the TCP data, but then changed to ...
Score Event of ComboBox in DataGridControl
Samuel Shulman - 4 Jan 2007 11:30 PM - 3 messages
Hi I would like to catch the SelectedIndexChanged or similar event of a particular ComboBox within a DataGridControl Also I am not sure which is the best way of reading or assigning the current value within the list, is it casting the Cell? ...
Score Question on DataTable.Select
Wan - 4 Jan 2007 10:53 PM - 2 messages
Hi,    I have a test project which contains two simple forms - 1st form contains datagrid and couple of  buttons.  First button to populate the grid with Northwind.Customers records and show 3 columns - CustomerID 2nd button to bring up the second form contains a datagrid with ...
Score setting taskbar text without the title bar appearing
iwdu15 - 4 Jan 2007 9:37 PM - 3 messages
Hi, i have a custom form that does not use the Windows title bar with the minimize, maximize, and close buttons. disabling this means my form no longer has a title in the taskbar. how can i have text in the taskbar but still not ...
Score copy a gif file to clipboard
Thomas - 4 Jan 2007 8:06 PM - 4 messages
I need to copy an image in a Gif file to clipboard. I thought it shall be very easy, but I may be too dumb to find out how to to do it after 2 hours. Some code sample will be helpful. Thanks. ...
Score General Collection assignment question
Michael - 4 Jan 2007 7:18 PM - 4 messages
Hi Everyone, I had a question for you all. I have designed some objects and I would like to get an object from the collection, make some updates and have those changes saved. See the code below: 'Note: the cmbProblemIndex combo is filled from a Problems collection object ...
Score fso.deletefolder and recycle bin
mmalinsky@gmail.com - 4 Jan 2007 6:36 PM - 4 messages
I am using fso.deletefolder(directory, true) to delete a directory and all subdirectories.  This is due to not having write access to some of the files in the directory.  However, these items are sent to the recycle bin.  Is there any way to do this without sending these items ...
Score Windows Forms - stop form looking like it has crashed whilst routine running
Ben - 4 Jan 2007 6:22 PM - 4 messages
Hi We have a windows form that takes a while to run a routine. During this we have created a information label, updating the user on the progress but: a) The changes on the label are not visible until the routine has finished ...
Score Cookies with webclient
Smokey Grindel - 4 Jan 2007 5:41 PM - 2 messages
how do you get a webclient to maintain a session? I am trying to access a classic asp page which uses cookies, so I need the webclient to maintain the cookie to keep my session active... thanks! ...
Score Issues with ADO Delete Record
jamie - 4 Jan 2007 5:36 PM - 4 messages
To anyone who can help: I have a form, in datasheet view, I wrote code (in ADO), listed below, to delete a given record.  The code is placed in a module, and called by simmilar forms.  For this paticular form, when I initate the code, ...
Score Database Setup -- How To
Arne Beruldsen - 4 Jan 2007 5:31 PM - 2 messages
I'm a recent convert to vb.net 2005 (from vb6). I have a general question regarding the best approach for binding data.  I have an app where I won't necessarily know what the database is going to ...
Score DataGridView Formatting and Filtering
Ryan - 4 Jan 2007 4:58 PM - 8 messages
I have a DataGridView which displays numeric (Int32) data from an underlying database.  I want the numbers to be displayed in numeric format "#,###" (with commas).  I want to also limit the user so they can only input numerical values.  Is there any way to do this?  Currently my formatting ...
Score Moving Pictureboxs over each other (Transparency)
toby - 4 Jan 2007 4:48 PM - 3 messages
Hi, After the great help I received to create PictureBox arrays I now have another problem. I want to be able to position transparent pictureboxes (with a small rectangle drawn in them) next to each other. However if they overlap ...
Score SelectedIndexChanged method always called
lakepeir - 4 Jan 2007 4:14 PM - 5 messages
Hello, I have combobox with a selectedindexchanged method that seems to be called when starting the application, launching the form with the combobox and making a change in the drop down box of the combobox.  Can anyone tell me why the method is called so often?  I would only like ...
Score Database connection won't open when I use Parameters
marcmc - 4 Jan 2007 3:10 PM - 3 messages
Hey, When I use the 1st Stmt below my connection opens but when i use parameters in the 2nd Stmt the connection won't open! Can Microsoft.Data.ODBC connection strings not take paramaters? TDODBCcnString = "DSN=smp001;UID=dbadmin;Pwd=dbadmin;" ...
Score Offering patch updates.
TClancey - 4 Jan 2007 1:55 PM - 2 messages
Hi, I'm facing the problem of sending out patch updates for software and I'm not sure what is the best way to go. What is the 'proper' .net way to achieve this?  What's the best way to ...
Score Dynamically add eventhandler for notifyIcon
nospam - 4 Jan 2007 1:52 PM - 5 messages
I am using VB Net 2005 and want to use the notifyicon.  I do not have a form, only a class.  I have no problems showing or modifying the NotifyIcon, however, I am having a problem handling the click event.  I ...
Score Query genus required
Ivan Jericevich - 4 Jan 2007 1:15 PM - 4 messages
In my code below the result returns two rows. This particular Tenant occupys 2 Units. How do I join the two rows to give me "Unit1 and Unit4" ALTER PROCEDURE dbo.getUnitNumbers @TenantID int, @UnitNumber varchar(50) OUTPUT as SELECT TOP (8) @UnitNumber = UnitNumber ...
Score POST/GET to website from inside VB.NET?
Smokey Grindle - 4 Jan 2007 1:11 PM - 6 messages
I want to make a manual HTTP processor, but need to do GET/POST requests that could include post data such as button clicks or text fields... i know i read about this once before in straight .NET code, anyone have any ...
Score DataReader Exception
marcmc - 4 Jan 2007 12:33 PM - 2 messages
Hey, I am connected to a TeraData database and am running a select statement as below when i receive the following error: "An unhandled exception of type 'Microsoft.Data.Odbc.OdbcException' occurred in microsoft.data.odbc.dll. Additional information: System error." The last line of code causes the ...
Score GradientFillRect
NickP - 4 Jan 2007 12:02 PM - 9 messages
Hi there,     I am trying to use GradientFillRect in a VB.NET application.     Does anyone have any examples of the correct PInvoke signature and marshaling that I need to perform in order to achieve this? ...
Score Working out the format string of a date/time
matturbanowski - 4 Jan 2007 11:50 AM - 2 messages
I am wondering, does anyone know if there is an easy way in VB (ASP.NET) to calculate what format a date time has been written in? Supposing you entered a value into a text box, it is easy enough to get ...
Score A first chance exception of type 'System.NullReferenceException' occurred in myapp.exe
GS - 4 Jan 2007 7:23 AM - 4 messages
why am i getting A first chance exception of type 'System.NullReferenceException' occurred in myapp.exe below?  and what can i do get rid of it?    Private Function getPrefxType() As String         If bSkipGetListBOxComboBoxValue Then Return "" ...
Score changing a form to a circle in VB.NET 2003
Thorgal - 4 Jan 2007 7:23 AM - 3 messages
Hello, I want to change a form in VB.NET 2003 from a square to a circle or elipse, is this possible, so that i'm working with a circle instead of a normal form? thanks ...
Score VB 2005 and Content Security Question
ilr - 4 Jan 2007 7:19 AM - 10 messages
Hi All Bit of a newbie at this stuff but was wonering if anyone could offer me some advice on a vb application and securing data.  I have a fairly basic vb 2005 application that connects to a sql 2005 ...
Score inherited user control
Mihai - 4 Jan 2007 6:23 AM - 5 messages
Hi ! I use VB.Net 2005. I created an inherited user control based on a previosly created user control.Everything is Ok . I can run this control with f5, everything is fine. When I close Visual Studio and a open it again and load my project I ...
Score Picturebox Array (VB Express)
toby - 4 Jan 2007 12:52 AM - 6 messages
Hi there, Is it possible to create an array of picturebox controls during run-time. I wish to create a new image/picturebox everytime a user clicks the button on a form, and they need to be objects so that the ...
Score Help Needed with Treeview control
Saabster - 4 Jan 2007 12:31 AM - 6 messages
Hi all, I'm fairly new to VB.NET but have more experience with VB6 and earlier. I'm trying to create an application that will move files from one folder to another. Here is the scenario. I have a folder on my local hard drive that has about 1400 .XLS files. ...
Score Custom control is naming it's components differently
Nathan Sokalski - 4 Jan 2007 12:00 AM - 3 messages
I have written a custom control that uses AJAX (it implements IPostBackDataHandler and ICallbackEventHandler). I have tested it, and it seems to work the way I want. However, when I used it in another application of mine it named the components as ControlID$ComponentID instead of ...
Score How to create and reference an Arraylist at run-time
vbnewbie - 3 Jan 2007 9:47 PM - 17 messages
I need to create a number of arraylists at run time. The number of arraylists to be created is unknown at design time. The name of the first newly created arraylist is the first element of an array, NameArray (a Publicly declared array with an unknown number ...
Score Proper OOP Use
Ivan Weiss - 3 Jan 2007 9:40 PM - 7 messages
I am using VB.net and have a question on how to handle one aspect of OOP programming. I have a class for Customers, Vendors, and Employees each of which inherits a master class, Contacts Now on my customer center screen I want to fill a list box with all of ...
Score Toolbar Easy Question
Ivan Weiss - 3 Jan 2007 9:27 PM - 3 messages
I am having a mental block.  I placed a toolbar on an MDI form and added a few buttons.  How do I open up another form when one of the buttons is clicked?  I thought I just double click on the button and create a ...
Score CreateObject
Anna - 3 Jan 2007 5:34 PM - 3 messages
Hi: Can any one please tell me where and what is the use of this method Set oNet = CreateObject("WScript.NetWork") Thanks. ...
Score Convert plain text string to HTML
Dennis - 3 Jan 2007 4:19 PM - 7 messages
Is there anything built in to vb.net that will take a plain text string and reformat it as HTML? What I mean is: o replace newlines with <BR> o replace " with &quot; o etc. I am using vb.net 2003. ...
Score Win sock
Tom Eaton - 3 Jan 2007 3:45 PM - 3 messages
Hello, I am wondering how to set up a server which shows msgbox messages which are controlled by a client program. Tom ...
Score Cannot add microsoft.visualbasic as reference - newbie ?
Tim A - 3 Jan 2007 2:48 PM - 7 messages
If microsoft.visualbasic is automatically referenced by the project system why can't I reference the classes within without typing "microsoft.visualbasic.right(string,int)" instead of "right(string,int)".  I use a number of these (classes?) from microsoft.visualbasic in my coding ...
Score Delegates and Classes
Dave - 3 Jan 2007 2:22 PM - 5 messages
Good morning, I have a class that must trigger an event in a module, which will in turn update a Label on a form.  Due to being in a seperate thread,I must use a delegate. Now here is my question.  I have managed to create a delegate on a ...
Score Connection String for Teradata
marcmc - 3 Jan 2007 1:52 PM - 3 messages
Does anyone know the vb.net connection string used for connectiong to a Teradata Database. I've integrated with sqlserver and db2 before and for anyone interested the connection strings are as below. Thanks.   Dim frmMIS As New MIS ...
Score Demande de partenaria et d'aide, je suis déséspérement seul ...
Sebastien - 3 Jan 2007 1:10 PM - 2 messages
Bonjour, Je tient d'abort a m'excuser de poster cette demande ici, mais je ne vois pas tres bien ou fair cette demande, Je développe un logiciel de génération de code (Génération de Code VB et ...
Score How can I read E-mails from exchange server from dot net application
Swarup Raj - 3 Jan 2007 10:57 AM - 2 messages
Hi all, I have a dot net application devoleped in Dot Net-2003 and used to get over 300 mails every day. Need to automate the mail reading process by creating a  service that runs for every 15 minutes , checks for any ...
Score Looking for the correct form
Samuel Shulman - 3 Jan 2007 9:26 AM - 6 messages
Although I develop the POS in VB.NET I am looking for a dedicated News Group which relatively developer focusing  on developers issues preferably one which is not sponsored by a POS company Thank you, For your advice, Samuel ...
Score general function to insert a DATE correctly
pamelafluente - 3 Jan 2007 8:17 AM - 21 messages
Hi I have to insert dates into some Access and SQL Databases. I need to be general as the target computer might be in any country. -------- - For access I wrote the follow:     Function Date_ACCESS(ByVal Data As Date) As String ...
Score DAO vs ADO
Alan Welsford - 3 Jan 2007 7:53 AM - 8 messages
ADO Code 66 Seconds Set dcndb = New ADODB.Connection dcndb.Provider = "Microsoft.Jet.OLEDB.4.0" dcndb.ConnectionString = "Data Source=" + dtbs$ dcndb.Open Set rsUsers = New ADODB.Recordset rsUsers.Open Sql$, dcndb, adOpenForwardOnly, adLockReadOnly DAO Code 20 Seconds Set rDb = DBEngine.Workspaces(0).OpenDatabase(dtbs$) ...
Score caption at run time
Mihai - 3 Jan 2007 7:26 AM - 8 messages
I want to change the controls caption at run time. I will take this captions from a SQL Server table. I want the form to have this new captions when is showed. Where I have to put the code ? In the forms load event ? ...
Score control redraw
Mihai - 3 Jan 2007 7:03 AM - 3 messages
I changed the caption of some controls at run time and they are not showed on the form. Any ideas why ? Thank you ...
Score Problems with a listview
Vmrincon - 3 Jan 2007 6:22 AM - 3 messages
Hi everybody!    I am working with a controltab that shows several listviews in its respective tabs. The problem is that  in this listviews some elements are checked in and some not (I mean rows) and I would like to show only ...
Score Problem using API function GetExtendedTcpTable
Michael M. - 3 Jan 2007 5:55 AM - 3 messages
Hi All I am trying to use the function GetExtendedTcpTable,  I looked on the MSDN found the C++ definition and tried to convert it but it does not seem to be working, it returns 87 which is = ERROR_INVALID_PARAMETER I have checked the parameters it looks correct to me. ...
Score Refreshing a DataList
Nathan Sokalski - 3 Jan 2007 4:21 AM - 2 messages
I have a DataList control that I want users to be able to sort the data in by clicking 1 of 3 buttons. The function I have created to do this is as follows: Private Sub SortPoems(ByVal sortby As String) ...
Score Problem with typed dataset
Harry Strybos - 3 Jan 2007 12:22 AM - 9 messages
Visual Studio 2005 - SP1 - VB.Net on WinXP SP2 I add a typed dataset to my solution and get the following errors : Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides' because it does not override a sub in a base class. ...
Score Formatting date
fniles - 3 Jan 2007 12:09 AM - 5 messages
In VB6, when you do Format(Date$, "medium date"), you get something like "25-Aug-06". How can I do that in VB.NET ? Thanks. ...
Score Shared functions not accessible
tshad - 2 Jan 2007 11:18 PM - 10 messages
I have a Dll I created in VS 2000. The namespace is MyFunctions and the Class is CryptoUtil. I have a program that is using the Class but it can't access it directly. I have a class (below) called CryptoUtil. ...
Score ValidationExpression that simulates the MaxLength property
Nathan Sokalski - 2 Jan 2007 10:59 PM - 4 messages
As we probably know, the MaxLength property of the TextBox control only works when the TextMode property is SingleLine or Password. I want to limit the number of characters a user can enter into a MultiLine TextBox to 250. I ...
Score Help with a parameter query
Tony A. - 2 Jan 2007 10:41 PM - 3 messages
I created the following query using the Query Builder: INSERT INTO tblOrdersTemp                       (CusNum, [1stMonthText], [1stCost], Description1) SELECT     CusNum, MonthText, Cost, Description ...
Score new to vbdotnet -- help
Jim Madsen - 2 Jan 2007 10:40 PM - 12 messages
Hi all-- Two years ago I bought a copy of vbdotnet2003 and the book "Learn MS VBDotNet 2003 in 21 Days", published by Sams.  I started working through the book, but lost interest.  This Christmas, I decided I would continue ...
Score Can't set size of label
cj - 2 Jan 2007 8:07 PM - 3 messages
As I begin to do more and more with programs built from scratch in 2005 instead of those converted from 2003, I'm finding differences that are confusing.  Why can't I set the size of a label in 2005?  I put it on ...
Score MainMenu in 2005?
cj - 2 Jan 2007 6:23 PM - 6 messages
I don't see the mainmenu item in the toolbox of 2005.  I guess I haven't created a project in 2005 using it yet.  I know I upgraded some from 2003 to 2005 and they show the control mainmenu on the form1.vb design ...
Score Trouble installing SP1
Lance - 2 Jan 2007 5:29 PM - 4 messages
Hi All, I've been out of the loop for a while and now I see SP1 available VS2005.  I'm running VS2005 Team Edition for Software Developers.  When I attempt to install VS80sp1-KB926601-X86-ENU.exe on my VS2005 Version 8.0.50727.363 (SP.050727-3600) the ...
Score Simple inheritance question
RSH - 2 Jan 2007 5:20 PM - 4 messages
I have a simple question regarding inheritance in a web form. I have a DropDownList in an aspx form.  It is called DropDownList1 I have a class that will be overriding the render event so I have a snippet ...
Score PDF to Excel
Amritha.Datta - 2 Jan 2007 3:15 PM - 4 messages
Is it possible to convert PDF data report to excel thru VB.NET? Currently I am generating PDF report in my application using crystal. The requirement is to also generate the same report in Excel. I know we can do this by creating Excel template and filling the template with ...
Score FilePut (Binary) Causes Overflow Exception
MESTakenID - 2 Jan 2007 3:10 PM - 3 messages
For backward compatibility purposes I wish to use FilePut to write a series of structures (records) to file. Existing VB6 applications in the market will use Get to read these structures. It is my understanding that, in Binary mode, the record size parameter has no effect. However, writing a structure ...
Next » 2 3 4 5 6 7 8 9 10