Mr.M 89 Future Programmers

So is there any way I can go about doing this in vb.net?

Mr.M 89 Future Programmers

Well in that case I'm not sure but I think you will have to first set instructions to first search the character by character that the user enter when ever the key is pressed so that you will try to match the characters while the user is typing in, I'm sure you will have to use either the timer nor textbox change event handle that refer it to you library where you have the collection of your words that you want to match from.

Mr.M 89 Future Programmers

This program is a program that will be used by my programs to complete a task, I won't go much in details on this programs for this project security reasons but I'm creating a programs to do unbreakable or unrippable discs so when I designed this I saw it would be helpful if I completely hide the protector program so that hackers and crackers will not be able to access this program as they will not know that it is installed and when you ripping a disc that this program perform some task which I won't mention for security reasons, I'm sure now you understand what I'm up to not hacking.

Mr.M 89 Future Programmers

@G_Waddell well I chosen that user name because daniweb require to create a unique name that doesn't mean I'm hacking, but I agree with you Jamlaster we don't have to be judgmental, I will try to change this name but I've tried before on my phone but I had a problem.

Mr.M 89 Future Programmers

You can add the Print Preview tool and then code it to Preview the ComboBox items.

Mr.M 89 Future Programmers

Have you tried it without this line myProxy.Credentials
= New
System.Net.NetworkCredential
("", "") ?

Mr.M 89 Future Programmers

I think you have to use the StartWith() or EndWith methode so that it can search for all the words that StartWith(textbox1.text) Or EndWith(TextBox1.text) I'm sure you can achieve your goal by that.

Mr.M 89 Future Programmers

Hi Dw

I've created a program which I don't want it to be visible by any means, I don't want it to be visible to people who will be using Group View tools to manage the computer, I want it to be like the windows system files which does not appear under the installed programs files if you go to Contol Panel>Uninstall program file I don't want it to be visible in that list of installed programs, I don't know if this can be achieved in vb.net as I wrote my program in it, I know there is nothing impossible I just need the way of completely hide a service program on a computer. Thank you.

Mr.M 89 Future Programmers

Eish, so now the reason why I used wamp is that I want to provide with web hosting and this ASPX website I've designed it to handle and process the online domain and web hosting registration from online users, so if I install the IIS 6 won't it inter fear with my wamp server?

Mr.M 89 Future Programmers

Any help?

Mr.M 89 Future Programmers

The link is broken but I googlished but I didn't get what I'm looking for, and when I was just scrolling on my wamp server files I came across a file called ApacheMonitor.exe which is located 'C:\wamp\bin\apache\apache2.2.22\bin' and I double clicked this file and it run and showed an icon and when I go to this icon and click it it shows the status of the server and open an option panel which have start,stop and restart so I think I have to get a way of using or incorporate this file in my web app so that when the user click register after his/her domain has been registered the system will fire instructions to this file to restart so now I don't know how can I go about doing that. Any help with that?

Mr.M 89 Future Programmers

Hi DW

I've created a website in Visual Studio under the VB.NET and I tried to publish the website to my wamp server on my computer but when I try to access my website via webbrowser it shows something like index of/ then list all my web files it does not run it but it shows all the files inside my root file of a domain, so is there any way I can solve this problem actually this is my first project in aspx but I well know vb.net

Mr.M 89 Future Programmers

I don't want to keep on restarting it manually but as my application deals with processing online domain registration so as soon as the user click Register button under domain page it then register the domain to the server conf files and host and then create a file which is index.php inside the online user then now the domain is ready but in order for the online user who had registered the domain to test or verify that the domain has been registered by typing a domain in the WebBrowser the server must be restarted so that it will recorgnise the domain so what I want is to automatically restart the server let say once the online user had clicked the register button after creating and registering the user I want to restart the server so that when the online user click test my domain button the program will then open a WebBrowser and past the online user domain and navigate it to view the index.php file that tells the user that this domain has been successfully registered so in order to do this the server must be restarted so I want to do it systematically after the user has been registered and the domain has been registered to the server files.

Mr.M 89 Future Programmers

Hi DW

I'm creating a program in vb.net which is an aspx but I think the solution to my problem as I'm using vb.net can be as vb.net because most of the codes in this web application I wrote it via vb.net, I have a server it a wamp server installed and running well on my computer and what the program or web application does is register the user to the server and now the problem is that once the user has registered the domain the domain won't be accessible until I restart the wamp server so my question or problem is how can I restart the wamp server or isn't there other way of doing so because by the time I restart the server the server shutdown and then restart but we all know that the websites can't be accessed when the server is down so this will make other websites to be invaluable each and every time there is a user registering the domain so I don't know if it possible to restart the server but not putting the webserver down because what if there was other site client who maybe was processing or downloading a file from that site and on the other side on the server there is a new user who is registering the domain and the system then restarts the server and while the server is down the connection to the other site client that was processing or downloading will loose the connection and …

Mr.M 89 Future Programmers

Well I've done some research an what I found out was that in order to communicate with the peripheral devices you need to create an interface not the UI or GUI but it more like a class but it start like this public interface CashDispenser{. What I want is to should I say control or manage this peripheral device so that it when the CashDispenser.dispenseCash(amount); method fires it will then start dispensing the requested notes or amount, if you can just look at the like the class start with public class CashDispenser but the interface start like this public interface CashDispenser so now if I do this these codes will be marked as errors: private final static int INITIAL_COUNT = 500
Private int count
Public CashDispenser()
count = INITIAL_COUNT

Saying modifier private not allowed here and also identifier expected and in some other code it says cannot assign a value to final variable count and on these { it says interface method can not have body

Sorry for not formatting the codes I'm using a mobile phone and the format tools is not visible

Mr.M 89 Future Programmers

Hi Dw

I've created the system which will be allowing the user to perform the withdrawal transaction from a self service device so far I've created the side which will be inter reacting with the user which is prompting a user to insert the identification and key in the pin then get to the main menu where by if the user has funds on his account the screen will prompt him to enter the amount he want to withdraw not exceeding the CurrentBal so now what I want now is to create the interface not the UI but the interface that will send the withdrawal commands to the physical cash dispenser, I've tried using the jpos but it produced lots of errors then on my research I came across this simulating article which when I tried it out it resolved the errors that I had and it runs but since it the simulation I don't think it will send these commands so I found that in order to send these type of commands I have to use an interface which I tried it while following the approach of this article http://staff.science.uva.nl/~fdevries/java/java1112/voorbeeldcode/dd.examples.8e/examples/ch13/CashDispenser.java but there were some errors if I put the public void method so I don't know if there can be anyone who can help me in solving this problem. Thank you

Mr.M 89 Future Programmers

I've just managed to search the files without putting the full name just by extensions now the remaining part is that of tracing the original file where it resides and permanently delete it and it shortcut

Mr.M 89 Future Programmers

Hi Dw

I'm trying to detect the harmful files, this is the well known harmful files so now I've tried to scan and delete the files but the problems are:
(1)- After the file has been removed (deleted) after a few more minutes it appears again so what I want is to trace back the original file to find out where it reside and delete it from it source and then delete the short cut.

(2)- If let say I want it to detect the files in which I don't want to specify it full name because in another USB it will be another name so if I say I want it to detect the files ending with this extension it does not detect I've tried writing this in many ways but it does not detect anything if let say I will do something like: "F:/.lnk" 'F' is the drive and '.lnk' is the file I want to detect. Will just post the simple file search method I've used.:

Dim file As Boolean = My.Computer.FileSystem.FileExists("F:\tfs4_160.lnk")
If (file = true) Then
IO.File.Delete("F:\tfs4_160.lnk")
MsgBox("Found a file and has been deleted")
Else
' Do nothing

Mr.M 89 Future Programmers

Well your question is not straight you just need to understand first how hacking is done and also understand the structure of the computer, you sound like you don't even know what you are talking about, the hacker can hack a system in many different ways, you can try to close the ports but if the system is not secured enough the hacker can crack it and reopen the port because you don't know how to put strong security and there is no one who will write that code for you, I suggest you do your research in advance before attempting to create this.

Mr.M 89 Future Programmers

You can use the COM to detect the plugged in devices then from there you can do what ever you want, Please note that you can't get the codes without showing your efforts and clearly show where you are having problems, you can try this www.yiigo.com/guides/vbnet/how-to-twain-scan.shtml

Mr.M 89 Future Programmers

Thanks but the reason why I used cmd.exe is that I failed to do it in vb.net so because I've see when let say I'm using a computer at school where I'm not an administrator I can't copy or move files to 'c:\' drive but if I open the cmd.exe and type 'xcopy path tothefile.smthing destination' it copy it doesn't require me to be an admin because I use the command so I thought even here will be the same but not it fails the computer where I'm running at now is the computer where I'm the admin on it, so can you please help me in doing that in vb then in command thank you

Mr.M 89 Future Programmers

Hi Dw
I'm creating an application that will copy a file from one directory file to System32 file but I get an access denial error and I've decided to use vb.net to call cmd.exe and send keys to it that will instruct it to copy the file but the same error occurs but if I put or copy the file let say to 'C:\test\' it will copy it but it produce error if I try to copy it to System32 so I don't know if there is anyone know how I can grant this program a permission to access this file because I'm also an administrator on this computer, here is the code I've used below:

Dim Process As New Process
Process.StartInfor.FileName = "cmd.exe"

Dim SourceFile As String = "C:\Users\MyAccount\Desktop\Test\1254.txt"

SendKeys.Send("xcopy " + SourceFile + " " + "C:\Windows\System32\" & "{enter}")

Anyone who can help please

Thank you

Mr.M 89 Future Programmers

Thank you but I've never used Linux OS I'm using windows but I think the approach is more the same to rooting files but I'm not sure of that, in windows I can access this file by 'C:\Windows\System32\drivers\etc\hosts' how will or what is the full path to this file in android and symbian because I don't think they have 'windows\System32\' and also how can I explore this on a computer when I've connected the phone to a computer so that I can make sure that I get the correct and accurate path to this file. Thank you

Mr.M 89 Future Programmers

Thank you so much it first didn't work then I created a new project then tested from it and it runned I think it was confused on the project that I was using because I've added and removed this jar file on it so I think it was confused or maybe it was the xml code that I deleted containing this jar file name after I deleted it from the folder and when I debugged it by that time it gave me an error that the file is missing but because I've removed the file manually I then deleted the line that was producing the error which was containing the file name, thank you again will mark this thread solved now thank you. ;-)

Mr.M 89 Future Programmers

Did it run on you because here it doesn't I even put the full path for testing of the jre but still it doesn't and I tested if the file is recorgnised by changing the file I added a text file containg text for testing and I change the java.exe in the codes and replased it with a notepad.exe and othe other side I put the file name which is test1.txt and I debugged it aand it runned well but when I change to my project it doesn't run it I really don't know now what to do anymore.

Mr.M 89 Future Programmers

Hi Dw
I'm planning to create an application for mobile phone, now my problem is that I've never done this before and I don't know the filing or the root files of a mobile device but I use to hear that it also has a 'c:\' drive which is good for this application I'm planning but the problem is that I don't know if a file named etc exist on a mobile phone or not, the application that I'm planning will be the add or it will come with my program for windows pc and I'm trying to enable the feature of controlling the web access which will limit or block certain websites from being accessed by the device, in windows pc I used that file for controlling so was thinking of using it too on mobile device if it do have the file c:....\etc\host and also how can I explore these file on my computer let say I connect a phone with a cable which program should I have and if the file exist does all the smartphones have it and is it located the same root from symbian, android, blackberry, etc? Thank you.

Mr.M 89 Future Programmers

Can you please give me a sample on how I should use that System.File.IO... Codes here is what I have so far: JavaProcess.StartInfo = New ProcessStartInfo("java", "-jar " & My.Resources.Myproject1). JavaProcess.Start(). Sorry for not formatting the codes I'm using a phone. Now with this codes the command window show and hide same time so I'm not sure if it do execute the jar file or it doesn't work because it hide before executing the file. So I don't know how I will be able to execute and see it while running.

Mr.M 89 Future Programmers

My laptop is Samsung RV511

Mr.M 89 Future Programmers

I think the '.jar' file is more like zip because you can also extract it to view some files inside, but I think changing an extention to '.txt' will help in loading it to VB because when I tried to load it in a '.jar' extention it said a dimension of byte can not be converted to byte so I think if I change the extention and when calling it call it as a '.jar' so it will change on runetime from '.txt' to '.jar' extention, when I've tried this I will then inform you

Mr.M 89 Future Programmers

OK I've tried downloding the chipset drivers but the error is the same it says This computer does not meet the minimum requirements to install this software. so i don't know how I will resolve this

Mr.M 89 Future Programmers

well you can try looking at this and then just make the changes and what i think you will need to do is that you will need to create the library where your application will refer to for the commands and also give suggestions something like "Did you say ______" because the quality may not be clear and the system may not correctly get what the user said this will prevent typing wrong words and also I think you will also need to look or work with curent window so that the program will type on the current open program maybe the notepad or any text additor but use the current window maybe like current active this means the active or the ontop window it must type there unleas you specified the place to type to. Out of time can't keep on typing at the moment.

Mr.M 89 Future Programmers

If your problem has solved Please mark this thread as solved and if you have additional question please start a new thread.

Mr.M 89 Future Programmers

Mmm why don't you make it simple by making a folder that will contain all your pictures that will be used and then on your database just save there the directory address to prevent lot of coding for instance if you want to replace the image. saving to file will also prevent the future freezing on a slow computer memory.

Mr.M 89 Future Programmers

well first you should first globalize the count it won't count the way you want it if you put it under the private sub and also try to use a timer you to rendomise you will need to start and stop the timer by giving it the interval that if the timer = this interval then it should stop counting and the number that the timer stoped on will be you guest ID but then if you have more then 1 guest then you should verify that the ID is not in used by ather user so if the ID is already in used the the timer should start again to get the free ID as you say it up to 10 that means you will only handle up to ten guest so don't forget to prevent the error there.

Mr.M 89 Future Programmers

Thank you will test that and will report back and if it solved my question I will then mark this thread as solved.

Mr.M 89 Future Programmers

Hi Dw

I bought a laptop 2 years back and in the past few weeks it freezed and i was so frastrated and i just rebooted it with the disc that I was issued from the store when i was purchasing it now the problem I'm having is that it seems as if the disc doesnt have full resources meaning the drivers it doesn't come with the drivers now I can control the brightness, the volume doesn't show anymore the bars, I can't connect to the wifi even on the ethernet it doesn't connect, i tried to download the intel drivers but when installing it, at the end it gives me an error something like the hardware is not confiregured to support this but i've forget what it writes after installation now i don't know what to do. my laptop is samsung forgot the model code but it has R and 5 that what im sure of. please help me anyone know how can I reinstall the drivers because even the resolution is bad.

Mr.M 89 Future Programmers

Hi Dw

I would like you to help me here, i've googlished for this but it seems as if my problem is a bit complecated. I've created a program in java which has the '.jar' extention and then I created a program in VB.net which is an executor of the java program now the problem that I'm having now is that I want to put the java program inside the VB.net program so that when packing or exporting the program or the project the java program will be inside the vb application so that there will be only one file which will be '.exe' extention now the problem is putting this java file or should i say calling it something like

process.start("java" "-jar " & My.Resources.myjavafile.jar)

note that if I call the application in my Drive like drive D:\myjavafile\dist\myjavafile.jar it execute very well but if i try to put it inside the VB application program the system don't show it after i press the'.' after resource(s). Any help with instructions on how to do this will be apreciatable.

Thank you

Mr.M 89 Future Programmers

Thanks but i tried it and it produced lot os errors, I dont know how I can go about it. Or perhaps if you can guide me because the With function produce errors.

Mr.M 89 Future Programmers

Hi DW

I'm creating an application in VB.Net which is using the command to complete the tasks the reason why I'm doing this on VB.Net is that I have an interface where the user will be able to type in and also choose the prefered options, the vapplication will then send the kesy to the command to perform it so now the problem is that the command shows I want to hide it, let say I have this System.Diagnostics.process.Start("command")
SendKeys.Send("path & "{enter}") now let say I want to hide the command but send keys to it any help? Sorry for not formating the codes I'm using a phone so it doesn't show the options of formating. Or let say I want to copy a file to another file using the command the paths of the file that will be copied will be typed on a textbox and on the other textbox you can type the directory file to copy the file to and when you click the button the command will be executed and be feeded with these instructions while it hiden. Thank you

Mr.M 89 Future Programmers

Thanks but I want to do it in vb because there are some other features I would like to add on this project so I think it will be much better if I use vb because the user will find everything in one place and it will save lot of time because the features that I want to add will also help the user on the end side to download and update and save the pages fast and easy with a simple options that I want to provide so that a minutes I/user click submit it will save the backupcopy and also transfer to a server the pages so that why I find this idea of SurfOffline pro a good idea for this project because the Sufoffline Pro allows the user to just type in the URL and then choose what the user want to download if the user didn't choose anything but did provide a valide URL it then download the entire website so what I'm trying to do at the moment is to be able to download the website simple by providing the URL address so that I can be able to add these features I want in this project.

Mr.M 89 Future Programmers

Thanks to you all but what I would like to clearify is that I'm trying to create a program that will allow the user to surf offline just like SurfOffline Pro and other programs not that I want to violate any sites rules or so, When I say I want to save site or website pages on a disk this will help me because I'm also freelancing in webdevelopment so most of my clients has huge sites which sometimes they want me to update for them so I decided to just create a program to download the website and then update it and save it back to the server this will also help if a client has lost or damaged his buckup instant of him/her giving me or my stuff members his/her server credentials to download the site or update the site online it will be much better if he/she will give me his/her site address and I will download and update and server it back and also if they want to port in to my server I will simple provide a space for them to type in their current domain then I can retriev straight his/her website to my server if he/she want to use the same webpages to his new hosting server so this will save them lot of time instand of loging in to both servers and download and upload website.

Mr.M 89 Future Programmers

Hi Dw

I'm trying to create a program that I will use to browse through websites when I'm not connected to the internet and I can download the single page using the code I provide bellow but what I want is to download the entire website with it contents e.g. pics,css,ect so that when I'm offline I can still browse the website. The code I'm using require me to add a name in which the file will be served to my drive so this will course errors because I may not name it the same way as it was on the original I want to also scan if a website contains any hypelinks and if it does I want to download it contents so that it will run the same way when I'm accessing it over the internet when I'm offline. The code that I'm using is:

Dim myWebClient As New System.Net.WebClient
        Dim myFile2SaveTo As String = "C:\0000\index.html"
        myWebClient.DownloadFile("http://example.com/", myFile2SaveTo)
Mr.M 89 Future Programmers

I want to change this to use the pictures as my GUI but the problem is that I think I will have a problem trying to listen or track the side keypad for a real ATM Device so that why I choosed to use the consol because every computer do have a consol application so I will later on try to use the GUI I saw some application project it has some pictures used there but I don't know if when you use it on an ATM if it will be tracked or the buttons will be clicked when let say you press the ATM side buttons which is for optional money choices.

Mr.M 89 Future Programmers

Well for now I execute the command manually then after that I type in the jave -jar ... but later I will try to execute this command via a vb program then instruct it to open my project. I want the command window to automatically close when the application is done and here is how I did it I posted with some menu options please refere to the code.

 public void mainMenu(){
        int selection;
        System.out.print("Welcome to the Automated Teller Machine!\n");
        System.out.println("Select from the following menu options below:\n");
        System.out.println("========================");
        System.out.println("| [1]  Check Balance   |");
        System.out.println("| [2]  Withdrawal      |");
        System.out.println("| [3]  Deposit         |");
        System.out.println("| [4]  Exit            |");
        System.out.println("========================");
        System.out.print("Please select your option now: ");
        selection =input.nextInt();

        switch (selection){
    case 1:
        viewBalance();
        break;
    case 2:
        withdrawFunds();
        break;
    case 3:
        depositFunds();
        break;
    case 4:
        System.out.println(" Have a nice day thank you for using this ATM.Bye! \n");
        Runtime.getRuntime();
        System.exit(0); // Here I'm trying to close the cmd when I choose the exit option.
        }
    }

Thank you.

Mr.M 89 Future Programmers

Hi Dw

I've created a console application and now I want it to close or teminate straight when I choose exit I've tried the System.Exit(0) but it doesn't close the command screen please help me out. Thanks

Mr.M 89 Future Programmers

If you will manually enter the numbers with the commas you can just simple create the variables that will store the numbers before the commas and also create the variable that will store the commas since it not easy or possible to calculate the numbers with the string format so here is an idea of how you can go about doing it.

Dim TotalNoBforCommaOne As Double
Dim TotalNoBforCommaTwo As Double
Dim TotalNoBforCommaThree As Double
Dim VatableNoBforCommaOne As Double
Dim VatableNoBforCommaTwo As Double
Dim VatableNoBforCommaThree As Double
Dim TaxNoBforCommaOne As Double
Dim TaxNoBforCommaTwo As Double
Dim TaxNoBforCommaThree As Double

' Now you need to track the textbox to detect if the comma has been preesed then
' if the comma is pressed then if it the first time in that textbox then you can
' Assign the desired variable with the current numbers on the textbox then clear the
' textbox so that you can track other entries and assign then with the correct variable.
Mr.M 89 Future Programmers

Thanks I was so stupid the application that I created uses the consol to display so it seems as if I can't or it can't start a consol on it own so I recreated the whole project and I just monited each and every move the IDE do then I saw that it instructed me to type the java -jar "C:\Users\Me\Documents\NetBeans Project\My Project\myproject.jar" to run it and I just typed as I see it and wow it debuged thank you so much everyone. I will create another thread because there is another question I have which I discorved when i was debugging.

Mr.M 89 Future Programmers

It's not clear where you are hitting the problem. Do you have the .jar file that NetBeans creates (in the build directory of your NetBeans project).

Yes I do hava it and it the same .jar file I'm trying to run but when I double click it, it just do nothing and if I try the command method the cmd.exe says Error unable to access the "jarFile" I've tried even if I just put the full path but it says it can't access the file I don't know why.

Mr.M 89 Future Programmers

Hi DW

I've created a project on NaviCoder for java and when I tryied to export the project I had a problem then I redo my project using the Netbeans and that where I was then able to export or should I say build the jar file which is an executable file but the problem is that I can't run or execute this jar file outside the IDE I really don't know what is the problem with this and when I do a research on this problem I just noticed that on my project there is no lib file created when I build the project I don't know whether this is the course of this or. The project doesn't even run when I double click it, it just do nothing at all so I really don't know what the problem here. I don't know whether it the IDE I'm using or it the jre but I've just downloaded and installed for more then 20 times now. I just thought of using the eclipse I don't know whether this will solve my problem or not. any one know how can I solve this please help me out.

Mr.M 89 Future Programmers

Sounds like your problem is java not .net

Jea that was the problem I encounted after building the project to a jar formate so when I was doing my research on how can I execute this I found some testing with the CMD but then when I try to test mine it didn't run so I'm now trying to install every java utility on my pc because it also said it can't create a Virtual Machine so I think I have to install the JVM, so when it did run then I will then continue with my project that will execute this jar file in VB but for now I'm trying to solve this problem I will also post the thread on Java forum maybe they can help me run this in a cmd on my computer.