[RESOLVED] Raising events from a list of controls.

5826 byte By sotoasty at 2007-11-20 10:22:46
I need to capture an event from a UserControl on my form. The setup.I have a QA form. On this form, I am generating anywhere from 1 to 15 QAControls. Here is the relevant code. The Variable is mvarQACntrls. As you can see it is a list.Option Strict OnOption Explicit OnPublic Class frmQA Priv...

tutorial

113 byte By derok at 2007-11-20 10:22:49
Hi,<br/>where can I find a free turorial, so i can learn visual basic .net from the beginning?<br/>thanks...

VB .Net Winsock OCX equivalent

529 byte By Dark Potato at 2007-11-20 10:23:06
Hello, I have made a little application in Visual Basic 6 which uses the Winsock OCX file, just like every other chat like application written in VB and I would like to transfer it to .Net because I absolutley hate using the Winsock OCX file. Now I have played around very briefly with how .Net uses...

Vb. net starters book

293 byte By loveneshk1 at 2007-11-20 10:23:08
hi guys....<br/>i'm workin with vb code since last 2 years....<br/>i want to start learning vb.net...<br/>could anybody suggest me some good book so that <br/>i'll b able to guage the concepts easily...<br/>with regards <br/> lovenesh

Speed of bit operations

668 byte By capJK at 2007-11-20 10:23:20
Hello, I was wondering how fast bitwise operations in VB.Net really are? Are they closer to Assembler Code and thereby faster than normal operations (say a normal addition for example) or do they also have to be translated to the framework and then to Assembler Code? As an example, here is some code...

Converting String Values into Table rows help

966 byte By 1druid1 at 2007-11-20 10:23:55
Hi AllI have a SQL Table that I am connected to via a dataset. The table is structured as such.Name Dept DatesJohn Doe Sash 21-08-07 / 7:30 - 8:30, 22-08-07 / 9:30 - 10:30Colin Smith Frame 23-08-07 / 12:30 - 14:30How can I have my datas...

Simple Question about Functions

609 byte By MeatLander at 2007-11-20 10:24:16
I noticed that VB.Net doesn't raise any errors when you call a function in code without designating a variable for the functions return value to to return to.In other words, this is OKPublic Sub Main()MyFunction()End SubPrivate Function MyFunction() As BooleanReturn TrueEnd FunctionMy question...

Loop through Panels

737 byte By MeatLander at 2007-11-20 10:24:17
I'm trying to loop through all of the panels on my form and move them all to a specific location. This is what I got: Dim tempPanel As System.Windows.Forms.Panel Dim panelTop As Integer = 15 Dim panelLeft As Integer = 59 ' Loop through the panels For Each...

ContextSwitchDeadlock Errormessage

1479 byte By lakshmikamaraj at 2007-11-20 10:24:40
I am executing nested for loop and the loop gets executed till it reaches 20,000... since the loop is heavy in between the loop I get the message stating "The CLR has been unable to transition from COM context 0x1a2008 to COM context 0x1a2178 for 60 seconds. The thread that owns the destination con...

How change system visual icon...

122 byte By justize at 2007-11-20 10:24:50
Does anybody know how do i change the icon of Cursors.No<br/>while Drag in VB.NET ?<br/>Thank for help.<br/>Justize.

public property in designer is greyed out..

359 byte By bjswift at 2007-11-20 10:25:08
I created a class based on datagridviewColumn, and am trying to add a public property (which I can successfully add, and call in code during run time) but it is greyed out during design time.. How can I get this public property to not be greyed out during design time so that I can set up a property...

parent menuitem with zero childs

840 byte By satish2 at 2007-11-20 10:25:11
Hi all,iam populating mainmenu from database using recursion.I have various parent child relationships,one of which is as followsprofiles-->parent menuitemadd profile-->child1edit profile--> child2now,I want that when none of above childs(neither child1 nor child2) are returned from databa...

Datasource with join and table adapter..

