|
could someone show me all the commands used for drawing in a picture box? (an example each would be helpful)?
is it possible to draw text in a picture box? preferabley without having to draw each pixel of each letter, u know like is there a command i could use? and could i make it centered?
thank you
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
You didn't mention which version of VB, so I'll assume VB.NET. First, you create a Graphics object from the PictureBox's CreateGreaphics method. Then you can use the Graphics object to draw on the PictureBox. The PictureBox itself doesn't have any drawing methods. See the documentation on the Graphics class for explanations and examples. There is just way too much information to post here.
System.Drawing.Graphics class docs[^]
RageInTheMachine9532
|
|
|
|
|
actually i need it for vb 6
thank you
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
OK. The VB6 PictureBox docs start here[^]. You can use the Print method to display text in the picturebox anywhere you want. Just remember to set the PictureBox AutoRedraw property to True first.
RageInTheMachine9532
|
|
|
|
|
how do i print a form (with all its color and everything)?
how can i pring a picture box (with all its color and everything)?
thank you
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
in c++ dmensional arrays were defined like:
int array[][];
are dimensional arrays possible in vb and if so how do i define/use them?
thank you
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
Dim myVar(10, 10, 10) As Long
Dim myVar(10) As Long
Dim myVar2() As Long
VB.NET only:
Dim myVar As Array = Array.CreateInstance(GetType(Integer), 10)
Dim myVar As Array = Array.CreateInstance(GetType(Integer), 10, 10)
RageInTheMachine9532
|
|
|
|
|
thank you
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
I am developing an asp.net application using vb. I have a hyperlink control in my repeater template and I am not able to dynamically create parameters for its querystring. The parameter is the same value as the text. The reason I am using a hyperlink against a linkbutton is that I want the target window to be a popup.
<asp:HyperLink NavigateUrl="javascript:var w =window.open('Details.aspx?Name=<b>(what do I do here)</b>',null,'width=400,height=400,location=no')"
Text = <%# DataBinder.Eval(CType(Container, RepeaterItem).DataItem, "Name") %> Runat="server" ID="Hyperlink1"></asp:HyperLink>
|
|
|
|
|
hello all,
how shall i make my application, memory residant. I mean how shall i design Terminate and Stay Residant application using VisualBasic.
ComputerNewton
|
|
|
|
|
There is no such thing as a TSR in Windows. THe closet match is a Windows Service.
In VB.NET, easy, just start a Windows Service project.
RageInTheMachine9532
|
|
|
|
|
hello all,
how shall i send picture information across the network using Winsock in VisualBasic. And one more thing is that how shal i convert the BMP file to JPEG/GIF and PNG in VisualBasic.
ComputerNewton
|
|
|
|
|
hello all,
how shall i design the Remote Administration Application in VisualBasic.
ComputerNewton
|
|
|
|
|
Define "Remote Administration". What do you want this to do?
And in VB6 or VB.NET?
RageInTheMachine9532
|
|
|
|
|
i mean i would like design an application such that i can get full control of it from another system. such that i can open any file or shutdown.
just check www.radmin.com
i am planning to develope the application like this .
ComputerNewton
|
|
|
|
|
Why? It's already been done and won't take you at least 6 months to write it if you go buy PCAnywhere or something equivelent. Microsoft has their's, called RemoteDesktop...
You'll be writing 2 seperate apps to do this. The server will run on the machine you want to control, while the client will run locally. You'll be P/Invoking ALOT of Windows API functions on the server to get the screen image, follow the mouse and keyboard events, and post new keyboard and mouse events coming from the client.
This kind of project will take an average of 6 months to develop. How much do you get paid in 6 months? Compare that to the off-the-shelf cost of PCAnywhere...
RageInTheMachine9532
|
|
|
|
|
Hi,
I need help... How can I limit the rows in one field into 1 row only so that whenever I save something using VB, the content of that row would just be replaced by a new one. For example: in a textbox, if I enter a name and click save, the name that I typed would be saved on a database. If I enter a new name, the name that I entered before will just be replaced with a new one.
I used this code and I bind my richtextbox with a data control and it was running ok. But I still would like to ask for suggestions... Thanks...
Public gadocon As adodb.Connection
Public gadorset As adodb.Recordset
Private Sub cmdadd_Click()
rtbox.Locked = False
Set gadocon = New adodb.Connection
Set gadorset = New adodb.Recordset
gadocon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\gen\Desktop\TRIAL 4 THESIS\transfering form2form code\dbtext.mdb"
gadorset.Open "Table1", gadocon, adOpenKeyset, adLockOptimistic
gadorset.AddNew
gadorset.Fields(0) = Trim(rtbox.Text)
gadorset.Update
End Sub
Private Sub cmdedit_Click()
rtbox.Locked = False
End Sub
Private Sub cmdsave_Click()
Set gadocon = New adodb.Connection
Set gadorset = New adodb.Recordset
gadocon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\gen\Desktop\TRIAL 4 THESIS\transfering form2form code\dbtext.mdb"
gadorset.Open "Table1", gadocon, adOpenKeyset, adLockOptimistic
gadorset.Fields.Refresh
gadorset.Fields(0) = Trim(rtbox.Text)
gadorset.Update
frmaccept.Show
End Sub
|
|
|
|
|
You can't limit the number of rows in a table. In the past, when I've needed something like that it was usually because it was a setting I needed to store in the database. I created a SystemRegistry table where there were two fields, a keyname and a value (stored as nvarchar). That way you can store the name as somthing like this:
keyname value
frmMain\Firstname Mike
frmMain\Lastname Vernon
A bit of a poor example, but if you need to store system settings acrossed a clustered web application it becomes pretty convenient. If you needed to bind these fields, you could make a class that reads these settings and holds onto them and bind your controls to the class and not directly to the database.
RageInTheMachine9532
|
|
|
|
|
ok.. Thanks!
|
|
|
|
|
I am trying to learn how to search through a hard drive and look for a file extension, is there a tutorial that has been written that shows how to do this?
I have a form with a button, and a checkedlist box. I would like to have the program search though a hard disk and output all the files that have the inputted extension.
How is this done? What about directories that have access denied error message comes up like c:\system volume information? How do I skip that directory?
John
I want how to search hard drives!
|
|
|
|
|
I just noticed that when I write an entry into the Windows event log using one of the various overloaded WriteEntry methods I always get the following text below my description:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Grrrrr, I don;t want to send my users to the MS website....
Any ideas?
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 want to backward format a date to the number. Does anyone know how to do that? Like take 01/01/2003 and get the number value.
Thanks
Santana
|
|
|
|
|
What number value? Are your talking about some kind of serial number representing a date? Like how many seconds from a base date, like Jan 1, 1970?
RageInTheMachine9532
|
|
|
|
|
When you register the dll and copy the registered .dll to another directory
generates serious problem. even unregister both .dll and reregister the original dll again won't solve the problem. Probably i have to work with registry and delete some key( i am not sure which keys to delete).
another option for this kinda problem. I have listed all dll that have the same dll in VB's reference library.
Thanks in advance.
Shinya
|
|
|
|
|
You can't register the same .DLL multiple times. This is because the registration is based on the GUID's in the .DLL, not the location of the .DLL. Unregistering it and then reregistering the .DLL will only update the location of where the .DLL can be found when it's needed.
skoizumi29110 wrote:
even unregister both .dll and reregister the original dll again won't solve the problem.
You might want to provide a description of the problem itself. Maybe there is another cause you haven't thought of, besides a registration issue...
RageInTheMachine9532
|
|
|
|