|
hi there,
Is there any possible way in VB.Net to open a new port on my lost host where other lan computers can be connected? how can i do this?
thanks
|
|
|
|
|
Hello every one
How can i get the total number of pages printed through a VB6 code
??
\Can anybody help me
|
|
|
|
|
I am working on VB.NET Web forms
I need a control to display paragraphs
with bullets, text with different fonts, text allignment etc.,
(which looks like wordpad to edit text)
Thanks in Advance
|
|
|
|
|
I try to create a form with its cancelbutton (at the right-top corner) is removed or disable. So the form looks like just a frame without the cancel button; or if click the form cancelbutton, the form will does nothing.
Could anyone provide help?
Thanks
-- modified at 4:03 Wednesday 28th June, 2006
|
|
|
|
|
Set the property Form.ControlBox to false.
Or
to have it visible but disable the closing action you need to handle the form's closing event
Private Sub FormClosing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
=o)
Alex
-- modified at 11:18 Thursday 29th June, 2006
|
|
|
|
|
It works and the form looks fancy.
Thanks Alex!
abc
|
|
|
|
|
It struck me that I should have used shadows:
Private Shadows Sub FormClosing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
Alex =o)
|
|
|
|
|
I have some text in Microsoft Word
"Cambodia is the country in south asia"
I want to split 7 words in Microsoft Word above in Microsoft Access recorde?
The result would be
Cambodia
is
the
Country
in
south
asia
Thanks
................
|
|
|
|
|
Hi there
I have created a windows service and I would like to add an entry to the event log specifying the user using this service (i.e. the computer this service is runing under)
I want to do this as soon as the service starts any Idea how I might be able to do that??
Thanks, An answer is kindly appriciated.
Kind regards,
Wesam
|
|
|
|
|
|
Thanks for the link but the link doesn't show how to write the computer name to the event long, I know how to write to the event log,
But what I was asking is (what is the command that retrives the computer name / username of the computer the service is runing on)
in other words I want to run my service on different computers and I was the service to be able to retrive the computer name of which it is running on.
Thanks for your help
kind regards,
Wesam
|
|
|
|
|
|
Hi again thanks for your help I have found out how to do it I thought i might post this for other people's refrences:
Imports System.Security
Imports System.Threading
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolivy.WindowsPrincipal)
Dim t As Thread = Thread.CurrentThread
Dim p As Principal.WindowsPrincipal = t.CurrentPrincipal
Dim wi As Security.Principal.WindowsIdentity = p.Identity
Dim UserName As String = wi.Name
' then You can write that userName to your log event and this should give you the identity of
' User loged on
LogEventInfo("Login in As: " & UserName)
Thanks,
Kind regards
Wesam
|
|
|
|
|
Great, Thank you for your reference code.
|
|
|
|
|
hellow to all
i had done a program with vb , and i had made an install to it ,
now let say i wanna update something in the program !
i have to uninstall the program from the ProgramFiles , and then reinstall it ! , anyone have idea how can i creat an exe file with the titel update that can update the program when i run it ...
any one have anyidea or links ? , thxx
|
|
|
|
|
|
I've been learning vb.net 2005 for a few months now and finally finished up and my friend told me next i should try some tutorial's so does anybody know some good one's?
|
|
|
|
|
|
I already learned the basic's of vb.net 2005 and then some but need some guides for that next step to really test my porgramming skills
|
|
|
|
|
|
I have a combobox with 12 numbers listed in it. A user can either select a number, or type it in. I have a command button that will push the selected item into a local database. When I go back to the form, I still see the selected value.
How can I have that selected item cleared once the data is saved to the database? I know i can use this: cboSelectedItem.text = ""
However, if I have 50 comboboxes, that would be kind of tedius.
All my textbox controls seems to clear the data fine, because I have it bound to a dataset so when I clear the dataset, the data in the textbox items clear as well.
So I tried to have a collection of items on my combobox plus have it bound to a bindingsource, but Vb.net didn't like that either.
Any advice is greatly appreciated.
Rashar
|
|
|
|
|
i think one way you can follow is to define a variable as Controls....and then put a for loop for each variable in Controls.....then u can have a if statement or case statement inside which can filter all the Comboboxes and in that block u can clear the combobox.....and one thing is "Control is the base class for Buttons, ComboBox, Textbox etc. You may need to cast to appropriate type."
this could be something like....
Dim ctr As Control
For Each ctr In Controls
If TypeOf (ctr) Is ComboBox Then
CType(ctr, ComboBox).Items.Clear()
End If
Next
like that it can clear all the comboboxes in that form.
This could be one way. anyhow may be you have to format the code a bit, this is just an idea though
|
|
|
|
|
Ahhh... That worked nice.
Thanks soodmonu!
|
|
|
|
|
I am trying to build a program that will select 10 random user names from a list. I need this program to then store that list in a file so that when i run the program again it will not select those ten users. Does any one have any ideas where i can get a start on this. i am somewhat new to VB programing so any pointers would be greatly appericted.
|
|
|
|
|