microsoft.public.dotnet.languages.vb Archive - March 2002
Post a message to this list
Messages
Page: 12345678910111213
Sorting in a Dataview (3 replies)
microsoft.public.dotnet.languages.vb
Will the sorting and filtering properties of a dataview only work if the dataview is bound to an object such as a datagrid. It seems to be that way. If you set the sort property of the dataview and then look through each row one at a time, I found that the data is not sorted in the order that I set with the .sort parameter. However, if I bind the same dataview to a datagrid, the data is sorted in ...
encrypt decrypt string (6 replies)
microsoft.public.dotnet.languages.vb
Hi all, I have compiled some code from examples in this group and the csharp group, and I have created some code to encrypt and decrypt strings. I have run into a problem with the decrypting code. I keep on getting Bad Data error. I have including my code inline, in hopes that someone kind figure out what went wrong. Thanks again for any help. I should not that it creates (what appears) to be a va...
Managed State Help (4 replies)
microsoft.public.dotnet.languages.vb
I am new to VB.net. I have a simple WebForm with a databound DropDownList, a Textbox, two labels and one button. My goal is to set the text of the labels to the values in the DropDownList and Textbox. What happens is as follows: 1. Select an item from the list 2. type something in the textbox 3. Click Button (form submits) 4. Label1's text value equals the first item in the DropDownList and DropDo...
Lack of support for explicit interface implementation in VB.Net (4 replies)
microsoft.public.dotnet.languages.vb
In translating Richard Week's C# code from his book on Windows Forms Custom Controls to VB.Net I have run into difficulty in a custom collection class. 1. Am I right in my assumption that only C# supports explicit interface implementation? 2. Is the VB workaround for creating a strongly typed collection class to inherit from CollectionBase rather than the C# route of creating a collection class th...
GetComputerName and GetUserName (3 replies)
microsoft.public.dotnet.languages.vb
There once were to API calls called GetComputerName and GetUserName does anyone know if there is an equivalent under the .NET Classes? Regards....
update (3 replies)
microsoft.public.dotnet.languages.vb
When I tried to update the data back to the datasource using dataadapter.update method, it did not work with bound textbox control, but it is okay with datagrid. Why ??? Thanks in advance.
Printing (2 replies)
microsoft.public.dotnet.languages.vb
In VB 6 there is a way to do Printer.NewPage. Is there a way in .Net to duplicate that, because using the HasMorePages doesn't work well for looping through collections. Thanks, Steven Malloch Nucor Building Systems Indiana
Combo Box Data from SQL (4 replies)
microsoft.public.dotnet.languages.vb
Hello, I am really have a tough time loading the combobox from a Dataset created from a SQLDataAdapter. Now the DataAdapter exists along with the SQLConnection. I Generated a Dataset and also previewed the data. All three components are at the bottom of the webForm. Setting up the combobox. I used the Dataset as the DataSource and the Table Field as the DisplayMember. These are set in the combobox...
WishList: Readonly Arrays (3 replies)
microsoft.public.dotnet.languages.vb
It would be nice if Arrays exposed a readonly wrapper. From example... Dim X() As Integer //fill the values Dim R() as Integer X.ReadOnly R would be a wrapper for X, not a copy. Thus any changes to X would be reflected in it. However, anyone given R would be prevented from making changes to the array. Also, the type used for R would inherit from Integer() so that you can pass it to methods that ne...
Can't automate Excel from VB.NET (7 replies)
microsoft.public.dotnet.languages.vb
I'm trying to automate Excel from a VB.NET Windows Application. I'm running on Windows 2000 and Office XP. I've added the reference to MS Excel 10.0 Library and the project compiles OK. But when I run it I get an error: "An unhandled exception of type 'System.Exception' occurred in microsoft.visualbasic.dll." The weird thing is I didn't get the prompt for the creation of the "wrapper" for the Exce...
Migrating a lil API to .net? (3 replies)
microsoft.public.dotnet.languages.vb
i wonder if someone can look at that small API i was using on VB6 that retrive disk information such total size, avail & used space... i tryied to upgrade it but im too newbie and i cant understand whats the problem.. PLEASE, its just a 5 lines code... thanks (its attached here)
Winsock API Wrapper (6 replies)
microsoft.public.dotnet.languages.vb
does anyone have a winsock API wraper that has events? i need something like the winsock control for vb6 if thats possible. Thanks in advance! Mike
Wrong week number for last monday (2 replies)
microsoft.public.dotnet.languages.vb
According to Q200299 there is a bug in oleaut32.dll that generates the wrong week number for last monday in the year. The problem is still there in VB.NET...... Will MS do anything about this??!! Mats Larsson
Does thread marshalling work on async functions like socket.beginread? (5 replies)
microsoft.public.dotnet.languages.vb
I'll fully admit I'm trying to things that are way over my head here but I'm having a lot of fun :) OK so I have a program that reads NNTP data using a socket.beginread call, and in the callback I'm trying to figure out how to feedback information to the UI like bytes read etc. Now, I'm told that I can use thread marshalling to pass this information back to a routine that will update a statusbar. ...
VB.NET FINALLY FUCKED UP ! (13 replies)
microsoft.public.dotnet.languages.vb
Okay, i have now been playing with VB.NET for a week. I must say that MS finally fucked it all UP for us VB programmers. 1. Nothing works as it used to do. (even the editor is fucked up) 2. Jit debugging don't work anymore, you can't edit on the fly (unless you restart the code)..??? 3. Controls don't work as they should (and use to (in all other envs)) 4. API calls don't work any more 5. The perf...
Typed dataset shared to multiple projects (2 replies)
microsoft.public.dotnet.languages.vb
I'm creating a N Tier database application. I have those projects: DataAccess, BusinessRules, ClientWinForms and DatabaseSchemas. If you know what N Tier is, you probably know what are the 3 first projects. DatabaseSchemas contain a couple of typed DataSet schemas that are used to pass data between projects, and each other project is referenced to that project. But here is the problem. Column prop...
Double linked list (4 replies)
microsoft.public.dotnet.languages.vb
Hi, Having used Delphi for a lot of years, I became used to the TList and TStringList classes: these were classes that contained functionality for double linked lists of pointers. Is there a similar class in VB.NET or do I have to use arrays (with redim) ? Thanks in advance, Wim Lambrechts
Retriving Disk Information and such (4 replies)
microsoft.public.dotnet.languages.vb
I have downloaded a code snippet long time ago for VB6 that retrive disk information from the system (total bytes, used bytes and free bytes) Anyone know how i can get that info now in VB.net ? i tryied to upgrade that module but it not seems to work... Also, any idea how i can retrive Machine information such as Proccessor type / speed and memory total / used / free ? Thanks
FolderBrowser Class (4 replies)
microsoft.public.dotnet.languages.vb
I am trying to implement a browser window that will allow me to select and save a path. I have found references and code samples for Class System.Windows.Forms.Design.FolderNameEditor.FolderBrowser. However when I attempt to use it, I get a "Not Defined" error. Do I need to load this Class? Is it an external file I must I should download from somewhere. What's up? thanks phil
Proper method of repositioning a form? (4 replies)
microsoft.public.dotnet.languages.vb
I have an app which consists of several forms, but is *not* an MDI. Each of the forms may or may not be visible at any given time, and can be repositioned by the user. If I'm saving form position/size/visibilty info in the registry, and want to modify the forms with that info in code. If I use: MyForm.hide 'form is loaded MyForm.Left 800 MyForm.Show Then the form doesn't load at the proper positio...
mysterious stackoverflow exception! (2 replies)
microsoft.public.dotnet.languages.vb
hi all. i develop a user control with dotnet and tried to override two properties: BackColor and ForeColor. These overided properties just set/returns same panel properties, which is on the usecontrol(dock set to fill). i use following code: Public Overrides Property BackColor() As Color Get Return pnlMonday.BackColor End Get Set(ByVal Value As Color) Try pnlMonday.BackColor Value Catch ex As Exce...
own collection (inherits CollectionBase) (2 replies)
microsoft.public.dotnet.languages.vb
Hi, I've got this code: Private Class node End Class Private Class Nodes Inherits BaseCollection Public Sub Add(ByVal Node As Node) list.Add(node) End Sub End Class Test Sub: Dim n As New Nodes() n.Add(New node()) At list.Add I get a NullReferenceException. List is really Nothing! It's new to me that I have to initialisze the inherited list. Am I wrong? Of course, I can't write list New ArrayList(...
Major bug with MDI child forms! Anyone else experience this? (6 replies)
microsoft.public.dotnet.languages.vb
I am writing a new MDI app. I want one of the child forms to load when the parent app loads. I set the child form's ControlBox property to false and its WindowState property to maximized so that it fills the screen when loaded. No matter what I do and how many properties I mess with, the control box is always there. I will go away if there is any change in the WindowState. I have even tried settin...
Error running my application (2 replies)
microsoft.public.dotnet.languages.vb
Hi ! I hav just installed Visual Studio .NET. I Created a new VB Project (Windows Application) and did not any code or controls to the form. Then I complie the code without errors, but the JIT compiler returns the following error: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll I submit the "generated" code Public Class Form1 Inherits System.Windows.Forms.Form #R...
Inherited Form: Constructor Not Found (2 replies)
microsoft.public.dotnet.languages.vb
Hello! In VB, I've created my own form, and it'll be inherited by other forms. I'm trying to set the state of some controls of the form by adding a couple of variables to the New() constructor (inherited from System.Windows.Forms). I have: Public Class MyForm Inherits System.Windows.Forms.Form .... Public Sub New(Optional StringCaption "This is a form") MyBase.New() InitializeComponent() Me.Captio...
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