526 byte By bjswift at 2007-11-20 10:25:32
I am wanting to show 5 columns from one table, and one column from another, that joins using the same unique ID column (basically a description of the value in question).However, when I set up this query in my datasources, it will not automatically write out updates or inserts for my table adapter.....

WMI Object Question (Theory?)

1796 byte By High_D at 2007-11-20 10:25:45
I'm querying the EventLog on remote servers, and everything works relativly fine, however 2 of the 136 objects it's iterating through Fail on SOME of the fields. I'd just like to know why it does this...For example, For Each mgtObject In mgtCol Try...

filedialog troubles

776 byte By adamgeck at 2007-11-20 10:26:01
Hi everyone...having real trouble with this openfiledialog code:Private Sub button2_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles Button2.ClickDim openFileDialog1 AsNew OpenFileDialog()openFileDialog1.InitialDirectory = "o:\"openFileDialog1.Filter = "excel files (*.xls)|*.xls|aut...

Extension Question

970 byte By Dark Potato at 2007-11-20 10:26:19
Hey guys, I have started a major project with a work colleague and I ran into something that I couldn't figure out and I know you guru's should be able to help.So my question is this:I want the main part of my project to be able to scan for new executables within its 'Extra' fold...

Problem with Excel SELECT statement?

1045 byte By brjames32 at 2007-11-20 10:27:04
I am using the following code to retrieve some data from an Excel worksheet into a datagridview fro editing then ammending back into the worksheet:Debug.Print(ClsGrp) Dim excelCon2 As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\TutGrpPtsManager\points.xls;Extend...

Error in Control

727 byte By Kountree at 2007-11-20 10:27:19
I created a VB.Net 2005 Control which uses my custom namespace. imports Name.Division.Cube<System.Drawing.ToolboxBitmap("UserControl.bmp")> _<Serializable()> Public Class UserControl Inherits System.Windows.Forms.UserControl Implements IExtenderProvider...End ClassThe control work...

<asp:fileupload> problems with refresh

438 byte By apopescu at 2007-11-20 10:27:26
Hi.I am using this on a aspx page, and everything works just perfect only that if the user refreshes the page the file selection is gone!!!Is there a way to make that file path the user selected "stay" when the page is refreshed?The properties this control has are only get (read only). I need a way...

Control question VB. Net

150 byte By justize at 2007-11-20 10:27:58
How can I change the image of No Property (Read Only), member of<br/>Cursors when I drag something.<br/> Thanks and excuse me, I'm beginner.

how to connect FTP ?

320 byte By kee149 at 2007-11-20 10:29:57
I would like to ask how to connect to FTP (Linux server). I have username and password.I want to go into FTP and getting file name.All files are media file. My program has an dialog (showing all file name in FTP Server). Users can select any files to see movie in another dialog.ThkKee...

Saving to a spreadsheet

603 byte By WelshWarrior at 2007-11-20 10:29:58
Hi allI am writing a simple program that reads the info from a spreadsheet based on the user's selection and places it in a DataGridView. Now that part I have managed without any problems using OLEDBConnection.What I want to do is to allow the user to change certain fields and then be able to c...

How to find words in text file?

889 byte By imname at 2007-11-20 10:30:15
I have a text file which contains around 100 people information like below:name: alex age: 22mobile_no: 0123456789family_member: 4occupation: teacherI would like to write a program to get the name and mobile_no of each person. my Result should look something like this in text file:alex0123456789brya...

Console output

260 byte By danasegarane at 2007-11-20 10:30:52
Hi all,<br/>I found http://dotnet.mvps.org/dotnet/samples/misc/#RedirectConsole one to read the console output by line by line.But I am unable to detect the finishing of the console.output.How can I detect that the console application is finished<br/>Dana

Cr Xi

432 byte By GeoNav at 2007-11-20 10:31:07
Hi..I am using Crystal Report XI first time with .net 2005. I tried to create a new report with Report Viewer in a form using CRAXDDRT. I got an error message that I do not have a New Report API Licence. The Crystal Report is genuine and licenced. I tried coding similar to VB 6 and CR 8. Is it corre...

Selecting the text of textbox on enter...

