|
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
|
|
|
|
|
Because he was nothing but a no good troller comming into the VB group and bashing VB.
Don't like it, stay the hell out.
We don't come into the C++ group and complain about your language.
|
|
|
|
|
*Christian looks around him*
Nice place you've got here, don't think I've ever visited before......
*Christian packs up his sig and runs for his life....*
Christian
No offense, but I don't really want to encourage the creation of another Logo developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. Pascal has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of Fortran and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
encourage the creation of another Logo developer
I always hated Logo
|
|
|
|
|
I simply refer to this place as: Hell.
I try not to spend too much time here. I feel like Dante, he could see the suffering around him, but couldn't help them out of it.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Maybe it's just his homework
Your incessant rantings indicate you have a brain the size of a pea, and the mental capacity of a bag of hammers. - John Simmons
|
|
|
|
|
Hi All:
I have a peculiar Challenge and need a work around.There is a form that my application uses which has a drop down list being populated at run time.And there can be a case when there is no data to populate it.
Apart from the data being populated i want the dropdownlist to have the option "Select one by clicking" as the default selected option in this listbox.I have managed to do it by the commands txt_listbox.items.add and then selected the option using txt_listbox.items.findbytext("---").selected=true
but then the challenge is this option though gets selected is the last item on my dropdown listbox after all the data from the datatbase..But i want it to be the first..How do i do that.
If i try adding this entry and then populating from the database the database entries wipe out this entry or i get some nasty errors.
Any help is greatly appreciated..
Regards
Pradhip.S
If a Building is Completed then why do they call it BUILDING ??
|
|
|
|
|
<br />
txt_listbox.items.insert(0,"Select one by clicking")<br />
txt_listbox.setselected(0,true)<br />
Hopefully that will work.
|
|
|
|
|
Anyone know of a good component or tool for VB.NET that will manipulate image(s) stored in SQL BLOB fields? I'm looking for something that will convert on the fly to jpeg, gif or some other smaller compressed format.
|
|
|
|
|
I am developing an application which needs to update the Tahoma.ttf font on Win9x machines (update means to delete and then insert) . According to MSDN, to delete font from Fonts directory, one needs to call RemoveFontResource(font-file) and SendMessage(...) to notify all top level windows.
Now I am getting problem when doing this.
Similarly if I do this from Windows Control Panel, it successfully updates the font file.
Please help in this regard.
BR
Dammy More
|
|
|
|