microsoft.public.dotnet.languages.vb Archive - May 2002
Post a message to this list
Messages
Page: 123456789101112131415161718
Changing information in Windows Registry (5 replies)
microsoft.public.dotnet.languages.vb
Hi, I have some problems about working with the registry so i have decided to ask it here. First i need to make a button check for a checkbox condition. Thats not the problem. The problem is to make a cahnge in the registry from here. I have it like this. If Check1 "1" Then Then the my program has to do this. Make a change in the root folder at the registry so i make my program the default for ser...
selected item in datagrid (2 replies)
microsoft.public.dotnet.languages.vb
What I am trying to do is let a user select an item in the datagrid that will then update a bunch of textboxes with what is found in that row so they can edit them there... and then save there changes. I know how to do edit/update in the datagrid, but sometimes I believe it doesn't look "pretty". I have the datagrid where it the user can select the row, and I can pass the item.itemindex... but tha...
Right Click Menu Problem... (2 replies)
microsoft.public.dotnet.languages.vb
Hi There.. When i attach a right click menu(Context menu) to my grid control.. then when I select some text in the textbox control in the grid and do RMC, i get the cut/copy/paste RMC instead of thje menu i have associated the grid to.. Any solutions to this problems are most welcome.. Cheers, Rahul
Dynamic Menu Creation (3 replies)
microsoft.public.dotnet.languages.vb
Hi, Can anyone tell me how to find out which MenuItem was clicked when the Form.MenuStart or Form.MenuEnd events gets fired from VB.Net E.g. in the following event : Private Sub Form1 MenuStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.MenuStart The reason why is because I have build a forms' MainMenu dynamically from a class that gets the menu strucutre from a DB. But no...
MultiThread Problem (2 replies)
microsoft.public.dotnet.languages.vb
I made a simple (yet lengthy) multi threaded application which purposes it is to find and download files from the Internet using multiple threads. (The reason for multiple threads is that I don't want my program to pause those 5sec. it takes just to initiate the transfer of a file and the another 20 sec while the file downloads) Anyway it worked great until I added the following two lines of code:...
File IO (3 replies)
microsoft.public.dotnet.languages.vb
Has anyone seen any examples of .NET code that reads and writes text files using "StringReader" and "StringWriter" classes? I've searched the knowledge base, but didn't come up with any examples. Thanks. pete
Hiding Column 1 of a Datagrid? (2 replies)
microsoft.public.dotnet.languages.vb
hi, how do you hide the first column of the datagrid, the one that shows a little triangle telling you what row you are on? Or, how do you make it thinner, it isn't a row the IDE seems to give control over. What am i missing? thx j.
Databinding: Handling errors in the databound form (2 replies)
microsoft.public.dotnet.languages.vb
Hello What is the best practices for handling errors from business objects which are bound to WinForm controls? My problem is that the active form doesn't have any running code where I can put my Try Catch. So I have to have the code instantiating the form handling the error, which I don't like. Here is an example, which illustrate my problem: Public Class User Private firstNameValue As String ......
Big Bug in VB.NET? (8 replies)
microsoft.public.dotnet.languages.vb
Dim I As Int16 Dim i2 As Int16 Dim I3 As Int16 I 1 For I3 0 To 1 If I3 0 Then If I 1 Then i2 5 If I 1 Then i2 0 Else i2 3 End If Next I3 If you step into the first IF, If I 1 Then i2 5 is correctly executed. I is still 1 and the If I 1 Then i2 0 should be executed. But I is 1 and VB still executed i2 0. if I change If I 1 Then i2 0 to if I 1 then i2 0 end if than it works. If you remove if i3 ... ...
ListBox Columns (2 replies)
microsoft.public.dotnet.languages.vb
How can I add items like in columns? I have strings "IIII" , "AAAA" and "WWWW", "WWWW" and I'd like them to appear as in columns, something like that: IIII AAAA WWWW WWWW Thank you Vlad
Transparent images? (6 replies)
microsoft.public.dotnet.languages.vb
I'd like to be able to take an image (.jpg, .bmp, .gif) and render it onto a picturebox so that it is transparent over the background in the picturebox. If for instance I have an image of an arrow, the rectangle the arrow is contained in has a number of pixels in white which are not actually a part of the arrow but are contained in the image rectangle. I'd like to be able to place the arrow image ...
NULL (8 replies)
microsoft.public.dotnet.languages.vb
Quick question. I have a datagrid that I'm binding to a ADO recordset. It's displaying (null) wherever there is a null value. If I just want that to display a blank box, how would I do that? In a webform I can just handle the ItemDataBound event, but it doesn't seem to be exposed in the Windows control. Any ideas? Jim
Converting WebDAV request from VB6 to VB.net (3 replies)
microsoft.public.dotnet.languages.vb
How do I convert a WebDAV request like this belowe to dotNet? Any suggestions? Mikael Tilly Sweden VB6 that works: Dim objReq As XMLHTTP30 Set objReq New XMLHTTP30 objReq.open "SEARCH", "http://mailserver/exchange/mikael.tilly/inbox/", False, "user", "password" sSql "SELECT ""DAV:displayname""" sSql sSql & ", ""DAV:href""" sSql sSql & " FROM scope ('deep traversal of """ & "http://mailserver/excha...
Roman numerals... (11 replies)
microsoft.public.dotnet.languages.vb
I was just wondering if anybody here has created a class to convert to/from roman numerals. If so, would you share how you did it? I've created one, but I'm not sure how efficient it is. I'll show you mine if you show me yours. Tim
Get ID from last field in table (16 replies)
microsoft.public.dotnet.languages.vb
Running .Net using VB and doing a web app (webform) I am trying to get the newley created record in a table whic is the last one (the ID for that record). Here is what I have for code. Dim strSQL As String "INSERT INTO tblFacultySummary (Fname, Lname, DateAndTime, OfficeAddress) Values ('" & (txtFname.Text) & "', '" & (txtLname.Text) & "', '" & Now() & "', '" & (txtOfficeAddress.Text) & "')" Dim s...
Delete and Restore Directories (2 replies)
microsoft.public.dotnet.languages.vb
Hi everybody, I need to make an application which deletes a full directory in an unconditional way, I achieved using the Directory.Delete with the flag set to true, the matter is that I can't delete some files because they are "Read Only" Is there any way so we can change this attributes or the windows 2000 permissions programmaticaly in vb.net? Or there is another way to delete them without the n...
KeyAscii = 0 (4 replies)
microsoft.public.dotnet.languages.vb
Does anyone know how can make some key invalid equal to code in VB6 KeyPress event: if KeyAsicc 46 then KeyAsicc 0
Quick VB.NET Property builder (written in VB6) for your pleasure (4 replies)
microsoft.public.dotnet.languages.vb
I was getting tired of writing class properties in .NET so I made this dirty little VB6 app to do it for me. Just drop this code in a form that has a CommandButton(Command1), a TextBox (Text1), and a ComboBox (cboScope) and away you go. Usage: First start your class in .NET... something like this: Public Class MyClass '// these will be properties: Private m sMake as String Private m sManuf as Stri...
Question about program architecture in VB.NET (2 replies)
microsoft.public.dotnet.languages.vb
I need some guidance on a couple of very fundamental things about program architecture / design in VB.NET. I am experienced VB programmer (VB6 all the way back to PDS 7.1); that's probably why I'm having problems understanding a couple of things. 1 What is the proper lifetime (scope?) of a subordinate form? Let's say I have a form that displays some info from a database. The user shows this form b...
Getting an Image from within another Image (2 replies)
microsoft.public.dotnet.languages.vb
I can create a bitmap from the image property of a picturebox or create an image from a graphics file (.jpg, bmp, gif etc) and place that bitmap onto the foreground of another picturebox. Is there a way to grab only a portion (rectangle) from a picturebox and place it onto another picturebox? For example, suppose I have a .bmp in a picturebox which is a picture of a person. Is there any way to cut...
String * x (24 replies)
microsoft.public.dotnet.languages.vb
How do I declair a fixed length string in Visual Basic .NET? Equivilent in VB 6; Dim myStirng as String * 16
When would I use the MyClass keyword? (4 replies)
microsoft.public.dotnet.languages.vb
Could anyone let me know why I would ever need to use the MyClass keyword? It seems a very obscure way of implementing the NotOverridable keyword. Thanks KB
creating an HTML Help system (2 replies)
microsoft.public.dotnet.languages.vb
I'm trying to get the HelpProvider control to jump to a particular anchor in an HTML page. I have set the HelpNamespace property and the correct html file opens when I click F1. I have set a control's HelpKeyWord and HelpNavigator properties and have cycled through all the possible values of the HelpNavigator: all to no avail. The web page opens, but nothing I do makes it open to a specific anchor...
how do I check XL file version programatically? (4 replies)
microsoft.public.dotnet.languages.vb
In KB Article Q316934 http://support.microsoft.com/search/preview.aspx?scid kb;en us;Q316934 it reads: NOTE : Use the Excel 5.0 source database type for Microsoft Excel 5.0 and 7.0 (95) workbooks and use the Excel 8.0 source database type for Microsoft Excel 8.0 (97), 9.0 (2000) and 10.0 (2002) workbooks. The examples in this article use Excel workbooks in the Excel 2000 and Excel 2002 format. How...
Send Email (3 replies)
microsoft.public.dotnet.languages.vb
I am trying to send email from a Windows Form on a Win 98 box. All the articles I've found on sending email in .NET revolve around ASP or Win 2000 services. Any suggestions?
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com