|
sixecho wrote: could u please tell me a way to send data from a listbox to textbox vb.net 2005
What data do you want to send from the list box?
Let's assume you mean that you want the text box to display the currently selected item in the list box.
MyTextBox.Text = MyListBox.SelectedItem.ToString();
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
this code was helpful but what i really wanted was to get all the items in the list box at once to the text box...(without selecting any item)...
|
|
|
|
|
Then iterate over the items collection.
For Each Object item In MyListBox.Items<br />
...
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
I need a button that when the user runs the mouse over the button (not click) the color of the button's border changes (showing the user that the mouse is in the button's active area). I cannot find anyway to change the color so any hints would be very helpful.
Thanks!
Natalie
|
|
|
|
|
DotNet Button Control is exactly what you are talking about.whats the problem with that?
A.E.K
|
|
|
|
|
A.E.K wrote: DotNet Button Control is exactly what you are talking about.whats the problem with that?
How do I change the color of the border (from black to something else)?
|
|
|
|
|
hie guys,
i am developing a call logging system using VB.Net and SQL 2005 . How do i calculate the downtime of a job (i.e. the difference between the time call is logged and when call is closed) excluding weekends and non-working-hours.
thanks, i am stack........
|
|
|
|
|
i think you must log the downtime call to your database and when the call is closed. then get the difference of the two.
Don't block the drive way of all the newbies in programming.
|
|
|
|
|
klaydze wrote: i think you must log the downtime call to your database and when the call is closed. then get the difference of the two.
Don't block the drive way of all the newbies in programming
yep, thats pretty straight klaydze; maybe i did not point out clear that i need to EXCLUDE weekends and non-working-times(i.e. time b4 8am and time after 5pm).
e.g. if a call is logged on Friday 8am and closed the following Monday 17pm, for a business thats runs 9 hours a day; the downtime should be 18hrs NOT all inclusive hours from Friday 8am to Monday 5pm.
thanks,
|
|
|
|
|
I have build an application where I create an extension "alm". Now I want to register this extension so that on double click of any file with "alm" Extension should run my application.
Regards
|
|
|
|
|
The easiest way is interactively:
double-click a file with that extension in Windows Explorer
when it shows its dialog telling "Windows can not open..." choose "select from list",
then "Browse", browse to your exe file, check the checkbox "Always use..." and
click "OK". This will create a permanent link and register it.
You can do that programmatically also, I don't know the details be heart.
|
|
|
|
|
Thanks Pattyn
I have posted this message here because I need to do it programmatically.
|
|
|
|
|
Hi,
search CodeProject for file association
(that would have worked yesterday too)
|
|
|
|
|
i want my program to load graphics from a directory and display them onscreen... how do i go about doing this?
|
|
|
|
|
I'm assuming the files are pictures (jpg,jpeg,gif,tiff,...)
than you can just go to the directory and for every picture you find in it you create a picturebox with the imagepath to that directory/picturename
|
|
|
|
|
hi all
i need to write the click event of the form's close button on the upper right corner of the form usualy the X button
how can i do this
|
|
|
|
|
Handle the Form's Closed or Closing event based on what you want to do. In VS .net 2005, they have been renamed to FormClosed and FormClosing
Tarakeshwar Reddy
MCP, CCIE Q(R&S)
There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there. - Indira Gandhi
|
|
|
|
|
hi
i m trying to change the parent of a toolstrip to form2 to form1 the code is
Private Sub toolstrip1move_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.TopMost = False
Dim tools1 As ToolStrip = CType(sender, ToolStrip)
tools1.Parent = Form1
tools1.Hide()
End Sub
but the tools1.parent = form1 causing the error
|
|
|
|
|
The formClosing event fires whenever the form starts to close, including when the X button is clicked.
You can then to things like ask the user if they are sure they wish to exit the form and stop the form from closing in needs be.
for example :-
Private Sub myForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing<br />
<br />
Select Case MessageBox.Show("Do you wish to exit?", "My Form", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2)<br />
Case Windows.Forms.DialogResult.Yes<br />
e.Cancel = False<br />
Case Windows.Forms.DialogResult.No<br />
e.Cancel = True<br />
End Select<br />
End Sub
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
thnx but my rguments r little bit different
i m trying to change the parent of a toolstrip to form2 to form1 the code is
Private Sub toolstrip1move_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.TopMost = False
Dim tools1 As ToolStrip = CType(sender, ToolStrip)
tools1.Parent = Form1
tools1.Hide()
End Sub
but the tools1.parent = form1 causing the error
|
|
|
|
|
first of all:
eyes2007 wrote: Dim tools1 As ToolStrip = CType(sender, ToolStrip)
will not work
sender is of the type Form
second: I'm not really shure what will happen if you just change the parent of a control
my sugestion would be that you call a function on form1 wich dynamicly recreates the tools1 that way you'r form2 can shut down whitout any problems (but like I said don't know if it is needed)
perhaps something like this would be better:
form1.controls.add(tools1.clone) (don't know if possible didn't test it)
|
|
|
|
|
its not doing the work needed
the only option is that
i creat a button that exactly lools like the close botton on form place exactly on that close button and write the click event of that one
but i don't like to use this
|
|
|
|
|
what exactly do you want to do??
if you want to catch the 'X'button click event you need to use the formclosing/formclosed event of the form (best to use the formclosing that way everything is still on the form)
|
|
|
|
|
Hi all,
Iam getting error when exporting asp.net webpage contents into pdf file.If u have any idea plz revert me.The error is "The file couldn't open because the file not supported/it was damaged.
Thanks,
Aswath
|
|
|
|