427 byte By bjswift at 2007-11-20 10:31:29
Ok, is the only way to default a text box to select the text on enter is writing code in the on enter event?If I wanted to apply this logic to many text boxes, would the only option be creating an inherited class from the class textbox?If I am to do this, what other features should I create for this...

Using a button to add a value to a datagrid column

355 byte By WelshWarrior at 2007-11-20 10:31:30
I am trying to figure out how to use a button to add values to the fields in a caolum of a datagridview. I have a datagridview connected to a spreadsheet and have a button at the top of one of the columns that when pressed, should enter the value 2 into all the fields of that certain column.Is this...

form validation

810 byte By bjswift at 2007-11-20 10:31:40
Hi. I am validating some controls on a form using each control's validating property. If I need to raise an error, I set the error provider to that control with a message... How can I prevent actions from happening when the user presses a button (submit button for instance) if there is an er...

Record Locking In Vb.net 2005

410 byte By VijayReddy_Bah at 2007-11-20 10:32:17
Hi All, i am new to vb.net i am developing a multi user program in vb.net 2005 and sql server 2000 as backend. since its a multi user program if one user edit a perticular record means, the other users should not have access to the edited record.can any one help me how to lock the record and to ch...

Setup and Deployment in VB 2005 Express Edition

593 byte By flynny1st at 2007-11-20 10:34:06
Hi,This is probably an easy question but i've googled it to find nothing useful. I know that the setup and deployment project templates are not included in the Express edition of VB 2005. Is there any place i can download these files? is so where? if not how can i package my program?Secondly my...

datagridview dataError event not firing for check Constraints

598 byte By bjswift at 2007-11-20 10:34:42
I have a datagridview and use the dataError event to display errors about null values, and primary key constraint problems. This works fine, but a newly added check constraint was added, to prevent data, and only allowing values (for example) 00-99 in.The Datagridview.dataerror event is not firing...

logon/logoff and keep track of application used by the user.

467 byte By kvk at 2007-11-20 10:34:51
hi, this is my task to be done.i have 20 computers and one server. i have to connect them in LAN. the OS on every computer is windows XP professional. An SQL Server 2000 is running on server. I have to develop a login/logoff screen and record the applications used by the user in SQL Server. Reco...

Drawing.image Timeout?

1525 byte By MeatLander at 2007-11-20 10:34:57
I have a program that loads an image from the internet given it's URL. Pretty common stuff. But, I want to set a timeout feature that will stop the loading process of the image and display a timeout message if the image takes too long to load. But I don't know how... any ideas?Here's...

Word 2003 Automation Hiccup

10475 byte By sotoasty at 2007-11-20 10:35:13
I am in the process of converting a vb6 app to 2005.net. Part of the code generates word documents from templates. The tables in word most of the font formatting are already in the template document. Following is the code that is used to generate the doc. Private Sub CreateDocMultiIPI(ByVal In...

Access Rights

751 byte By 1druid1 at 2007-11-20 10:35:32
Hi AllI use a little prog called Dumpsec to dump all the access rights to files and folders for my network.. This is a good product for straight print out copies, unfortuantly it is not good for doing specific searches for like a full view of what a particular user has access to and what access righ...

MDI & MDI Child Forms Menus in VB2005

926 byte By yulyos at 2007-11-20 10:35:40
Hi,I'm using VB2005I have an Mdi form and he have a MenuStrip in the properties I define the AllowMerge=False In the SubMenus of the MenuStrip there is some ShortcutKeysI have also Child Form name Form1 and also he have a MenuStrip in the properties I define the AllowMerge=FalseIn the SubMenus...

Tab order on the TabControl

311 byte By bjswift at 2007-11-20 10:35:54
How do I set it up so that when the user tabs through some controls inside a tab page, when they tab out of the last control on that page, it moves the tabControl to the next page, and focuses the first control in that page?I do not see any tab order for each page...Thanks,Brandon...

Xml/Collection Best practice question (theory)

572 byte By High_D at 2007-11-20 10:36:03
I've got a DB class that I use to handle anything related to reading xml data or SQL2000 queries. What should I be doing to return those to the main app without having to use System.xml (I'd like to consolidate all xml in the DB class)? The nodes I need to read have attributes assigned t...

