|
Sorry, the previous code was wrong.
The following is the right code :
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal)
Dim t As Threading.Thread = Threading.Thread.CurrentThread
Dim p As WindowsPrincipal = Threading.Thread.CurrentPrincipal
Dim wi As WindowsIdentity = p.Identity
Dim fullyQUserName As String = wi.name
Me.label1.Text = fullyQUserName
|
|
|
|
|
Hi everyone
Just need some help on a vb software program which i have to make. It has to read the data off an audio cd and put it into a libary database to be able to serach for it using menus. Can anyone please help;)
|
|
|
|
|
Hi,
If you wont specify the details, no one will be able to help you. Also, ideally you should implement your own logic first, and in case of any problem, turn to CP !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
I am guessing that this is homework ? You need to find a component that will give you the names of CD tracks. Windows Media Player is one that knows how to get that info, and that is easy to interact with in code.
Have you been told what database you can use, or are you to write your own ( simple ) one ?
*grin* the menus are the easy bit.
OVerall, you really need to try to do this yourself, and come to us when you get stuck. We tend to not like it when people post their homework assignment, but when people have genuinely tried, and ask for help, we're always glad to help.
Christian Graus - C++ MVP
|
|
|
|
|
Hi,
I wont like that you email me directly. What for the forums are then ? Please post your replies or queries here on the forum.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
I WOULD LIKE TO BE HELPED TO DEVELOPE A PROGRAM CODE OF SEARCHING A WORD/SENTENCE ON SEVERAL HTML PAGES ,ALBEIT IN A SINGLE WEB, AND LISTING
THE FINDINGS IN "MOST SIMILAR TO THE REQUEST" MANNER.PREFERABLY UPTO 7 WORDS IN A SENTENCE<to be="" searched=""> WITH A MAXIMUM CHARACTER PER WORD AS 12.
THE SEARCH SHOULD NOT ONLY SEEK THE EXACT WORDS/WORDINDS/SENTENCE BUT MOST SIMILAR WORDS/SENTENCE WITH LISTING OF UPTO 100 RESULTS IN ORDER OF SIMILARITY.
THE SEARCH SHOULD BE ABLE TO LOOK UP TO 1000 HTML PAGES OF SINGLE WEBSITE.
MARSHAX<nairobi ,kenya="">.
|
|
|
|
|
DON'T SHOUT !!!!
The easiest way to do this, is to use the google APIs :P
Christian Graus - C++ MVP
|
|
|
|
|
Christian Graus wrote: DON'T SHOUT !!!!
You beat me to it. I wonder if people do it on purpose to be rude and get attention, or if they just don't know
|
|
|
|
|
Hello,
I'd like to run an application in a remote computer, but without client/server structure, for example using the class Process in the remote computer.
Thanks
|
|
|
|
|
ingsgr01@gmail.com wrote: I'd like to run an application in a remote computer, but without client/server structure
Doesn't sound like it is for good intentions
|
|
|
|
|
in my project I want to show only one record at a time how to write a query
|
|
|
|
|
hi
i want to display the color of the form without using the context menu in the toolbox.But by using the javascript how is it possible.
please help me.
tirumal
|
|
|
|
|
Why do you post a Javascript question in the VB forum?
document.body.style.backgroundColor = '#ff0';
---
b { font-weight: normal; }
|
|
|
|
|
Okay so basically I've just started trying to learn VB. I'm trying to make a simple validation form that checks a file for a list of words. The words are usernames and passwords all jumbed up and in no particular order. I'm just starting so I don't want to get into CSV's just yet. So it's all very insecure etc.
As you can see I would like the form to check read.txt to see if the correct combination of words are there, and if they are continue on.
Please read the comments in the code and you'll quickly see whats wrong I guess
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click<br />
Dim User, Pass As String<br />
Dim validationFile As String<br />
User = txtbx1.Text<br />
Pass = txtbx2.Text<br />
validationFile = My.Computer.FileSystem.ReadAllText("C:\read.txt")<br />
If txtbx2.Text.Length < 5 And Not txtbx2.Text Like "#####" Then<br />
MsgBox("Please enter a password with more then 5 charactors")<br />
txtbx2.Text = ("")<br />
ElseIf Pass <> validationFile Then<br />
'It's above here that I have the problem, <> means equal too if I'm 'right in VB.Net but I'd like it to be something along the lines of IsIn or ==. 'I just want it to check to make sure the words are in the file you see.<br />
MsgBox("Access Granted")<br />
Me.Close() 'Just an example of what it should do.<br />
End If<br />
End Sub<br />
End Class
Sorry about the bad coding, but I just need help with that one thing.
Hope you can help!
Kind Regards,
StyleUK.
|
|
|
|
|
Are you learning VB6, or are you using the nasty VB6 hangover stuff instead of .NET ?
If the latter ( I think so ), there's a contains method on the string class.
Christian Graus - C++ MVP
|
|
|
|
|
StyleUK wrote: <> means equal too
<> means NOT equal to.
You want the ENTIRE content of the text file to be the password? Why did you choose to do it like this? It'll be plainly readable & editable outside of your app - not secure at all, you may as well not bother asking for a username/password.
What functionality do you want to implement? Does the app really need that level of security?
|
|
|
|
|
Hey All,
Can anyone help. I need to produce a simple 2D pie chart in a seperate form that links to the main form where 3 figures are put in and then used to create the pie chart.
I have no idea about VB.net and it needs to be coded in this language.
Can anyone help or point me in the right direction, it's not a hard problem just I simply have no idea how to go about it!!!
Thx All
|
|
|
|
|
I have created a main form that the figures are input and this works. Also greated a blank form. I just need to have an idea on what to put!
I hope I have explained this well enough, it's as simple as it sounds!
Thx Again
|
|
|
|
|
|
Bumped into a nice (think VS2005) coded Ordering System a while ago available with source code.
Would be a nice start to build on : I remember it had large buttons on the left side with the
customers name in order to view order details etc.
Does anybody know what I'm talking about and where I can find it.
Tips very welcome
FanciscusBE
|
|
|
|
|
Are you talking about the same kind of side menu that Windows uses, or something more like this?
Any chance that you could find an example?
|
|
|
|
|
It looked more like a large-button menu on the left side with the customers name. I'm sure it also was on a developer site with vb tips etc.
thanks.
FranciscusBE
|
|
|
|
|
|
That is very close to what it looked like!
FranciscusBE
|
|
|
|
|
Ok, just create a ToolStrip and dock it to the left (or whatever side you want to have it on.) Now set the Image Scaling Size , which adjusts how large the icons are.
|
|
|
|