Answer Questions
Raja-India Inserting Text
I was wondering what the code was for inserting text like the buttons in the windows calculator. Let's say you have a textbox to display the number, and ten buttons 0 through 9. The code would be something like: Private Sub button0_Click(...) textBox1.Text &= "0" End Sub Private Sub button1_Click(...) textBox1.Text &= "1" End Sub Thanx I ...Show All
PharmerNick Dynamic Type Converion
Hi I need method "ToType" that takes value and type as parameter and converts it to respective type. dim val as String = "1" dim paramType as Type = Type.GetType("System.Int16") dim myint as Int16 = ToType(val,paramType) Regards Dipesh If you hadn't rushed to answer then you would have read the subject. That clearly says "Dynamic Type Conversion". Hope you take ...Show All
Kent Glossop AnalogTVTuningSpace and MSVidCtl
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as desc ...Show All
Ikky Datagrid with Combobox column - Null values
Hi all, I've done some programming before but am new to VB 2005 and to databases. Up until now I've managed to solve all my problems by gleaning information from MSDN and other web sources but this one has get me stumped! I have a DataGrid bound to 'WireList' table in a database. One of the columns in the DataGrid is set as a ComboBox bound to 'Terminal' table in the database. The idea being that the user can select an item from the Com ...Show All
hYp3r57231 Selecting the Row under the mouse cursor automatically
I have a datagridview with a context menu. Options in the context menu use details from the currently selected row in the datagrid. I want to be able to have the currently selected row in the datagrid change, each time the right mouse button is clicked. Ie, if the user right clicks anywhere in the grid to get the context menu, then the selected row is change immediately to the row underneath the cursor. Sort of like the following scenar ...Show All
phil_t50 Programatically Reading the Headers of an email in Outlook Express (senders Email)
Hi, I have managed to write some code for accessing the email headers and retreiving the sende4rs email address using Outlook. However I can not seem to understand how to access the same info using Outlook Express. I am trying to use Simple MAPI and The MAPIRead function. However I do not know how to get the correct pointer to the email i need. I have heard Simple MAPI and OutLook Express can not access COM objects, is this correct. Does any ...Show All
The Traveling Conultant hopefully another easy question about font!
As I was helped alot last time I hope you can help again! my problem is this code: frmMain.rtfMainText.SelectionFont = New Font(strCurrentFont.FontFamily, strCurrentFont.Size, strNewFontStyle) I can have italics, underline and bold in strNewFontStyle But how for example could I have the font style of some text as bold AND italics at the same time Hope someone can help! ...Show All
Xordan convert graphic to bitmap
I have dawn a graph on a graphic and is need to convert this to a bitmap. How do I do this Next i need to disply the bitmap and draw more graphs on it. How is it done Any advise would be appreciated. Thanks in advance. Dim b as Bitmap = new Bitmap(400, 400, PixelFormat.whatever) Dim plot as Graphics = Graphics.FromBitmap(b) Now do your drawing as before b.Save("myFile.bmp") Now you can load it with Dim ...Show All
firestorm79 bit depth
hi ppl.. i want to know if we can convert jpeg file to bmp file while we restore the bit depth (24 bit in jpeg format) to (8 bit in bmp format) which is changed by default (by editing in mspaint) ... u can see such bitmap file in urs "c:\document & settings\"(current user)"\local settings\microsoft\application data\ " folder which file is actually the one set as background on ur desktop You can creat ...Show All
NightOwl888 Pocket Pc
I have a problem whit I run my application and chose Pockte Pc 2003 Device, but it does not work, because it shows the following error: The specified program requires a newer version of Windows on the device. What is the problem. it can help me. Thanks . I guess you simpley need a newer version of windows mobile on your pocket PC or, if you cant upgrade, a new pocket PC where I can download the new versi ...Show All
Jason Frazier -MSFT- No editor for ".vb" in VS2005 Beta2
Hi, I have received the VS2005 Beta2 DVD from Microsoft last week, installed it, and it worked fine for a couple of days. Then I went to the .resx file to edit some resource for the project. I then come back to open the .vb file and there it goes, the editor is replaced by a "Catastrophic Error" page (not an error dialog box) sayiong something is wrong with the VB editor. I quit the IDE and reopen, then reload the vb project u ...Show All
arturm ShowWithoutActivation does nothing???
I have added Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean Get Return True End Get End Property to my "test form" and open it using a timer from my "Form 1" but if you keep typing into the text box on form 1 when test form opens the textbox on form 1 looses its focus... It may be me doing somthing stupid so i have uploaded a test project so you can se ...Show All
mamrg Print a list of Word files or convert them to a single PDF.
Hi, I have a list of word files in array. I want to convert all of them to a PDF file, and each file will start in a different page. Does someone know how I didn't, then I tried to print them to the PDF Factory printer, and when I print , it shows that each file have one page, and they don't. It even doesn't show the file in the preview. What to do Thanks, Ofir. P.S. This is the code for the print, Print is the print di ...Show All
scourge VB2005 Express b2: Where are the libraries?
I'm doing some dabbling with VB, and I want to write a tiny windowless app that can intercept APM suspend events and deny them. This sounds like a very simple 50-line program, so I'm not too keen on dropping $800 for the full VB Studio to do it. :) I've download the VB 2005 Express b2 to see what can be done, and I'm not finding much of anything for libraries included with it (*.h or *.lib). My experience has so far been with the MSDOS ...Show All
Antao Almada 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
