Answer Questions
Thomas Greenleaf Printing DatagridView
HI, I need help on this. I already have a populated datagridview and i need to print it. Whats the easiest way to do this in vb.net Thank you so much in advance! Stanley Hi Am going to try. Where can I get a sample code the one youmentioned does'nt work Thanks Duchan Hi, Look at using the PrintForms power-pack from here.>> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=747347&SiteID=1 Alternatively: 1) Hit the PrintScreen key. 2)a) Run a Paint program or photoshop or similiar. 2)b) To RUN MSPaint go to the START button for windows, then select RUN and type in MSPAINT 3) PASTE it into that program and PRINT it f ...Show All
UncleSam89 Is there any way to autoclick with the mouse?
Hi. It's me again. I was wondering, (and I'll probably get a simple answer that I could've figured out on my own.) is there any way to make the mouse move to a certain point on the screen, and then click by itself Thanks. This thread shows a program that displays the mouse cursor position, even if it is located over another app's window. Note that this is almost certainly not what you want, a window could be located anywhere, depending on the position of the window frame. Search the forums for "FindWindow" and "EnumChildWindows". Also, learn how to use Spy++ to discover window properties. You don't physically have to mouse the mouse, just generate the messages as though the ...Show All
Ossie Bucko Compile VB to one EXE
Hi, I made a Visual Basic program, using Visual Basic Express Edition 2005. It contains several files, after it is published. Is it possible to compile these into one exe file that the user can run Create a setup to install the application. Click Once should enable you to deploy the application to a file share / web server and allow for a simple deployment from by using a URL. Otherwise if you have a version other than express - you can create a windows installer application. How do I make the setup Sorry, I am fairly new to this. I am 95% sure I have the express edition. Thanks a lot. Scott g yes, it does fo ...Show All
NoEgo counting digits in an integer
I need to count the number of digits in an integer input by the user. In other words if the user enters 101010, I need to obtain the value of 6, because there are 6 digits in this number. Can someone help me Convert the integer to a string and use the Length property. If you are using an input from a textbox or inputbox, it's already a string. Then just do this: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim N As Integer N = TextBox1.Text.Length TextBox2.Text = N.ToString End Sub If it's a console application, the input variable assigned with Console.ReadLine is a also a string. I'd wra ...Show All
John Barton VB 2005 Express false compiler error
I have a VB 2005 WinForms Project which is giving what I think is a false error. On the Designer screen for the main form (which normally displays the form layout etc.) I get: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. '.ctor' is not a valid identifier. Hide at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService.ValidateMethodName(String methodName) at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSeriali ...Show All
Naldai_ VB6 Forms in .NET 3.0 application
Hi, I've seen a few people talk about how it is possible to extend a VB6 application with .NET forms. However, what I haven't found yet is people talking about hosting VB6 controls and forms in a .NET exe. Is this possible The scenario I have been asked to look at is one where we want to take our existing large VB6 windows app and give it a new shell initially, ultimately convert all to .NET. The application has many many forms as well as quite a few activex business objects. Ideally what I wanted to do was to write a new shell for the application (shell as in main UI, menus and basic naviation) in WPF and then use the existing VB6 forms and contained logic once a menu or command has been selected. I'm not convinced whether thi ...Show All
Spyrrho Developing Chart Of Accounts - How to use trees & tree nodes
Hello i m making an accounting application, i m developing a form that loads the company's COA, i want to show the copp's COA in tree my question is how does i make a child node in the tree how do i keep track where is the root node, where is the 1st level 2d level node etc i have a sample in vb 6 which is a piece of cake but haven't got one single in vb.net i m using vb.net 2003, please help also tell how do we sort a data table in vb.net is there some1 who has experience of developing an accounting business application, he/she must have gone through the Chart of accounts module which deserves a tree view, what i simply wanna do is to master tree vew control, populate it through database records, analyze ...Show All
Messs17 Web Browser project
I am working on a very simple browser, mainly for quick web surfing without the need of menus, favorites, and other fancy features seen in other browsers. The problem is, im quite new to this programming language, and i barely got anything out of what little time i had in Introduction to Computer Programming (using Visual Basic 6.0) before being pulled out of that class to make up a required credit. Im clueless as to how to get the WebBrowser object to respond to the input in the AddressBar, and display the site the user types. Any help on this would be really greatful. Thanks Hi Vashnik, I recently dealed with this project aswell and I believe I might be of some assistance. One suggestion might be to make the 'Go' button activate ...Show All
David Luu OpenFileDialog Question
I have the following code written for the opening of a BMP image from the File...Open on my menustrip. Private Sub OpenToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click OpenFileDialog1.Filter = "Image Files (*.bmp)|*.bmp" If OpenFileDialog1.ShowDialog() = DialogResult.OK Then Dim fileName As [String] = OpenFileDialog1.FileName End If End Sub I tryed it out and it worked, but i have a small question.....How can i change the default name that appears in the file name of the window browser It is set to "OpenFileDialog1" How can i change it to an empty space EDIT: I just added a picture ...Show All
tasleemarif Creating a program that restarts a server
I wouldn't be asking this if it weren't for someone that has exploited a bug in our Server and has been using it to run two instances thus shutting it down, now I would like to make a (FREE!) program that restarts the server if it should hang, shut down, or lock up giving a run time error. I have looked through an infinite amount of forums, thumbed through my books and I can't seem to find anything of help. We could use this ASAP and if anyone is willing to help it would be much appreciated. I was thinking something simple, but I can't quite figure it out, something like: if system.diagnostics.process. (C:\______) then system.diagnostics.process.start(C:\_____) end if I would like to thank everyone in advance Well ...Show All
jermu Windows Application
I am curious how to code to use a Calculation Button. What I need to do is finish a program I've started but I am stuck. Needed information: Calculate - declare variables : total credit hours, new hours, prior hours, a loop index as integers total grade points, semester gpa, new cumulative gpa, new points, prior gpa, all as doubles write a for loop that iterates through the 2 array lists( hours and points) and adds each element to the totals if the total hours is greater than zero, calculate the semester average = total points divided by total hours set the semester average text box to the results, formatted to 2 decimals process the new cumulative average retrieve the prior gpa and ...Show All
cpaw88 How do I make a variable available to another form?
How do I make a variable available to another form I am trying to use a variable from one user control on another. Can anyone help I've woke up now! Sorry about that one! One option is to stored your variable in the session cache. ' This method does not require navigation between the two pages ' and will persist the object in the cache until removed ' add an item to the session cache on page one Dim myObj As Integer Session.Add( "myItem" , myObj) ' retrieve on a different page Dim retrievedObj As Integer retrievedObj = Session.Item( "myItem" ) If Not Nothing = retrievedObj The ...Show All
Prabu. how I can get the name of last event in VB.NET?
Hello, I need to know how I can obtain the name of a current triggerred event in a such code: Private Sub dene(ByVal sender As Object, ByVal e As EventArgs) _ Handles btnOne.MouseHover, btnTwo.MouseHover, btnTwo.gotfocus, btnTwo.lostfocus Dim clickedCtrl As Control clickedCtrl = DirectCast(sender, Control) lblDisplay.Text = clickedCtrl.Name ‘.... name of the control ........ ' ----here I need to know where come here, for example from gotfocus of btnTwo or lostfocus of '....btnTwo in the list of Handles keyword. End Sub Could you please tell me about how I can get the name of last event in VB.NET Thanks nuranozcanli@bil-kay.com Nuran Dim TheButtonThatSentTheEvent as Button = Directcast(Sender,Button) Mes ...Show All
quiklearner Application Configuration
Hello. A question, please. I am working with VS 2005. I don't find how can I set the working enviroment. I mean DEBUG, RELEASE. I know that I must see a bouton called SOLUTION CONFIGURATION, but I dont have it. Can anyone help me Thanks... In my Visual Basic Express... there isn't... Thanks. Not, I have the professional edition. Thanks. If I go to Build menu, I don't have the Configuration Manager into. I have 7 options (Build, rebuild and clean for the solution) (build, rebuild and clean for the projet) and publish the projet. And If I do right-click on the toolbar and I add the "build" option, I have 3 options (b ...Show All
paso how to query task manager and task schedular
Hi Can any body tell me how can i see what tasks are running on my machine under task manager and sheduler task using vb.net or asp.net.. I would appriciate if anybody can provide me code example for it Please reply ASAP Thanks Gurvinder Hello I have made a app before that is almost like the Task manager. you know, kill processes, list processes, and stuff. It's easy once you start exploring the Process Class. Just type "Process" without quotes then a dot, then just go one by one with reading the descriptions. It should help you. Also, a quick search can do a good work for you. Keehun Hi guys, Thanks for your help. I later came up with this Imports System.Diagnostics Dim ...Show All
