Group:  VB.NET » microsoft.public.dotnet.languages.vb

Threads Replies Last Post
817 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  
Closing form while processing
Hi I have a while loop in a win form code. Also a close button on the form calls Me.Close. How can I let the user close the form using the close button even though the loop is still running? Right now pressing Close button waits for loop to finish and then closes the form. Thanks Regards ...
1 12/31/2008 9:31:10 AM
Retrieve data using datarow with parameter
I have this line of code working from my previous source code updated to version 2008 of VB.NET Dim drRegularLoadID() As DataRow = dsStudentCourse.Tables("RegularLoad").Select("ProgramID = " & intProgramID & " And MajorID = " & intMajorID & " And Semester = '" & SemValue & "' And Year = '" & YearValue & "'") If drRegularLoadID.Length = 0 Then MessageBox.Show("No matching record(s) fo...
1 12/31/2008 9:06:20 AM
Getting record count
Hi I need to go through a resultset record by record. Currently I am using an OleDbDataReader to achieve this. Is there a way to get the total record count so I can notify users of the progress? If not via OleDbDataReader, is there another way? Thanks Regards ...
5 12/31/2008 7:20:43 AM
Reflection: Distinguishing property from WithEvents field
Using reflection I need to find all (private and public) fields, defined with the keyword WithEvents. Those fields are reflected as properties, which makes me ask how to distinguish between Public Property X () As myClass and Public WithEvents X As myClass thank you very much. herbert ...
3 12/31/2008 1:43:02 AM
Autofill datagridview using the criteria
I have created this code using VB.NET 2003 version and wondering how can I use this with v2008 using datagridview. Since this code is using datagrid and not datagridview how can I convert this to v2008? here's the code: Dim hti As DataGrid.HitTestInfo = Me.dgSchYrSem.HitTest(e.X, e.Y) Try If hti.Type = DataGrid.HitTestType.Cell AndAlso hti.Colu...
5 12/31/2008 1:36:50 AM
Extended File Information
Can someone please direct me to information on how, using VB.Net 2008 under Windows XP, can I programmatically retrieve extended file information, like Title, Subject, Author, etc. from a Windows Media file (*.wmv)? You can see this by right-clicking on the file and selecting Properties, then the Summary tab. Thanks ...
3 12/31/2008 1:15:06 AM
Commiting the changes on a datagridview.
Hello all, I am adding Rows to a DataGridView but the rows are remaining in edit mode. How can I force the rows out of edit mode so the EndEdit event will run? thanks!...
2 12/30/2008 11:23:34 PM
why can't the column be deleted?
Hi, I want to delete a specified column in a datagridview, but it doesn't work. This is my code: datagridview1.Columns.Remove(columnName) Column columnName is not deleted, instead, it is moved to the last column. Why? Thanks for the help!...
4 12/30/2008 10:29:05 PM
Zoom applet
Years ago, there used to be an applet called (perhaps) Zoom or ZoomIn that shipped with the SDKs. The applet acted as a magnifier that could be drug around the screen and it would magnify whatever is was over. This was especially useful for seeing the exact pixel representation of controls. Does anyone know if this is still around for download and what is it called? Also whether is w...
3 12/30/2008 9:48:42 PM
Help With ICloneable And Deep Copy
Hi all. I'm trying to implement ICloneable with the intent of making a completely new copy of the example class car below. I've read lots of posts on this and other boards on the topic but I just can't quite seem to get the code correct in the Clone function. I want a deep copy so that in my example code, I can change the properties of NewCar without affecting the properties of OldCar. Al...
6 12/30/2008 7:24:49 PM
System.IO.Pipes.NamedPipeClientStream.Connect
When a client thread calls Connect, it blocks until the connection is made. If the server is busy, the client will block until the server is no longer busy (ie until the server calls WaitForConnection). If the server is not running (ie the pipe does not exist), the client side still blocks. I have tested this - run the client, observe that it blocks, run the server, the client unblock...
5 12/30/2008 7:02:01 PM
populate a datagridview from tab control
i have a tab named tEmployeeInfo. when the tab is clicked i want to load a datagridview on the same form, but it is not in the tab control. i can use this code in the form load event and the datagrid will populate, but it will not populate if i change it to the tEmployeeInfo_Click: (when the tab is clicked i want it to load this data in the grid) Private Sub tEmployeeInfo_Click(ByVal sen...
2 12/30/2008 6:51:58 PM
LDAP Question
Anyone know why Active Directory won't create the Home Directory Folder when its setup through a vb.net executable? I'm stumped. I've tried creating the user and thereafter pausing several seconds before setting the homedirectory and homedrive properties. This doesn't work. In the end, I just want the folder to be created with full control specified for the new user. I've tried having...
2 12/30/2008 6:18:26 PM
Accessing another form's fields
Hi From FormA I am opening another form FormB using ShowDialog(). Is there a way to access a text field on FormA (calling form) from FormB (called form)? Thanks Regards ...
11 12/30/2008 5:53:33 PM
Dynamically Create Control
Hi, how can I create controls dynamically in vb.net 2005? I am building a simple download list (like the downloader u see in firefox) for which I create a base downloader control. now I want to dynamically create and add that download control to a panel. I have turned on scrollbars in panel so it will appear like a download list. thanks, abhishek ...
3 12/30/2008 4:30:14 PM
Moncler Men's down Jacket
The Winter came,Every need wear cloth warm body. Fashion,Luxury goose down jacket---Moncler. Please see it : http://www.luxury-fashion.org/static/Apparels/Moncler-Jacket-35.html Our Moncler Men's down vest are fine quality And find more new fashion apparels please view : http://www.luxury-fashion.org/static/Apparels/MONCLER.html Welcome check our other pages or feel free contact ...
1 12/30/2008 3:18:11 PM
Understanding Get/Set With Properties That Are Arrays
I'm having a little trouble understanding what is going on in the following example. It's a simple console app that I built to illustrate a problem I'm having in a bigger application. I have sample class Car with property TirePressure() and propery Color. All four tire pressures are set to 23.0 in the class constructor and the color is set to Green. But then when I try to change the value...
3 12/30/2008 1:47:59 PM
Help with PDF
Hi All Could some kind soul help me with advice on PDF generation. Our company seems to have gone PDF mad and I am expected to produce outgoing reports in ..pdf rather than .txt, .xls or .csv (as they are now). No worries with buying a component to fit in with VB.Net (2008). I would be grateful for any advice on the best (and easiest to understand :)) component for the job. Thanks...
15 12/30/2008 12:05:27 PM
Object array throwing an access error
I'm getting an NullReferenceException that I don't understand when trying to access an array of objects within another object. In simplified terms the code I'm trying to use is as follows: Public Class MyInnerClass Public Name as String ' And other public properties End Class Public Class MyMainClass Dim m_InnerObjects() as MyInnerClass Friend Property InnerObjs(ByVa...
3 12/30/2008 12:03:52 PM
Newbie question re vb.net and iterating files
I am a newbie learning VB.net. I have spent a few days, unsuccessfully trying to figure out how to modify the code below so that I could get a list of: (1) all the .bat files in the root directory: "E:\”, and (2) all the .bat files in the root directory: "E:\” and all directories under it. Here's the code I copied the code below from a help file: For Each foundFile As String I...
7 12/30/2008 11:27:34 AM
Break on Error
Hi All, In VB6 when an error occurred in an application, the IDE stopped and showed me where the error was. How do I set this in the Visual Studio 2008 IDE? I'm trapping the error in the Try..Catch..End Try statement but would like to know exactly what line the failure is occurring on. -- Thanks in advance! Kind regards - Fred ...
9 12/30/2008 10:54:35 AM
Detect Country and Language
hi, is there a way to detect the country and windows language of user/OS using vb.net 2005. Actually I am selling a software, and want to give special offers to users of a particular country so I want to check wither a user is from brazil and weather of not using Portuguese version of windows. thanks, ...
2 12/29/2008 11:59:10 PM
Pixels to DPI
I have a simple application written in VB.NET 2005 that draws squares on the screen. What I would like to do is convert the screen resolution from pixels to Dots per inch. So I have two problems. 1. Convert the screen from pixels to dots-per-inch. 2. Once I convert the screen to DPIs I would like to draw a grid on the screen where both the vertical and horizonal lines are spaced 100 dots...
2 12/29/2008 11:48:53 PM
Database access strategy
I've developed an app for our company using VB.NET (winforms) and SQL server express running on our SBS server. The app works really well within our LAN but I often work remotely and quite often would benefit from using my custom app. I've tried the VPN but for some reason my app just won't connect to the database. What I'd like is some advise about how I can allow remote clients to a...
9 12/29/2008 5:48:21 PM
Unable to add user controls
Hello, Create project > add user control (windows forms) > Build project > add the user control on the main form. I get this long error message: Failed to create component 'SelectionBox'. The error message follows: System.Xml.XmlException: An error occurred while parsing EntityName. Line 2, position 68. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.X...
4 12/29/2008 5:43:47 PM
817 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  

Home | Search | Terms | Imprint
Newsgroups Reader