|
anyone know how to add shockwave flash to vb.net form??
plz teach me...i need know it urgently...please..thanks..
MJ
|
|
|
|
|
I want to use ms word as a doc viewer,and incapacitate it's most function,such as "save as","copy","paste".
I have not idea about this.Is that a comparative easy method can achieve my goal??
lost my way
|
|
|
|
|
i have made a cursor.. with the extension *.cur
i have an application with VB6 ..
how can i add this cursor to my application ????
ahmed elmahdy
|
|
|
|
|
Set the Form.MouseIcon to a cursor file in the design time.
|
|
|
|
|
thanx for ur reply ..
i have really done that ,,
But i have not seen anything after running my program
reply plzz
|
|
|
|
|
Sorry,,
I Forgot to say : Set Form.MousePointer=99 (custom)
|
|
|
|
|
I am starting to do some windows UI, please recommend some good books for GUI design guidelines and examples.
Thx
|
|
|
|
|
Here is one book that is good at showing you what NOT to do:
GUI Bloopers[^]
Live it, Learn it, Love it...
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
I've never looked at this one myself, but you might give it a try:
The Essential Guide to User Interface Design[^]
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Shortly my vb6 app would'nt continue to display any data in a grid view.
No error message just a blank boring grid.
regsvr32 msbind.dll
has solved the problem. unfortunately this happend on a customer machine too
what's going on? how this dll can be unregistered???
|
|
|
|
|
I have tried to figure something out that I want to write in code, but I couldn't find the solution. Until now. I found the following piece of code on the Internet today. Unfortunately, it is in the language of C (I think so), a language that I don't know anything about. So, I would be very grateful if anyone could translate it to Visual Basic code.
<br />
#include iostream.h<br />
<br />
int fak(int n);<br />
<br />
void main()<br />
{<br />
int x=5;<br />
<br />
cout<< x << "!=" << endl;<br />
cout<< fak(x) << endl;<br />
cout<< 5*4*3*2*1 << endl;<br />
}<br />
<br />
int fak(int n)<br />
{<br />
if (n<=0)<br />
return 1;<br />
<br />
else<br />
{<br />
int a = n*fak( n-1 );<br />
return (a);<br />
}<br />
}<br />
//OT
|
|
|
|
|
(Untested and VB.NET, so replace Integer with Long in VB6)
Function Factorial(ByVal n As Integer) As Integer
' AFAIK, you can actually do this as <= 1 instead
If n <= 0 then
return 1
else
return n * Factorial(n - 1)
end if
End Function
You might want to read up on recursive functions, as that is all this is.
--
Ian Darling
If I was any more loopy, I'd be infinite.
|
|
|
|
|
So there is a function to do n-factorial. I didn't know that. Well, I was hoping to find out how to write a for...while loop or something that does the same thing. I have spoken with my mathematics teacher and we are trying to find some algorithm to do n-factorial. I mean, a calculator doesn't know what, for example, "5!" is, does it? I tried to write a loop with "counter" that added "1" for every loop, and when "counter" had the same value as "n". It did not work, though.
But thanks for the help, anyway.
//OT
|
|
|
|
|
You can work out a factorial in a loop too (again VB.NET):
Dim total as Integer = 1 ' starting at 1 is important here
For i as Integer = 2 to 5 ' replace the 5 with a variable as necessary
total = total * i
Next i
--
Ian Darling
If I was any more loopy, I'd be infinite.
|
|
|
|
|
Thanks, but I have already worked it out. It was only one small adjustment I had to do in my code to make it worked.
I did it like this:
<br />
Dim x As Integer<br />
Dim y As Integer<br />
Dim counter As Integer<br />
Dim check As Boolean<br />
<br />
<br />
Private Sub Bttn_Fkltt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Bttn_Fkltt.Click<br />
x = TxtBx_Fkltt.Text<br />
counter = 1<br />
check = False<br />
y = x * (x - 1)<br />
If x > 2 Then<br />
Do Until check = True<br />
counter = counter + 1<br />
y = y * (x - counter)<br />
If counter = x - 1 Then<br />
check = True<br />
Exit Do<br />
End If<br />
Loop<br />
Lbl_Fkltt.Text = y<br />
Else<br />
Lbl_Fkltt.Text = y<br />
End If<br />
End Sub<br />
Look at the code: If counter = x - 1 Then . Before, I had If counter = x Then , and with that code, y was multiplied with 0 in the end, resulting in y = 0.
//OT
|
|
|
|
|
I made some shaped forms... but I have never found
out How to create somthing like this shape, a recangle with rounded corners:
Look at the white area.. Click Here
any ideas?
I used this page
|
|
|
|
|
This code will generate a rectangle(200x200) with rounded corners...
Dim Path As New GraphicsPath
Path.AddArc(0, 0, 40, 40, 180, 90)
Path.AddArc(160, 0, 40, 40, -90, 90)
Path.AddArc(160, 160, 40, 40, 0, 90)
Path.AddArc(0, 160, 40, 40, 90, 90)
Me.Region = New Region(regionPath)
|
|
|
|
|
what's GraphicsPath? what's regionPath? ...
.. here we go again.
|
|
|
|
|
Thank you very much!!! No way I could find it by my self
|
|
|
|
|
Whoops regionPath is actually the variable Path of the type GraphicsPath... Sorry!
|
|
|
|
|
Hello,
I need to launch a simple text editot like WordPad. Does anyone have such a royalty-license free application? Or at least know where I can aquire one. I'm just getting into VB but I need this for a curent project asap.
I hope this is the proper forum for this question.
iaustin
Thank You
|
|
|
|
|
COuld try Textpad - excellent editor, and Shareware - will pop up with licence warnings every now and then, but otherwise exactly same as full version....
Just one question - why the FUNK do you want to use a text editor for VB????
Otherwise - if what you are asking is HOW to launch the editor, declare the ShellExecute function, and pass the filename in....(see MSDN or give me a shout if you want an example.
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I have a datagrid on my form that is anchored to all sides but when I maximze the window only the datagrid anchors correctly but not the columns of data within it. Any idea where I am going wrong?
|
|
|
|
|
As far as I know there is no way to just set a property and anchor the columns to they resize auto like that.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
I need to set new color variable which contains
a specific color that I created...
I got its R/B/G values, How can I make a color variable called x that contain it...
and then If I have a button and I want 2 chnage its color I will use:
Button1.backcolor=x
Thank You Very much
|
|
|
|