|
Write a program that allows the user to draw free hand" images with the mouse
Hlalele
|
|
|
|
|
I have done. Sounds like now you need to. Is 'Multimedia and Graphics' the name of the class that assigned this homework ? If you're not willing to try it yourself, I recommend quitting now, and making room in the education system for someone who stands a chance of success.
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 )
|
|
|
|
|
when i tried to do like this
Start .NET Framework Configuration Management Console (Start -> Settings -> Control Panel -> Administrative Tools -> Microsoft .NET Framework Configuration).
Then select "Assembly Cache" and click "Add an Assembly to the Assembly Cache" to add all DLLs into GAC.
when i am trying to add my dll file there is a message like this is coming
U must have a stongname(name,version and public key).for that what i want to do? how can i add my component to gac
|
|
|
|
|
You need to make sure your dll is strongly named, just like the error message said.
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 )
|
|
|
|
|
How can i make sure that dll is strongly named or how can i give a strong name to dll
|
|
|
|
|
Try 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 )
|
|
|
|
|
Hi,
I had drawn some shapes in panel within in form. I want to make those shapes in panel as .jpg image and save it c:/.
Is there any way to make the drawing shapes in panel as image.
Thanks in advance.
Be simple and Be sample.
|
|
|
|
|
Draw them onto a bitmap instead of onto the panel. Show the bitmap in your program to view it, and call the Save method to save 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 )
|
|
|
|
|
how to insert binary data into database by using vb.net?
|
|
|
|
|
What have you tried ? A blob field is usually used, but it depends on the database.
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 )
|
|
|
|
|
Hello all,
I am trying to create a simple VB application that will overwrite the FAT on a floppy with a set string I select. I found CFloppyDisk 2.0 (which is written in C++), And I cannot figure out how to complile it as a DLL that visual basic will allow me to reference. I realise this is a basic issue, but since the code was existing on this site I was hoping someone might know how to do it.
|
|
|
|
|
If the code was on this site, then it was in an article. Which means, teh forum of the article is the only place you'd especially hope to find help. The articles are submitted by all sorts of people.
If you compile a C++ dll, you can call it from VB using p/invoke. How are you trying to call it, now ?
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 am trying to get a random letters from a set of Ascii codes, whereby i am only selecting certain keys (for example, the top row of the keyboard).
I am using this code:
Dim rnd As New Random()
---
Private Sub FORM1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim c1 As Char = Convert.ToChar(rnd.Next(97, 123)) : lblLetter1.Text = c1.ToString()
---
However, i cannot add more than the min max values in the next column, is there a way to do this, i.e. 97, 101, 105, 106...etc.
Cheers
|
|
|
|
|
Create a string containing the keys you want to choose from.
Dim keysToUse as String = "QWERTYUIOP"
Private Sub FORM1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim c1 as Char = ' '
while (Not keysToUse.Contains(c1))
c1 = Convert.ToChar(rnd.Next(97, 123))
This should keep looping until it selects a character that is in your string. Remember it will be case sensitive.
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 )
|
|
|
|
|
Put the characters that you want in a string, and pick one character from the string.
Dim chars As String = "qwertyuiop"
Dim rnd As Random = new Random()
Dim index As Integer = rnd.Next(chars.Length)
Dim c1 As Char = chars.Chars(index)
---
single minded; short sighted; long gone;
|
|
|
|
|
Oh, that works too.
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 )
|
|
|
|
|
im confused, sorry, bit new to all this. I have the following, how would i do it on this???
-----
Private Sub frmTestTop_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
RandomizeLBL(Me, "lblLetter*")
End Sub
Private Sub RandomizeLBL(ByVal container As Control, ByVal pattern As String)
Dim rnd As New Random
For Each ctrl As Control In container.Controls
Dim lblLetter As Label = TryCast(ctrl, Label)
If lblLetter IsNot Nothing AndAlso lblLetter.Name Like pattern Then
lblLetter.Text = Chr(rnd.Next(97, 122).ToString)
End If
Next
End Sub
-----
Cheers
|
|
|
|
|
harveyhanson wrote: im confused, sorry, bit new to all this.
Not to be rude, but if you couldn't follow either explanation then you probably need to buy a book on VB.NET, and learn the language before working too much with Windows Forms.
Guffa's suggestion is better than mine. You buld a string of acceptable chars and get a random number to get an index into that string, to extract a random char.
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 usually a C#/ C++/ Java programmer, but I am required to program in VB.net for a school course I am doing. I am a pretty confident programmer, and I have scanned through a couple of VB.net books, but I am really stuck for ideas for a program that will test my knowledge of VB.net to see what I need to work on, any ideas?
|
|
|
|
|
If you're a C# programmer, you already are better at VB.NET than most VB users. The reason is, VB.NET uses the .NET framework, I answer questions in this forum although I don't use VB.NET, because the questions are mostly framework related. VB.NET does have a namespace called Visual Basic, which is full of nasty VB6 stuff. You don't know that stuff, people moving from VB6, tend to use it instead of the better .NET methods. So, you're already ahead, you just need to get used to the syntax.
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 )
|
|
|
|
|
If you are familiar with C# then anything you know in C# should be able to be applied in VB.NET. Some possible areas that could be areas to study would be:
1) Game Programming (3D or 2D)
2) Database Management
3) Registry
4) Source Code Optimization
5) Use of Windows API
6) GUI programming, creating user controls that are reusable
A few books that might give you more ideas:
Visual Basic Hacks and Pranks
Hackish C++
Both of the books have many examples of cool programs that helped me learn VB, C#, and C++.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I want to create reports in vb.net never done it before i am searching on net but just keep coming up with crystal reports, can anybody explain what is the best and easiest for doing reports in vb.net 2003 the reports will consist of review of show from april to april for year to year.
Any hints would be grately appreciated, thank you very much.
|
|
|
|
|
Crystal Reports may well be the easiest way, but there are also free and commercial libraries for rendering reports. There's nothing built into VB itself.
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 )
|
|
|
|
|
Sir/Madam,
On the form load , I wrote
Application.run(new form1)
and
I got the message that i can't run two messages on the single on single thread
Please help.
Thanks and regards
Pankaj
|
|
|
|
|
amaneet wrote: I got the message that i can't run two messages on the single on single thread
That's correct. But... Why do you want to put Application.Run(...) in a Form's Load handler? You are already running the application.
|
|
|
|