Forum: VB.NET Jan 20th, 2009 |
| Replies: 8 Views: 1,010 i get numbers instead of the text, so i will get 50399 or 104 instead of Special logon, logon, or audit policy change |
Forum: VB.NET Jan 19th, 2009 |
| Replies: 8 Views: 1,010 Hi all,
I am currently displaying the information stored in the security logs in event viewer in vista.
But i cannot get the category task to display like it is in vista (Special logon, logon,... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 14 Views: 1,243 Hi Rapture,
Thanks for that.
Regards
Smelf1 |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 1 Views: 451 no worries figured it out.
I Set AutoSize property of the Label to False and resized it to hold the contents |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 1 Views: 451 Hi,
I have a label on my form but when you type in the text it all stays on one line.
So i set its max size to force it to tab the text but it only shows two lines.
How do i set it to allow... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 14 Views: 1,243 hum mayby i need an if statement saying not InterNetworkv6 instead of internetwork, as ipv6 was on by default on my vista. |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 14 Views: 1,243 excuse me but when i run your code it returns exactly what i posted above, and this is on a vista machine |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 14 Views: 1,243 it returns 3 items,
ipv6 fe80::3894:6b0e:ed6c:7a1c%8
fe80::5efe:192.168.0.19%10
and what i need
192.168.0.19
how do i get it to only retung the last bit? |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 14 Views: 1,243 right i tried this
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myip As String =... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 14 Views: 1,243 ah yeah but its telling me to use gethostentry but if i use that it displays the ipv6 address and not the normal ipv4 one i need |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 14 Views: 1,243 Hi when i use the following code i get a warning
'Public Shared Function GetHostByName(hostName As String) As System.Net.IPHostEntry' is obsolete: 'GetHostByName is obsoleted for this type, please... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 7 Views: 1,247 how do i put line 1 from a text file into richtextbox1 and line 2 from that text file into richtextbox2.
Then if i edit either i can then save and overwrite the original |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 7 Views: 1,247 Ha ha yep, once i get going its hard to stop.
I have the text file reading into a richtextbox and saving back if i edit it.
Private Const _FILE_NAME As String = "C:\cat4\bannedwebsites.txt"
... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 7 Views: 1,247 right i have it working now,
but how do i read say the first line in a text file and put it into a richtextbox1, then read the second line and put it into richtextbox2 |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 7 Views: 1,247 Hi all,
I would like to be able to read data from a text file, be able to edit it and save the new edits to that file over writing the old ones.
Dim FILE_NAME As String = "C:\cat4\text.txt"
... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 12 Views: 1,090 no probs and thanks for the help again. |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 12 Views: 1,090 ah cool, i was going to deploy it as a windows service, i have a test service running so once i get that code perfected i will drop the code to read the event logs into it. |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 12 Views: 1,090 the problem is the program when finished will be running as a windows service so will require no user interaction. Its just going to mine data and pass it back to the database.
So i need to get... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 12 Views: 1,090 ah right sorry i taught you wanted me to create an exe of the project then run it.
If i run vs2008 as administrator it read from the security logs.
But how do i get it to allow me to run them... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 12 Views: 1,090 i am just running the progrma from inside vs 2008, how do i create it as an exe? |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 12 Views: 1,090 Hi mate,
I am a full administrator, i think its another one of these great security features added into vista.
I can read from the other event logs just not from the security one |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 12 Views: 1,090 I am able to read the data from the application event logs but when i try the security i get an error
Requested registry access is not allowed.
{"Cannot open log security on machine .. Windows... |
Forum: VB.NET Jan 12th, 2009 |
| Replies: 3 Views: 602 changed the string to have quotes but still nothing.
I have attached a pick of the connected database and sql server and now i get the attached error.
I have changed the code to point to the... |
Forum: VB.NET Jan 11th, 2009 |
| Replies: 3 Views: 602 Hi all,
I am just trying to get the information i collect from the pc's hostname and pass it into a db. All the db passwords, location etc are correct but i am getting nothing.
Imports System... |
Forum: VB.NET Jan 9th, 2009 |
| Replies: 19 Views: 1,729 cool thats sorted it comatose.
Thanks alot. |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,729 ah yeah i changed it to urls before hand and thats when i get (collection) numerous times in the combo box. |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,729 i am only using it in a small program, but if i try your code i get (collection) a load of times in the combo box. Also it says
ComboBox1.Items.Add(urls)
url is not defined so i assume it meant... |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,729 right changed a bit so i can now get the urls to populate in a combobox.
Imports System
Imports Microsoft.Win32
Imports System.Windows.Forms
Public Class Form1
Public Function... |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,729 I was thinking of trying something along the lines of this
Public Function PopulateUrlList() As List(Of String)
Dim regKey As String = "Software\Microsoft\Internet... |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 22 Views: 1,531 got it working, i have a button and combobox in the form.
I call the getinstalled function from the button and it populates the combo box with all the installed programs.
So thanks for the help. |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,729 i am just using IE as i have IE on the machine i am using vb.net from |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,729 I presume i need to use Imports System.Windows.Forms to get that to work.
I was originally just looking to get the *.html from temp internet then i was thinking about reading them from the... |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,531 ah right so the function is left alone so if i add a button i would now need to call that function from the code under the button. |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,531 okay, but when i run the code nothing gets returned in the box.
could it be the displayname part as if you go to the registry and pick a sub key, you will see displayname. When you click on... |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,531 okay that code returns no errors but how do i display the display names it finds in a combo or text box? |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,531 okay i got this now but it returns nothing
Dim uninstallKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
Dim rk As RegistryKey
rk =... |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 19 Views: 1,729 Hi all,
I would like to be able to show all the websites visited on a machine.
How would i go about doing this.
Thanks |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,531 I found something similar in c#
( static void GetInstalled()
{
string uninstallKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";
using (RegistryKey rk =... |
Forum: VB.NET Jan 6th, 2009 |
| Replies: 22 Views: 1,531 No probs thanks,
The keys are all located in hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall its where the registry stores all the installed programs.
I want to open... |
Forum: VB.NET Jan 6th, 2009 |
| Replies: 22 Views: 1,531 Hi thanks for the reply.
I am new to vb.net so bear with me : ).
Now in that part of the reg i am looking the keys can be different depending on the installed programs.
So i cannot just add... |