|
Hi..
I want to add hotkey functionality to a VB6 form..
but I can't find a control that can help ..
any help please ?
|
|
|
|
|
Do you mean the type of hotkeys where a letter of the caption is underlined and you must press "Alt" plus the letter to access it? If that is the case, you must use "&" in front of the letter you wish underlined in the caption. For example, to make the "C" of a cancel button the hotkey, the caption would be typed as this: "&Cancel"
Hope that helps.
|
|
|
|
|
thank you for your reply ..
but mean to support function keys (F1-F12)
I made it by setting the form's KeyPreview property to True
and check for the KeyCode in the keydown event
|
|
|
|
|
I want to add a sum in a textbox from a list of numbers in vb6 and it's not working
sum = 0
i = 0
For i = 1 To List1.ListCount
sum = sum + List1.Text
Next 1
Text1.Text = sum
Thankm you for helping me
|
|
|
|
|
This looks like a homework assignment of sorts. I'll give you a couple of hints.
1) VB starts counting at 0 by default.
2) List controls do not have a "Text" attribute. You will need to find a method that will allow you to access each item in the list independently.
Good luck.
|
|
|
|
|
I am stock I need more help please
Thank you
|
|
|
|
|
Investigate the "List" property of the List object.
<br />
List1.List()<br />
|
|
|
|
|
I decided a fun project to work on would be a VB app that would log on to my Yahoo! mail account, copy the messages into files on my machine, and then delete the messages online. As easy as it is to use OpenUrl, the project is still proving to be a bit outside the scope of my current abilities.
My problem is that when I use OpenUrl on a url that I am currently forcing the user to copy and paste, the cookies required aren't being accessed through my program and I am unsure how to do that. Any suggestions?
Thanks,
Andrew
|
|
|
|
|
The datagrid has edit, update, cancel and delete functionality.
On edit the dropdownlist becomes visible and is populated by a dataset using a stored procedure. I want my users to be able to only select specific [valid] regions.
I need to know how to pass the dropdownlist1.selecteditem.value to the update function [it seems to be going out of scope] so that I can write back the changes.
dropdownlist_selectindexchanged doesn't return a value
Any ideas?
|
|
|
|
|
Hi, I am a vb6 programmer who is about to embark in vb.net. I was wondering if someone could recommend me any GOOD books out there for people beginning vb.net? Thanks a lot
VB is as VB does!
|
|
|
|
|
Ok, I am halfway done for implementing my telephony application and I encountered a major problem. I am using a ZOOM USB Modem and was stunned to learn that it is half duplex. When I dial the phone, and the voice mail answers I can set tones and transmit voice, but I cannot hear what is going on at the other end. How do I switch from a send state to listening state?
|
|
|
|
|
I am working on a multiframe .Tiff editor. I am trying to save several .tiff files into one file. There is C# example in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawingimagingencoderclasssaveflagtopic.asp
I have converted it to VB .NET.
private sub SaveTiff()
Dim multi As Bitmap
Dim page2 As Bitmap
Dim page3 As Bitmap
Dim myImageCodecInfo As ImageCodecInfo
Dim myEncoder As Encoder
Dim myEncoderParameter As EncoderParameter
Dim myEncoderParameters As EncoderParameters
' Create three Bitmap objects.
multi = New Bitmap("0.tif")
page2 = New Bitmap("1.tif")
page3 = New Bitmap("2.tif")
' Get an ImageCodecInfo object that represents the TIFF codec.
myImageCodecInfo = GetEncoderInfo("image/Tiff")
' Create an Encoder object based on the GUID
' for the SaveFlag parameter category.
myEncoder = Encoder.SaveFlag
' Create an EncoderParameters object.
' An EncoderParameters object has an array of EncoderParameter
' objects. In this case, there is only one
' EncoderParameter object in the array.
myEncoderParameters = New EncoderParameters(1)
' Save the first page (frame).
myEncoderParameter = New EncoderParameter(myEncoder, CLng(EncoderValue.MultiFrame))
myEncoderParameters.Param(0) = myEncoderParameter
multi.Save("C:\Projects\FaxView\save.tif", myImageCodecInfo, myEncoderParameters)
' Save the second page (frame).
myEncoderParameter = New EncoderParameter(myEncoder, CLng(EncoderValue.FrameDimensionPage))
myEncoderParameters.Param(0) = myEncoderParameter
multi.SaveAdd(page2, myEncoderParameters)
' Save the third page (frame).
myEncoderParameter = New EncoderParameter(myEncoder, CLng(EncoderValue.FrameDimensionPage))
myEncoderParameters.Param(0) = myEncoderParameter
multi.SaveAdd(page3, myEncoderParameters)
' Close the multiple-frame file.
myEncoderParameter = New EncoderParameter(myEncoder, CLng(EncoderValue.Flush))
myEncoderParameters.Param(0) = myEncoderParameter
multi.SaveAdd(myEncoderParameters)
end sub
Private Shared Function GetEncoderInfo(ByVal mimeType As [String]) As
ImageCodecInfo
Dim j As Integer
Dim encoders() As ImageCodecInfo
encoders = ImageCodecInfo.GetImageEncoders()
j = 0
While j < encoders.Length
If encoders(j).MimeType = mimeType Then
Return encoders(j)
End If
j = j + 1
End While
Return Nothing
End Function
myImageCodecInfo is retunring nothing. In the GetEncoderInfo function I am increasing j by + 1. But in the MSDN c# example it is missing. If i don't increase J by +1, gives infinite loop.
If you have any idea why it is happening, that would be great be great. Thanks
Zulfikar Ali
|
|
|
|
|
I figured it out:
'Get an ImageCodecInfo object that represents the TIFF codec.
myImageCodecInfo = GetEncoderInfo("image/Tiff")
Private Shared Function GetEncoderInfo(ByVal mimeType As [String]) As ImageCodecInfo
Dim i As Integer
Dim encoders() As ImageCodecInfo
encoders = ImageCodecInfo.GetImageEncoders()
For i = 0 To (encoders.Length - 1)
If (encoders(i).MimeType = mimeType) Then
Return encoders(i)
End If
Next i
End Function 'GetEncoderInfo
Zulfikar Ali
|
|
|
|
|
Hi there,
When I add a new data environment y right-click on conection porperties the machine says that It's missing the data source locator, I do know what's that nor how to make the data environment work.
Any tips?
Thanks
Ale
|
|
|
|
|
help me please!
I have a form and ProgressBar on it.
I want to close form by clicking on button while progressbar is steping.
But it only work when progressbar ends steping.
form is showdialog
Please help!!
|
|
|
|
|
Hello All,
The sample code below can be used to send a mail message using the Outlook. How to make that generic to pick the default mail client?
*********************************************
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
myAttachments.Add "C:\Hello.txt", olByValue, 1, "Hello World"
Set myRecipient = myItem.Recipients.Add("rainadeepti@rediffmail.com")
'save the item before sending it off.
myItem.Save
myItem.Display
*********************************************
Thanks,
Deepti
|
|
|
|
|
Can anyone tell me what are the problems, shortcomings and bugs related to M$ Winsock control. Many VB developers use it but most of them i've observed are not pleased with this control.
|
|
|
|
|
I'm trying to create a User Control in VB.NET. I think the project to use is the Windows Control Library. It looks like the VB6 User Control environment but it compiles to a DLL file that can only be referenced. When I reference it from another project, I'm not sure how to create an instance of the control (other than through code). The control doesn't show up in the toolbox.
Ain't codin fun?
|
|
|
|
|
|
VB sucks, but it does support recursion.
Your incessant rantings indicate you have a brain the size of a pea, and the mental capacity of a bag of hammers. - John Simmons
|
|
|
|
|
VB sucks
Agreed.
but it does support recursion.
Thanks.
|
|
|
|
|
function DoesVBSupportRecursion()
DoesVBSupportRecursion = DoesVBSupportRecursion()
end function
|
|
|
|
|
What surprises me about this question is how few seconds it would take him to find out for himself.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
You are assuming he knows what's recursion.
Your incessant rantings indicate you have a brain the size of a pea, and the mental capacity of a bag of hammers. - John Simmons
|
|
|
|
|
if he doesn't, why is he asking ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|