|
|
Try using Start --> All Programs --> Visual Studio.NET 2003 --> Microsoft Visual Studio.NET 2003 or if you have a different version it might go slightly different, but try doing something first before asking. Might solve a lot.
--Zaegra--
|
|
|
|
|
Buy a book and work through it before asking questions like this one. There's no way anyone can answer you in a meaningful way, as you'll have seen from the responses you've got.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi!
I have an embeded resource as wav file (hello.wav) and I would like to play it with my.computer.Audio.Play(). How can I do that?
Thanks
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
A little Google goes a long way... Results[^]
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
i want the combo box that accepts only capital letters.
|
|
|
|
|
I'm sure you do. How does VB.NET reflect this, and give people any idea of what you're asking ? Imagine if everyone typed the name of the forum into the header, how hard the forum would be to read.
You can handle the keypress event and either replace the character typed with a capital, or reject it if it isn't a capital.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Try the following code on the keypress event
If (e.KeyChar = "A") Then
e.handled=true
else
e.handled=false
End If
hope this may help u.
|
|
|
|
|
Hello,
I have 2 images, both loaded into pictureboxes. Now, i want to compare them using the GetPixel method (i know i al typed this before )
I tried the following: (the images have the same size)
but it does not work
Dim btm1 as new bitmap(picturebox1.image)
Dim btm2 as new bitmap(picturebox2.image)
dim i as integer
dim j as integer
for i = 1 to btm1.width
for j = 1 to btm1.height
Dim pixg1 as color
Dim pixg2 as color
pixg1 = btm1.getpixel(i,j)
pixg2 = btm2.getpixel(i,j)
If NOT pixg1 = pixg2 Then
...
End If
next j
next i
Can someone please give me the code to compare 2 images loaded into picturebox by going over each pixel using the GetPixel method it is kind of urgent
Thanks in advance,
--Zaegra--
|
|
|
|
|
Zaegra wrote: know i al typed this before
Yes, over and over. Why not reply to my response ?
Zaegra wrote: Dim btm1 as new bitmap(picturebox1.image)
Dim btm2 as new bitmap(picturebox2.image)
Wow, that's not convoluted. Why can't it be the same image, instead of a copy ?
Zaegra wrote: for i = 1 to btm1.width
for j = 1 to btm1.height
They are 0 indexed, and should end at height-1 and width-1 or they will throw an exception. They should also be called x and y for readability.
FWIW, this is also going to be very slow. VB.NET cannot do it faster, but C# can. How big are these images and how often do you need to do this ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
well the images are screenshots so the size depends on the resolution of the screen, but their minimum size will be 800x600 and the maximum size 1280x1024. (I am trying to make a program which automatically saves screenshots in an imagelist when the PrintScreen button is pressed but since my program does not respond at key presses if it is not activated i will need a timer which will compare the images and if they don't match, add the screenshot to the imagelist.) Can you help me out please? if you have a different solution, always welcome! (Btw, thanks for helping)
--Zaegra--
|
|
|
|
|
OK, by the time your comparison code ends, the screen will have changed.
Read my C# image processing articles for how to access the bits of a bitmap directly. From thre, writing code to compare two bitmaps is trival, and it will be heaps faster. Just write a C# dll that you call from VB.NET.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Sorry, i don't use C#, is there no simple way in VB.NET to compare images and: Is there a way to let a window always be on top even in a game which runs in full-screen mode? Because that will solve the problem too.
--Zaegra--
|
|
|
|
|
Zaegra wrote: Sorry, i don't use C#, is there no simple way in VB.NET to compare images
From what I understand, Christian was saying you don't have to use C#. The code to do the comparison happens to be in C#. You can call this from your VB.NET project.
Also, it is a bit finalistic to say "I don't use C#". On a day-to-day basis I don't use VB.NET, but since there are over 45000 similarities between VB.NET and C# and only a few dozen differences it is easy to pick up one if you know the other.
|
|
|
|
|
Zaegra wrote: is there no simple way in VB.NET to compare images
No, there isn't anything in the .NET Framework pre-written for you to do this.
The code to compare two images has to be written in C# is you want the speed. The reason for this is because C# supports pointers in unsafe code blocks while VB.NET doesn't support pointer at all. You can write the library to do image comparisons in C#, then use the resulting .DLL in your VB.NET project.
Zaegra wrote: Is there a way to let a window always be on top even in a game which runs in full-screen mode?
If the game uses DirectX, no there isn't. The game isn't rendered in the same frame buffer as the Windows Desktop. Your window WILL be on top of all other windows, but will still not be visible at all under the DirectX render window, if running in full-screen.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Zaegra wrote: is there no simple way in VB.NET to compare images
What the other guys said, plus, what you wrote above is the only way in VB.NET, and it's slow.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I currently using Visual Studio.Net 2005, I want to create database for SQL but I don't have tool, so please anyone give me address to download it.
................
|
|
|
|
|
|
go and buy a cd for Ms SQL server 2000/2005
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
This means one of two things:
1 - I can't work out how to use google
2 - I'm asking for help in stealing software
If 1, it's pretty simple. If 2, we're not going to help you. SQL Express is free, and easy to find online. SS2005 is not free, and you need to buy it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I am working with a project where there is a need of report generation.
I had developed the report in crystal reports.
All the data is view properly but the only problem is images.
Images i am accepting the data through richtextbox.rtf into the data base and displaying the data back to crystal report using the data object with setting the property o display rtf data.
But it only loads the text data from the database but not the images between the text.
Any help would be great...
Thankx
Jats
|
|
|
|
|
You might want to ask this question with BusinessObjects support. I don't know if CrystalReports supports inline images in RTF fields.
[EDIT]
Well, my Google-Fu has failed me but briefly. CrystalReports doesn't support any image tags in RTF data. You can find more on it here[^].
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
This is the code:
1.Dim mm As ArrayList = New ArrayList
2.Dim i As Integer
3. For i = 0 To intTotParam - 1
mm.Add(arrInputFileData(arrPosition(i)))
Next
4. Dim ss As String() = mm.Item(0)
5. MessageBox.Show(ss(0))
I am getting the error "Specified cast is not valid" at line 4.
Actually i need to sort the arraylist and find the largest element.
Retrieving the strings that has been added in the arraylists is of primary importance in my project and needed at many places.
Please help me out
|
|
|
|
|
You can't convert an object to a string just like that.
Try converting it to string format first.
|
|
|
|