microsoft.public.dotnet.languages.vb Archive - January 2002
Post a message to this list
Messages
Page: 123456789
Write an output file in VB (2 replies)
microsoft.public.dotnet.languages.vb
I'd like to write to an existing empty Excel file with the data I queried from database. But the problem is: after I open the file for Output, the original custom header and footer information of the Excel file is gone. How can I keep the custom header and footer info? Here's my code: iNbr FreeFile Open sOutPutFile For Output As iNbr Print #iNbr, "Hello World" Close iNbr Thanks in advance
VB.Net Database (2 replies)
microsoft.public.dotnet.languages.vb
Does anyone have an example vb.net application that utilizes SQL 2000 Backend and VB.Net front end? I am interested in a regular windows application. I hope build an application that can work across 128k vpn connection with reasonable speed. Any examples would be greatly appreciated.
iterate object atributes (2 replies)
microsoft.public.dotnet.languages.vb
Hi, I would like to iterate attributes of an object something like for each att in obj.atributes select case att.type case... end select next any way i can do that? Thanks
ADO/LDAP-Query (2 replies)
microsoft.public.dotnet.languages.vb
Hi Why generates this code an error? there must be something with the query string. the error is An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in xxx.exe additional information: unknown error Dim strLDAPQuery As String Dim objcon As ADODB.Connection Dim ConString Dim rs objcon CreateObject("ADODB.Connection") ConString "Provider ADSDSOOBject" objcon.Open(Con...
Sharing single Module.vb across multiple projects (14 replies)
microsoft.public.dotnet.languages.vb
Hi All, I am using VS.NET Beta2 I have a vb.net module file that has lots of common functions I'd like to reuse in say Module1.vb. And I wanted to do this: I have following folders Projects\Common I put the Module1.vb file here Projects\Project1 project1 is in this folder Projects\Project2 project2 is in this folder And I wanted to Add the same Common\Module1.vb file in both Project1 and Project2....
Datagrid OnXXXXIndexChanged (4 replies)
microsoft.public.dotnet.languages.vb
Is there a way, in a Composite Custom Control, to set the OnSortCommand and OnPageIndexChanged? My current Code is... DefaultProperty("Text"), ToolboxData(" {0}:List runat server /{0}:List ") Public Class DataGrid Inherits System.Web.UI.WebControls.WebControl Private text As String Private strParent App ID As Int32 Private intSection ID As Int32 Private Section As New wbPage.wbpage.Section() Priva...
Beta 2 - Calling API's in VB.Net (8 replies)
microsoft.public.dotnet.languages.vb
Hi, I've been trying to rewrite a little utility I wrote in VB6 into VB.Net. The program uses API calls to set the transparency of any specified window displayed on the desktop, for example, Explorer, or Notepad. Code is as follows: Imports System.Drawing Imports System.Runtime.InteropServices Public Class Form1 Inherits System.Windows.Forms.Form Private Const GWL EXSTYLE ( 20) Private Const WS EX...
Resx File in VB.NET (4 replies)
microsoft.public.dotnet.languages.vb
Hi, I need a resource file storing some information. I have added a Assembly Resource File called DataResource.resx and set the Property to embedded. But when I build the solution and run the Windows Form application, it says .resources file not found.... And I can't visibly see any physical file by the name DataResource.resources but instead I can just find the DataResource.resx which is the sour...
How to fill a TreeView ? (8 replies)
microsoft.public.dotnet.languages.vb
Hi I've got objects in an sorted ArrayList like: P:\ P:\\DOCS P:\\i386 P:\\i386\ASMS P:\\i386\ASMS\1000 P:\\i386\ASMS\1000\MSFT P:\\i386\ASMS\1000\MSFT\WINDOWS P:\\i386\ASMS\1000\MSFT\WINDOWS\GDIPLUS P:\\i386\ASMS\5100 P:\\i386\ASMS\5100\MSFT P:\\i386\ASMS\5100\MSFT\WINDOWS P:\\i386\ASMS\5100\MSFT\WINDOWS\SYSTEM P:\\i386\ASMS\5100\MSFT\WINDOWS\SYSTEM\DEFAULT P:\\i386\COMPDATA P:\\i386\DRW P:\\i386...
Can't load ressource (20 replies)
microsoft.public.dotnet.languages.vb
Hi, I added a resource file "chars.resources" containing a single bitmap called "chars" to the project. At runtime I try to load it: Dim RM As ResourceManager New ResourceManager("chars", Me.GetType.Assembly) Dim o As Object RM.GetObject("chars") The last line throws an exception: "For your culture or the neutral culture in the assembly no ressources could be found baseName: chars locationInfo: nu...
Can't run .NET exe from other PC... (3 replies)
microsoft.public.dotnet.languages.vb
Hi, With VB.NET Beta 2 I made .Exe on my pc and I tried to run from other pc directly. But it says there is some process access rights required. I checked my access on both Pc's are Full (Admin). Still I need access Rights? Or Do I need to set any settings in the code? I copyied .exe to the that pc then it runs Thanks in advance. ....Ashok
Cookies Problem (3 replies)
microsoft.public.dotnet.languages.vb
I wrote a simple script to create cookies. I wanted the cookies to be for the browser session only. This is to say when the browser is closed the cookie should disappear. Can someone tell me the problem in this script below. AFTER I CLOSE THE BROWSER AND START A NEW BROWSER SESSION AND CLICK ON 'CHECK COOKIE' I SEE THE COOKIE. WHY? Why the cookies is still present after the browser was closed. %@ ...
How can I Sleep Method in VB.NET? (2 replies)
microsoft.public.dotnet.languages.vb
How can I Sleep Method in VB.NET? I want to see some examples.
Calling events on Windows forms (3 replies)
microsoft.public.dotnet.languages.vb
Hi, I want to call an event on one form from another. The scenario is a a user double clicks on a datagrid, a properties box appears and they change some details, then, when the user clicks 'Ok' on the properties box it also triggers an event on the calling form to refresh the datagrid. Any ideas ? Richie
Construct object from classname (2 replies)
microsoft.public.dotnet.languages.vb
Hello, I'm rather new to .NET. I'm looking for a construction that enables me to construct an object from a classname. The classname refers to a concrete class that is derived from an abstract class that is known. The code construction could be someting like: Public Sub constructObject(ByVal className As String) DIM myObj As baseClass myObj New() As className ????? ' do something with myObj End Su...
Finding and Acting Upon Sub Menu Items In a Menu (6 replies)
microsoft.public.dotnet.languages.vb
Folks, I have built a mainmenu ***programmatically***. I have no problem iterating through the mainmenu programmatically and can identify the index of each main menu item. My question is acting upon the individual sub main menu items programmatically and individually. Assume that I have 4 main menu items whose index values range from 0 to 3. Assume that at index 0 I have the main menu selection "F...
how to reference webform control from another webform? (2 replies)
microsoft.public.dotnet.languages.vb
Anyone have any idea how can i reference a textbox server control from another webform. Example if i have 2 webforms, webform1 and webform2. Webform1 have a textbox server control and a hyperlink server control. The hyperlink server control in webform1 navigate to webform2. How can I capture the textbox value of webform1 in webform2 when it naviagte to webform2? By the way I am using post method. ...
web based with message capability (2 replies)
microsoft.public.dotnet.languages.vb
I want to create an basic workflow app which will run on a web server. The app will periodically check for pending (or new) transactions using a database which will contain the email address of the person who will be acting, action required, and the date of the requirement. When appropriate it will also send/receive a message to/from a user(s). I am interested in hearing from anyone with ideas on ...
Freeing memory used by objects (9 replies)
microsoft.public.dotnet.languages.vb
How can force vb to free memory used by an object. TIA
Build number, how ? (2 replies)
microsoft.public.dotnet.languages.vb
does VS.NET contain this feature ? I want to automatically include a Build Number in the About box that gets autoincremented on every build.. any pointers are appreciated. edmz
What 3rd Party Tools for Authentication ? (2 replies)
microsoft.public.dotnet.languages.vb
Hi, I was wondering what 3rd party tools you would use for a VB Application that requires authentication ?? Basically I just want a product that would verify their Windows login and Password. And could be used in a VB Application. Thanks in Advance Mark
No form unload (10 replies)
microsoft.public.dotnet.languages.vb
Okay, I'm just sure that this is stupid but there's no form unload in VB.NET. I usually do my cleanup in the Form Unload event. Anybody know how to get this done now in VB.NET? Or how to tell if a user clicked the close button in the upper right hand part of the form? Steve Long RemoveThis Reachme @steve.long@co.clark.wa.us
Control Arrays (2 replies)
microsoft.public.dotnet.languages.vb
How do I create Controls on a Windows form at run time? In VB6 you create a control, make it an array by specifing an index, and at run time use the "Load" command. I have seen an article showing how to use one event handler for multiple controls, but that is only half the problem. What if I want to create a number of identical controls at run time?
Binary conversion Integer -> String (10 replies)
microsoft.public.dotnet.languages.vb
I'm trying to make a function that convert an Integer to String, like I did in VB6 using CopyMemory to simply copy memory from one to another. After looking for solutions for a while, I got this: ASCII.GetString(BitConverter.GetBytes(value)) the only problem is that it will take your value and convert it... but you don't have the right number of chars. If you send &hFF, for example, and you want a...
'Phases of the moon' icons - easy in vb6, ? in vb.NET (4 replies)
microsoft.public.dotnet.languages.vb
Hi, I have often changed the form's icon in vb6 applications to show a program status. Simple load it from a file or better still put all the bitmap resources I require into hidden picture boxes then do a: frmMyApplication.icon picIcon1.image I have not found a way to do this in vb.net as the icon is a drawing.icon and a picture is a drawing.bitmap(?????) and can't convert. Could put icons I requi...
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