Answer Questions
Lars Larsson Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
Gautel How does VB compare to C# part 2
I am sorry but my question was NOT answered at least not technically. But, what is clear is that there is a lot of strong feeling against VB's syntax that does not exist against C#. Several post indicated that they would not hire a VB programmer unless they programmed in C# syntax. I really find that disappointing. I thought the purpose of the framework having several syntaxes was to promote choice for the developer and make that choice s ...Show All
tom025 Chr$ VB Express 2005 Beta 2
Hi all, I would like to convert: - MSComm1.Output = Chr$(254) <== VB6 Code I've Created a "Button" on a Form, is the code below correct Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Using com1 As IO.Ports.SerialPort = _ My.Computer.Ports.OpenSerialPort("COM1") &nb ...Show All
bizhaoqi called form hangs upon exit & and does not return to calling form - what can I do?
Hi, I'm having a difficult time with an occassional hang on a form that is being exited back to its calling main form and would like some guidance. The problem is occurring every once in a while and is difficult to locate and would like some help on where to look and possible remidies. I'm calling the Close() routine when an exit button is pressed. The form appears to be exiting but return to the main program is not reached. I have to stop t ...Show All
pollie32 how can i change the printer port 's setting?
For example,I hava a printer on com1,it'setting is "9600,n,8,1".How can I change the setting to "19200,n,8,1" in my application I'm studying visual basic 6.0 now.I wan't to use MSComm, Can I use api Hope your helps,thank you! ...Show All
Martinro73 Create control collection dynamically in Vb2005
Hi, does anyone know if you can create a vartiable number of controls(labels) dynamically in vb2005. Add design time the number of controls and names are unknown. If you need to convert to a Label then: Private Sub Label_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Dim lbl As Label = DirectCast (sender, Label) Messagebox.Show( Me .Controls.IndexOf(lbl).ToS ...Show All
MartinBrill Saving Image as jpg with particular size into access database
I want to save image from picture box into access database with size of 400x300, regardless of whatever the original size of picture in the picture box. 1). For example The Picture may be Desk or Chair. Chair size may be 50x75 varias Desk size might be 400x300. The rest area of Chair picture should be saved as transparent or white space into the database. So when we retreive the picture it won't be distorted. Can anyone help me to ...Show All
Utkarsh Delay or Pause
Hi, I have Kiosk application which starts the browser inside the Kiosk. But due to wireless, I have to pause the start of the application so that wireless should first kicks in and then the applications starts.. My VB program conatains a browser control. Here is sample code Me .webBrowser.Focus() Me.webBroser.Navigage("LoadingPage.htm") System.Threading.Thread.Sleep(20000) Me .webBrowser.Navigate(URL) Where URL is on the s ...Show All
Priya Lakshminarayanan - MSFT Image2PDF? How
Hi all, I want to convert images to PDF (in ordered lists), anyone can help me I looked over the net but can not find the sample code. Pls help. thanks all You don't have to buy. I use this tool (its Freeware!!): http://sourceforge.net/project/showfiles.php group_id=78685 it works great, is easy to use. The download contains a lot of sample, such as how to include Pictures in your PDF, etc.... Thanks for ...Show All
gchafee Sammary to class
I want to add Summary description to my class in mind i use VB.NET If you go to your project properties and go to the Compile page. At the bottom is a checkbox that you want to make sure is checked that says "Generate XML documentation file" Now, in your code, right at the beginning of a method signature, like where it says Public Sub Foo, put your cursor at the beginning of the line Then, type three single qu ...Show All
pippyn how to enumerate syslistview32 items in VB.NET
i am working on a vb.net code that read a syslistview32 in external program & extract the items text using API Calls. The furthest i got was to get the count of items in the list : count = SendMessage(hwnd, LVM_GETITEMCOUNT, 0, 0) the Question is how to loop through these items and get the text of each. I searched the web & I ended up with examples written in VB 6. It is difficult for me to migrate to vb.net ,, ...Show All
Marcus Garcia Displaying at Pixel Level in VB 2005
I want to generate a graphic in a picture box control where the color of each pixel is determined by particular values calculated for each pixel. These values are manipulated in such a way that I come up with three values (each in the range 0-155) and I want to use these for the RGB values of the color of the associated pixel. My question is: In VB 2005 how do I set a particular pixel to a color with a given set of RGB values In VB 6 I used ...Show All
TalEran Safely Remove Hardware
How to write vb code to unplug or eject the USB Storage Device safely I'm afraid the answer to that is "only with great difficulty". I looked into this a while back, and it's not even a VB problem: Microsoft recently relegated various required DDK/SDK functions to "undocumented" status, meaning it's impossible to guarantee that code using them will work across all supported versions of Windows. Especially 9x and Vista could be problemati ...Show All
Frank D Hotkey API Question
I need to make a hook which captures the Printscreen key in any combination (eg Alt+PrintScreen). My application will be running from the taskbar, so there will be no focus. After reading an article (found here: http://www.developerfusion.co.uk/show/271/ ), I was even more confused then before, and was wondering if anyone could explain how I would start I am using Visual Basic .NET. Thank you for your interest. Robert Hoath ...Show All
Karlo47 Is there a way to make executable applications in VB .NET Express Edition?
Please Respond. A rather blunt answer but the point is correct. Some learning resources include http://msdn.microsoft.com/vstudio/express/vb/easytolearn/ You can download VB Express for free and start working through these examples. The product is about as easy as your going to get and it sounds like you just basically need to work through a few examples start using the product. We all had to start somewhere..... ...Show All