VB.Net -- selecting only one column in Excel for a datagrid

980 byte By csmith at 2007-11-20 10:36:07
Hi all!I am accessing an excel spreadsheet from VB.Net with the code below. I only need column C though from the spreadsheet. Is there a way to pull only that column (it's not named)? Is there a way to only pull that column from the dataset before merging with the global dataset that has onl...

Combo Box in Vb.Net

1762 byte By g1m0v0n5 at 2007-11-20 10:37:04
Hello,I have one combobox in my form in vb.net 2005. In that combobox I am adding all Personnames from database using form1_load event.Now the problem is,If I type some character in combobox then it should check the entire data in database or combobox and the data should be sorted out according to t...

i jz started to learn vb.net - my 1st programming language

373 byte By allen81 at 2007-11-20 10:37:05
***************in order to have the output as abv, i code in ths way:<%Dim a,b As IntegerFor a=1 to 5For b=0 to a-1response.write("*")next bresponse.write("<br>")next i %>How abt * ********How should i code that?...

master /slave

947 byte By jagguy at 2007-11-20 10:37:28
hi,i can connect to a database with binding controls using a datagrid and textbox.What I am a little hazy about is when i want to update a record to 1 table i want to automatically update all the required rows in another table as a master/slave type table setup. eg 1 to many relationship.It is a co...

save files with different file type

340 byte By imname at 2007-11-20 10:38:09
How can I save a new file which has the same file name but different file type with the existing files?Example:Save an existing abc.txt file to a new abc.tb I did it by hard coding the file name. However it is not convenience to user. I would like to avoid hard coding the file name in my program. Th...

Conversion of a double

502 byte By LenHeard at 2007-11-20 10:38:13
Can someone please help me.. I am trying to read a datafile created by (I think) Turbo C++... In the file is a double refering to the quantity of something... VB does not read the double correctly, and it therefor needs to be converted...for instance... 8A00000000000000 = 512 but if I save 512 with...

pay service?

127 byte By jagguy at 2007-11-20 10:38:26
is there a pay service for vb.net help?<br/>I am finding learning VB.net just too slow and google is not speeding this up.

Menu question

695 byte By Dark Potato at 2007-11-20 10:38:33
I saw this little program http://portableapps.com/ and I would like to be able to do something similar but I need some help. I would like to know how to display applications like this, with their names on the right hand side of them, including their icon which would be on their left in a nice, scrol...

[RESOLVED] [2003] Reorder Listview rows

456 byte By HanneSThEGreaT at 2007-11-20 10:38:48
Hello guys. I'm not in the mood for this "update" which is now all of a sudden needed in one of my programs. I guess people will never be satisfied with everything.Anyways, How can I reorder the items in a listview, like they want "Move Up" "Move down".I've been dabbing around with this...

VS 2005 referncing files?

411 byte By High_D at 2007-11-20 10:38:51
My solution has three projects associated with it, a service and two forms. I've got a DB class that is used in all three.How do I setup the solution/projects so the forms just refernce that class? I did Add existing Item, but it just made a copy in that projects directory and I keep having t...

[2003] Retrieving Namespace? of shortcut

1670 byte By Nebulus at 2007-11-20 10:39:02
[1/6 issues remaining] Use shortcut's name instead of shortcut target nameWell, here's the deal: I'm setting an open file dialog box to default to the users desktop, and retrieve the file path of the shortcut. I'd also like to retrieve the name of the shortcut, not the name of th...

Manually load Microsoft.Office.Interop.Excel.dll

311 byte By caperover2002 at 2007-11-20 10:39:10
Hi, All,My .Net assemlly, which depends on Microsoft.Office.Interop.Excel.dll, is not working. I want to test if Excel can load the right version of this supporting dll. Is there any way to load Microsoft.Office.Interop.Excel.dll through VBA code just like LoadLibrary()?Thanks,Mingyang...