|
I finally figured out my problem. I was looking at the .row property instead of the .rowSel property. Once I figured this out the rest was relatively easy.
|
|
|
|
|
Hello there
I could finish writing some other programs and thanks to Cleako for the previouse help!
My second problem is that in the forms that I have designed I want to put a button for printing option. How this can be done? I mean connecting to the printer? May anyone help me with this?
email: fight_2_death@hotmail.com
╦َ║▐
|
|
|
|
|
In toolbox there is printdialog options. Simply drag it and drop it onto form and then you will able to use it inside your code. For example I want to open a print dialog when user clicks a button.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PrintDialog1.ShowDialog()
End Sub
However, there are more things to do for printing for example you should bind the content for a specific document.
I hope that helps
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
I recently posted up an article here[^] with a control to do just that - worth a try...
|
|
|
|
|
Is there a specific version of VS 2005 or add on to get this interop service?
|
|
|
|
|
You might want to look at this[^] page for more information on the Office PIA's. There's more info on installing them here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
In my software when I'm in a textbox(multilined) and press Ctrl+T a text box must appear beside the cursor(no matter where the cursor is).
pls Help very urgent.
|
|
|
|
|
You can get the cursor position ON YOUR FORM using something like:
Dim cursorPosition As Point = Me.PointToClient(System.Windows.Forms.Cursor.Position)
Put this code in your form's key handler code and it'll give you the coordinates of the mouse on the form, not the entire screen.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thanks, That is Useful but I need the textbox2(small box) to come beside the mouse cursor(not the pointer) when I'm inside textbox1(big and multilined).
I didn't want a code for the entire screen.(my mistake);)
Pls reply still urgent.
|
|
|
|
|
To preface, I have only taken on VB.net course and principles to programing, so I am a newbe to all of this.
To the question. I have stated creating a program that will allow me to centrally administer all of the workstations on the network...(ie. WOL, Reboot, Shutdown, execute *.vbs....)
I have figured out how to open the excel with all of the data needed, but how can I now select the data from the cell(say MACAddr) and execute a *.vbs on it.
If CompName_selected
then read excel and find CompName_selected MACAddr
execute command (ie "shutdown /t" or "*.vbs")
loop until all CompName_selected complete.
end
Any help would be greatly appreciated
TECABA
SYSTEM ADMINISTRATOR
NORTHROP GRUMMAN
SUNNY FLORIDA
|
|
|
|
|
You would use the Process[^] class for this. Usually, something like this:
Dim newProc As Process = Process.Start("shutdown /t")
or
Dim newProc As Process = Process.Start("myscript.vbs")
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
like
dim days as integar
days = Date.Now.ToShortDateString - any date.ToShortDateString
Ahmed El-Badry
|
|
|
|
|
days = (DateTime.Now - anyDate).Days;
If you substract one DateTime object (NOT string ) from another DateTime object you get a TimeSpan object. TimeSpan has the property Days which appears to be what you want.
|
|
|
|
|
Please give an example of it
thnx
Ahmed El-Badry
|
|
|
|
|
|
Sir/Madam,
I have two records in my database.From the form , I am chosing the id and want that record to get displayed in the crystal report.There are two tables in the database and there is a primary and foreign key relationship between them.Now the problem is , both the records are comming.I have created links between both tables in the reports.Is there any way to create the crystal report dynalically or can i pass the parameter to show the report.
Parameter means that id which has primary and foreign key relationship.
But I don't know the code how to pass the parameters.
and parameters should be passed at both ends (I mean in the crystal reports as well as on the coding side)??
I don't want to generate the window that ask me which id u want to select .
Please help.
Thanks and regards
Pankaj
|
|
|
|
|
i want to create report in vb.net ,
but without use of crystal report
|
|
|
|
|
I am working at VU meter at the moment. That is, grabbing the microphone volume and show it in progress bar. Should I use winmm.dll for it in vb.net? I understand that I am able to use this module to get output volume but how I should get input volume?
Thanks in advance.
|
|
|
|
|
Hi Viewer!
I have a webpage containing a form having a listbox and some buttons. I am faicing the two problems. The first one is that I am facing problem in selecting an item in a listbox form visual basic applicaton.
The second one is that there are several buttons on it having same name. So how can I click on my required button from VB application because there is a confusion that from what name I should call my required button.
Consider it as a CHALLENGE for you...
I have written this because lots of experts are already failed to solve this problem.
|
|
|
|
|
Post a snippet of your code and can you explain the complete details of your problem, may be this is the reason why lots of experts are failed to solve your problem.
Help us to understand your real problem and probably I or somebody can solve your problem.
Regards,
Mark
|
|
|
|
|
http://www.vbforums.com/showthread.php?p=2798499#post2798499
Use the above link and download text.zip uploaded by "misterdd" in the 5th post to see the problem
|
|
|
|
|
You haven't explained the proplem clearly actually.
First Why do you have problems in selecting an item from a listbox? What is the propblem?
Second, each button suppose to have different names inside a form class. Why do they have same names?
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
http://www.vbforums.com/showthread.php?p=2798499#post2798499
Use the above link and download text.zip uploaded by "misterdd" in the 5th post to see the problem.
|
|
|
|
|
Are you kidding with us or what? Your zip file has an html file. This is a vb.net forum. You should post this under web development.
The text.htm doesn't have the function under scripts. There is no script block and no functions.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
i'm trying develop a Client/Server application to transform files from UNIX(Server) to Windows(Client) using VB.Net. Plz help me out how can i build this application.
|
|
|
|