microsoft.public.dotnet.languages.vb Archive - July 2003
Post a message to this list
Messages
Page: 12345678
Fixed Length String workaround in vb.Net? (3 replies)
microsoft.public.dotnet.languages.vb
Hey guys one of the basic features that was trashed in VB.Net that we need where i work is fixed length strings. We write a lot of text files read by mainfraime programs. The mainframe knows what the data is by its location. Here is an example: private type File efID as string * 10 efAddress as string * 150 end type lofile.writeline efID & efAddress We need a way in VB.Net to do the same thing. Ca...
REPOST: Databinding combobox bug? (2 replies)
microsoft.public.dotnet.languages.vb
I have a pretty straightforward combobox on a form. During initialization, I set the databindings on the combobox (DropDownList): cboType.ValueMember "ID" cboType.DisplayMember "Description" cboType.DataSource dsRel.Tables(TBL RLT) cboType.DataBindings.Add(New Binding("SelectedValue", dsRel, TBL REL & ".Type")) Everyting looks as expected, even the proper DisplayValue is shown. However there are t...
Num Lock/Caps Lock question (3 replies)
microsoft.public.dotnet.languages.vb
Good Afternoon, What code would I use to get the current state of the num lock and caps lock keys do determine if they were activated or not, at the start of a form? Any help is greatly appreciated. Thanks.
Disable X in control box, but not Minimizebox (3 replies)
microsoft.public.dotnet.languages.vb
Other languages allow disabling the close (X) in the controlbox, why doesn't VB.NET? At least I haven't found the property yet to do it. I don't want to disable the whole controlbox, I want the Minimizebox but not the close. I don't want the operator to terminate the window (dispose), I control the close methodology via File Close (using Hide). Thanks
bitmap to byte() (2 replies)
microsoft.public.dotnet.languages.vb
How can I convert a bitmap to a byte array? I have to do this so that I can write it to Sql Server Image data type. T
Objects on a different form (7 replies)
microsoft.public.dotnet.languages.vb
Hello, how can I get the text from a text box in a string in a different form? Thank you Catalin Porancea
How to decide that a file or dir can not be deleted quickly? (3 replies)
microsoft.public.dotnet.languages.vb
Hi I want to delete much files with API function "SHFileOperation", but it will take long time with files or dirs that can not be deleted! How to decide that a file or dir can not be deleted very quickly? Can anyone tell me how to delete files to Recycle Bin and move files without API function in VB.NET? Thanks
C DLL in VB.Net (2 replies)
microsoft.public.dotnet.languages.vb
Ok, im a bit lost on this one ive used dlls before in vb6, but not in vb.net :) I've got a precompiled dll that was written in C (its SQLite http://www.hwaci.com/sw/sqlite/) and i want to be able to use it in my vb.net app. I realise i have to declare all the functions, but the problem is, a lot of these functions return as a different type, which is declared inside the dll. For example, one of th...
How to delete files from a directory (2 replies)
microsoft.public.dotnet.languages.vb
Hi, I have to delete files from a directory on application's termination. How can I do that? Thank you, Dino Buljubasic Software Developer http://rivusglobal.com
What Am i missing in this datagrid. (2 replies)
microsoft.public.dotnet.languages.vb
Hi, I am trying to edit one particular column of a datagrid and am not able to do so. Everytime, i click on Edit in the datagrid, the entire datagrid dissappears. What am i doing wrong and what am i missing. Any help will be appreciated below are the codes DataGrid Code asp:datagrid id "dgresub" runat "server" AutoGenerateColumns "False" EnableViewState "False" GridLines "Vertical" CellPadding "3"...
No node click event in Windows.Forms.TreeView? (6 replies)
microsoft.public.dotnet.languages.vb
I am customizing Windows.Forms.TreeView to add functionalities. It seems however, that TreeView class doesn't have a "node clicked" type of event. The only thing close to it is the AfterSelect event. But it doesn't realy meet our needs. I find it hard to believe that such an important event is missing from the control. But I just can't find it. Am I missing somthing here? (By the way I am not inhe...
Word interface problem (2 replies)
microsoft.public.dotnet.languages.vb
I have been writing a report from Access into Word. The Word document contains a standard form, and I search for locations in which to place data from the database. The following works fine at work (I believe using Word 2000) but fails at home (Word 2002) with the following message: "An unhandled exception of type 'System.StackOverflowException' occurred in CMMIReport.exe" The following is the cod...
what's the difference (2 replies)
microsoft.public.dotnet.languages.vb
Hi everyone, Whats the difference between these two code snippets? First one works perfect, the second one throws an error. Me.ImagePoolArrayFullSize(0).RotateFlip(RotateFlipType.Rotate270FlipNone) Me.ImagePoolArrayFullSize(0).Save("C:\webpages\classicphotography\GradIdenti ficationProgram\Thumbnails\biteme.jpg", ImageFormat.Jpeg) Dim ImagePoolLabelArrayFullSize(7) As String ImagePoolLabelArrayFul...
Not DUPLICATING Forms Objects (4 replies)
microsoft.public.dotnet.languages.vb
Hi, I have a form(Form2) with many controls on it and it takes a significant amount of time to load. I want to call the form from another form(form1). If, in Form1 I do: Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Frm2 As New Form2 Frm2.ShowDialog() End Sub Then EVERYTIME Button1 is clicked a NEW object Form2 is created. I do NOT ...
Controling a Form from another Form (3 replies)
microsoft.public.dotnet.languages.vb
Hi there, I am trying to do something similar to Billy Cormic's "passing information between two forms" request without much success. I have an application with 2 forms. Form 1 sets some variables and then opens Form 2 (no problems at this point). I also have two buttons on Form 1: (a) updates the properties on Form 2 and (b) closes Form 2 (in theory!) How do I reference the existing instance of F...
DragDrop Custom Class (2 replies)
microsoft.public.dotnet.languages.vb
The tag property of my ListViewItem contains a custom class. The user can drag this item then drop it onto a TreeviewNode. How do I access my class at this point? I can't figure out how to use the GetData and/or GetDataPresent methods to ensure the data is in fact the particular class, and then populate the tag of the node with this class. I understand how to check for predefined system classes, b...
Microsoft Acces question ? (3 replies)
microsoft.public.dotnet.languages.vb
I have this decalre and it works fine: Dim MyConAccess As New OleDb.OleDbConnection MyConAccess.ConnectionString "Provider Microsoft.Jet.OLEDB.4.0;Data Source MyData.mdb ;" MyConAccess.Open() How do I open a table in my database call customer and add a new record like name phone etc. Does anyone have a sample of using a MSAcces database ? Thnaks
Converting VB6 disconnected recordset to .NET (2 replies)
microsoft.public.dotnet.languages.vb
Hi! I'm pretty new to ADO.Net, and have been trying for a long time to convert the functionality of the following code to dotnet. In VB6, I would get results in recordsets, then create these disconnected recordsets instead of using temporary tables. Dim rst As ADODB.Recordset Set rst New ADODB.Recordset rst.CursorLocation adUseClient rst.ActiveConnection Nothing rst.Fields.Append "lngField", adBig...
fill cells (2 replies)
microsoft.public.dotnet.languages.vb
How can i select the cells in column to the right of my other data so i can fill with the city name? i want to fill all 3 cells or sometimes up to 20 cells. I have a macro that will copy to the top and bottom cell, but not the ones in the middle. My Data: Joseph 2 7. Eugene Don S. 1 8 Robert 14 104. My Macro: ActiveWindow.ActivateNext 'change to ws where data Sheets("Eugene").Select 'select correc...
Array.BinarySearch case-sensitive? (5 replies)
microsoft.public.dotnet.languages.vb
Hi. I am using Array.BinarySearch in one of my routines. The routine works but I noticed that the search is case sensitive and I need a case insensitive search. I read the documentation about Array.BinarySearch but could not find anything about this behaviour. Is BinarySearch case sensitive? How can I use BinarySearch in a case insensitive manner? Thanks, Antonio Maciel
Value of Text Property of a UserControl is lost when Designer closed (2 replies)
microsoft.public.dotnet.languages.vb
Hello I have a User Control in Which i have a Button Control. The Text ogf the Button Control should be set by the User in Designtime. but the Value of Text Property of a UserControl is lost when Designer closed an reopend. If I Name the Property TextXXX in stead of Text (and no ovverides) the it remembers the Text when reopening the Designer Window. Here the Code System.ComponentModel.Browsable(T...
Structures - Questions (3 replies)
microsoft.public.dotnet.languages.vb
I have some structures questions. I am creating quite a few structures, hundreds :) Yes, I shouldn't, but darnit I want to heh. Anywho, I was wondering what some of the rules are for structures....questions after code snips. Public Structure MyStruct Private mName As String Private mMore As ChildStruct() Public Property Name() As String ... End Property Public Property More() As ChildStruct() ... ...
Control.Invoke without control? (3 replies)
microsoft.public.dotnet.languages.vb
Hi NG, in a Winforms application, there's visible only a NotifyIcon. From there, I can start an action running in a separate thread. The thread procedure is part of a class. At the end of the procedure, I raise an event ("Raiseevent Done"). The event is caught in the application's main class, i.e. the one also containing sub main and managing all the threads. In the event procedure, a message is t...
Overriding ProcessKeyPreview, Enter WM_KEYDOWN... (5 replies)
microsoft.public.dotnet.languages.vb
Hi, I have 3 questions regarding the code below: 1) Why can't I trap the KEYDOWN while I can trap KEYUP? 2) Is it correct that I use Return True within the IF Statement? (I've already read the documentation but it is rather hard to understand so please don't refer to it :) 3) Many examples in the newsgroups use Return MyBase.ProcessKeyPreview(m) as the last code line while I have used Return MyBas...
Make window popup after minimized? (5 replies)
microsoft.public.dotnet.languages.vb
After a window has been minimized by an operator, I'm trying to programatically make that window popup on the screen as if the operator had clicked on it in the taskbar. Form.Show and Form.Activate do not do it & I can't find anything else that would do it. Any ideas? Thanks.
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification