On your code bellow the new entry add this
Form2.MsgBox("Your Message Here")
To you code.
On your code bellow the new entry add this
Form2.MsgBox("Your Message Here")
To you code.
Hi Dw.
Is it possible to permanently burn a file to a re-writable CD/DVD but the files bytes be able to be updates/modified while the file/Media(CD/DVD) is not formattable or the files even formatting a media be un-removed from the media?
Thank you.
Thank you, that really helped, but the only problem now is that all the examples and documentations I saw only demonstrate how to copy/move/delete/rename files using the GUI where you either have to type the full paths for both target and destination, or browse using either Folder/File browser tool.
What I want is to auto pick these values let's say (on my Desktop I drag a file 'test.txt' I drag it to drive 'D:\' which D:\ is the destination how could I auto pick these without browsing/typing the full paths)? I don't want this to have user interface or user interaction but it will prompt user should there be a duplicates.
Thank you again.
Check out these and see if it won't help.
http://www.drawbycode.com/blog/?p=183
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_27218474.html
bytes.com/topic/visual-basic-net/answers/348474-setting-custom-coordinate-system-like-vb-picturebox-scale
Hi Dw.
I know how to kill or stop a process using VB.NET. But how about temporary blocking a process from performing a task?
Suppose I have a docx file located at "D:\test\" and I happen to open this file and modify it either by adding something or delete some texts inside and I try to save now, how can I temporary stop it from saving till some conditions are met, something like when you try to run an app that require admin privilege the app don't just start right away but first you double click it, then the app is temp blocked and a Windows security Admin elevation screen pops up and ask you to run or cancel if you click run then the app is allowed else some are allowed to run but all the features that require elevated privileges will be discarded or app produce error when trying to perform a task requiring elevated admin privileges.
So my question is that, how to do something like this in VB.NET, which APIs to use if required in order to do this kind of process block/Allow task in VB.NET.
Hi Dw.
I'm doing a research on how or whether VB.NET has some sort of support to listen to Windows OS events and be able to take over to be the core respond to certain events raised by an OS such as Copying/Moving of file(s) to other locations.
What I mean is that, let's you are just selecting your files from file explorer an (cut,copy, sent to) or drag and drop to the destination, normally a Windows File Copier will detect/get this event and will pop up on screen and you can see the progress of copying/moving of your files.
If you install TeraCopy this software will take over from Windows File Copier now the core file copier will be TeraCopy.
So what I'm asking is that does VB.NET support this kind of events and if it does which maybe API I can use to achieve this.
As it has been said. The problem will be data bills from their Network operators. I also support what has been said of warning your app users if they attempt to use it that they should be connected to wifi but don't limit them as to if the device is not connected to wifi the user be unable to use your app. You need to allow them to connect because there are some service providers provide with large data service to their clients so they may need to use it even if they are not connected to wifi.
Its also depends on what data will be streamed to cloud and what size. But since you've said you will be streaming videos you really have to warn the users.
The simple update will be to update the project its self. Meaning you will create your project and publish/release it, the if you feel of adding new features you need to update the already created project in that way when you publish its will create a new version folder and should an end user who is using an older version download and install the app will only change/add the new added features and the project will still be as it was with the new features now.
To test simply create a project then install it on your computer and update your project and install it again(installing the new version) you will see. I do this a lot before I release my projects. At least in VB.NET
By saying you are running vb6 forms in VB.NET you mean you have opened a VB6.0 solution in VB.NET or the VB6.0 form is contained within VB.NET?
Please try elaborating there.
Ow I forgot to state that you can instead of declaring a variable multiple times, you could only declare it once as a Global Variable, or Local Variable your choice.
You can achieve this by simply using the 'IF' statement. Try this out.
REM: Check if not both TextBox1 and TextBox2 are empty.
If TextBox1.Text IsNot Nothing Then
REM: TextBox1 is not empty so we know we can use this control.
Dim Result As Double
Result = 5 * TextBox1.Text
TextBoxAnswer.Text = Result
Else
If TextBox2.Text IsNot Nothing Then
REM: TextBox2 is not empty so we know we will have to use it.
Dim Result As Double
Result = 10 * TextBox2.Text
TextBoxAnswer.Text = Result
Else
REM: Here is to check just in case you have entered values in both TextBox1 and TextBox2.
If TextBox1.Text IsNot Nothing And TextBox2.Text IsNot Nothing Then
Dim Result As Double
Result = (5 * TextBox1.Text) + (10 * TextBox2.Text)
TextBoxAnswer.Text = Result
Else
MsgBox("Please enter at least one value on one or both fields")
End If
End If
End If
This will also prevent some Null exception as it will only use the desired calculation based on which texts is not null. But this will not handle the conversion from string to integer or double exception you will have to first check if the value entered is only digit.
If your question has been answered you can mark it as solved.
On your post you said you want to "CLEAR" but your code selects the first Item in your ComboBox.
Try
ComboBox1.Text = ""
Yea or on ENTER keydown event which is not under textbox events but can be incorporated
Where are you stuck?
Ow no you do it wrong. Let me differentiate these two tools for you so that you will see how its works.
1) Button -> has Click event which is to perform a task once the button is clicked.
2) TextBox -> has TextChange event which only take raise this event when/while typing something on it, this raise event for each stroke/character entered/typed or you can use it to track a typed word to see if its match/contains any word you want.
Now with that being said, the reason why I said you did it wrong reflect to this. The button does this for you so remove that code from TextChange event.
As I've said the textbox also allows you to monitor the word of which is what I think you want. In that case of yours to check the name if its exist while name is typed on textbox you need to use the sort of auto-complete or any other technique to tell if a name exist or not. To use auto-complete you will need to point its source to your database and keep in mind that if its does complete a word that means its exist.
Ok... Now you have start showing what you have so far then we can help. You post almost 6 questions a bit related but didn't even show an effort on it.
NavigateWebURL("Address","Firefox")
I'm not sure of your question but I think that example will help you.
Mmmm are you asking us to do your home work? Because you have said it and best of all as for an example you know that you want to delete ".bat" files or files with that extension so why don't you point to the path and delete?
What is the problem exactly?
You need to know the unwanted files and use either 'del (filename' or 'My.Computer.FileSystem.DeleteFile(filename)'
Not tested that but its something like or similar to that. Also you need to show some code before you get codes.
Hi Dw.
Is it possible and how to get the executing process (detect a starting/executing file process)?
I know how to list the already running but how about spotting the starting process? not the already running but let's say I try to open a Notepad.exe file I want to be able to get the execution of this file right at the very first place every time its try to start so that I will be able to trace back and or stop it before it even execute.
@Nee_1 you need to start a new thread based on your question, this is already answered. Also before starting that thread search within Daniweb to see already available solutions to your question.
Hi Dw.
How can I tell if a file contains any file within it? I mean suppose I have a picture and I want to check if its a pure picture or there is a file hidden inside, this question comes after I read this post but it was number 5 that brought this question. Here is a link: https://www.raymond.cc/blog/hide-your-secret-files-by-embedding-it-to-another-safe-source/
@drjohn Thanks, but I was trying to make sure I remember everything I did. @media here is my current code html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<div id="preload">
<img src="images/Purple Rose Logo 01.png" />
<img src="images/fb.jpg" />
<img src="images/tt.jpg" />
<img src="images/insta.jpg" />
<img src="products/IMG_2436.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2447.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2391.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2459.JPG" alt="" style="width:10%" height="10%" />
<img src="products/IMG_2380.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2414.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2496.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2428.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2469.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2479.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2523.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2354.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2357.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2486.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2404.JPG" alt="" style="width:10%" height="10%"/>
</div>
<link href="l.css" rel="stylesheet" type="text/css" />
<title> Purple Rose Boutique </title>
<header>
<link rel="shorcut icon" href="favicon.png" />
<link href="cata.css" rel="stylesheet" type="text/css" />
<div align="left">
<a href="index.html" class="logo"><img src="images/Purple Rose Logo 01.png" /></a>
</div>
<div align="right" style="top:100px">
<a rel="nofollow" href="http://www.facebook.com/" target="_blank">
<img src="images/fb.jpg" alt="Facebook" style="width:25px" style="height:25px" style="left:250" /></a>
<a rel="nofollow" href="http://www.twitter.com/" target="_blank">
<img src="images/tt.jpg" style="width:24px" style="height:23px" style="left:250" /></a>
<a rel="nofollow" href="http://www.instagram.com/PurpleRoseboutique23" target="_blank">
<img src="images/insta.jpg" style="width:24px" style="height:23px" style="left:250"/></a>
</div>
</header>
<nav role="navigation">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="products.html">Products</a></li>
<li><a href="order.html">Order</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<section role="main">
<h1>This section is products section.</h1>
<div align="center" style="position:relative">
<img src="products/IMG_2436.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2447.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2391.JPG" alt="" style="width:10%" height="10%"/>
<img src="products/IMG_2459.JPG" alt="" style="width:10%" …
What's this?
Thank you the images problem have been solved. Is there a better way to insert text to align underneath the image? I've used ' ' to space the texts but if the browser is restored the text are fixed to the same position while images reduce their size and this become un-aligned text.
Thank you. I'm still trying to find a solution to this as well.
I've managed to sort the frame to be at the center of the page even if the page is maximized or restored. I've used:
<div I'd="wrapper" style="100%; text-align:center">
<img src="images/bg5.png"/>
</div>
Now I'm trying to correct the social networks icons so that they will also be well positioned even if the browser is maximized or restored.
Thank you again.
I'm experiencing problems with adding my slider frame image into the body. I don't know if i have to draw it using the html/css because its an image. I've tried adding the wrapp in the css for it but if it is inserted it will be fixed to a certain position which when I restore the browser the frame is not positioned correctly. I've looked into the video at css positioning but the video has boxes which its appears to be easy to position using the 'relative' for the parent (container) and the 'absolute' for the child box.
Sorry I'm a bit new to css so I'm still trying to learn it.
Thank you. Will take a look at it and will get back. Thanks again.
Ok so what you suggesting is that I slice my background image to pieces like (slice the top purple part, slice the white part which holds the buttons, slice the footer which will give me 2 parts (the body part and footer part))?
I will try this out and see. Thank you again.
@media are you referring to the background image? If so well I didn't know of a way to make something like the image (I created and used it as a background) in html and css. I know that had to set the margin to 0 of which I also did to center the background but also used the "left" tag to properly place the image.
So as you suggest I should change to html and css how will I create something like that using html & css?
Thank you.
The problem I'm facing is that when I designed this website I previewed it on a maximized browser and now when I restore the logo appear to be fixed on one position, and yes I've forced(aligned) the logo and every other content in this site manually on a css and right now I've changed from absolute to relative and because the image just went far left I then on the css put this "left:200px; top:25px;) which displays the logo to a perfect place when the site is maximized but if I restore the site, the image appear to be fixed to 200px because its doesn't even move a bit when the background(page) moves to restore position of browser. If I change 200px to auto or inherit the logo just be fixed far left of the browser.
Any idea of how I can overcome this problem?
Thank you.
Thank you. But as for logo and the home page slider I've tried changing from absolute to relative but as for a logo the logo just got way big its almost filled the entire site.
Any sample you can provide to place the logo and the buttons, social network buttons and slider properly. I've also noticed that when I open the site with a mobile device and click order,or contact the form went outside the background body image at the bottom, how can I also fix this because on a computer it display correctly till you minimized the browser.
Thank you.
Hi Dw.
I'm not a pro in web design and I've used CorelDraw to draw a website background which is a web page centered image which the web contents will be ontop of it. The problem I'm having is that it will loose the alignments if I you view it on a browser which is not maximized, and also if you open it with a phone browser as well its not aligned correctly. Anyone who can help me solve this problem. Here is it but the slide images are not being uploaded because of some technical issues I faced when trying to upload them. (http://mlungisi.0fees.us).
Thank you.
Since you have a variable to determine if its done, you should create another if statement within that block to verify if done is try (1) or false (0)
If Done = True Then
' Change the color of the field here.
Else
' Its wasn't copied then.
End If.
Well I'm also developing one but on my spare time, I think the simple way would be to get signatures. First of all you will need these:
1) A software that will be able to give you the files signatures.
2) Virtual Machine.
3) All the targeted Operating Systems.
4) Database.
So you will then have to use VM to create OS instances and firstly don't install any additional software on your instances, and make sure its clean, then you will need to get a file name and its signature, then install the clean (un-infected) third party software's and get their names and signatures. Once done that then you will be set to build your working AV.
All you need to do is write a code that will try getting all the files and for each file compare the file name with the one on your database, if they match then you can get its current signature and compare it with the saved signature, it the files match but signature does not match then that's tells you that the file has been infected.
To be able to detect a new virus or suspicious file you will have to do a lot of research in hex and other possible methods of getting a files behavior, or you could also read it bytes and see if they have been modified or not. A very good example of what I mean here is that of how people hide files …
This will give you motivation against those said it not practical for an individual to make this. check out this "Amy" example video and see. https://www.youtube.com/watch?v=M1YfjY8jcLg this is just to keep you inpired and motivated that you too can achieve this.
Do you have an up to date AV, I'm not sure but I don't think IDE wouldn't show if you have selected a control, maybe there is a hidden program running which is set to top the most and was maybe hidden using transparent, try checking also your processes and see a process you haven't seen and stop it, also perform a full scan with your AV.
Just the links you can check out. Please ensure you read first its post and see which parts are more close to what you want to achieve. The first link has a voice recognition which you can try changing to achieve at least picking up what user has said. I think you can have a collection of commands as texts or voice clips and for each record received the application will loop through the collection on commands and see if it has any match if it does you can then either diagnose the task like opening a default browser and submit the command to it.
This project is kinder motivating me, I will also try working out something but one task at a time because this is a complex project. I will also encourage you to use codecs to compress the audio(recordings) but use a good one which will produce clean recordings.
http://www.codeproject.com/Articles/17728/Speech-Recognition-And-Synthesis-Managed-APIs-In-W
http://www.codeproject.com/Articles/579471/How-to-Write-Your-Own-Siri-Application-Mobile-Assi
This is as close as possible to what I just said of having a collection of commands so I will suggest you start here.
http://www.codeproject.com/Questions/413665/Speech-recognition-in-vb-net-without-that-annoying
Excellent sample here.
http://www.codeproject.com/Articles/483347/Speech-recognition-speech-to-text-text-to-speech-a
You obviously will need to download a C# to VB.NET converter or use an online converter to convert it.
Hope this helps. I will also try working on this when I get sometime because I see a possibility of achieving this.
Thanks, will try it out too. Thanks again.
Well as you said you want your computer to understand you and be able to reply back "I hope you understand that very well" because the computer or a software doesn't know how to reply and when and with what to reply with, so this is a very time consuming project and I personally think you can achieve at least not perfect but close depending on how badly you willing to achieve it and time you spend on it. First of all I will have to advice you to first write a program flow and also as you said you want yours to do the "Simple" tasks, you will have to write the things you will be saying to it, and also write the response/replies you expect.
After that you will need to make your Voice Recognition (VR) and if you will use codecs you will need a very good codec so that your program will be able to at least getting as close as what you have spoke, because programs usually fail to correctly detect what you said.
After that you will have to now plan how you want to perform the response like suppose you said "Computer google search facebook" then you will need to make it detect that the recording has these words 'google search', 'facebook' where 'google search' will be telling a program that it will be searching online and the search engine it will use is google and 'facebook' is the parameter or value it …
Here is how to check if the condition is met or not.
If Val (DataGridView1.Rows(x).Cells(7).Value) <= 2 Then
' Here the condition is met
' You can put your code you want to process while this condition is met
Else
' The condition is not met
End If
@Dave that's a C# code, this question is on VB. The OP should make use of Console.Write method or try using MessageBox.Show() method to display message.
Thank you
Thanks guys.
Thanks, I've also saw another post with the same answer but my problem is how to locate that campatibility, mean, where my I go to reach that, I've tried looking for it under properties of my project but I didn't find it.
A code will help so we can see how you ran it.
Hi Dw
I'm having a problem here, I created this project and because of Access denial I was prompted to use the manifest to make my app run accordingly, but changing the manifest value from "asInvoker" to "requireAdministrator" helped solving that problem up to a point where I had to publish my project and error "ClickOnce does not support 'requireAdministrator'".
How can I run my project as admin or maybe on startup the project will prompt for admin then run as admin?
I have looked at some other project, I first saw a C# example that's does this but when I tried to convert it I got error using online C# to VB converters, and luckily I found a VB.NET but the sample was made for Vista OS and its uses a module.
http://www.dreamincode.net/forums/topic/82541-my-application-needs-admin-rights/