107 Posted Topics
Re: I think he is wanting the picture to adjust to the size of the PictureBox. To do this, your code would look something like this: [code] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Sets the Title of the OpenFileDialog Box OpenFileDialog1.Title = … | |
Re: Here is a thread on another forums site I have found and I hope it will help you out: [url]http://forums.devx.com/showthread.php?t=167470[/url] Good luck and happy coding! | |
Re: You could import and Excel or Access component and just save the data from each cell of the Access or Excel component into a table on your SQL Database. How To Import Excel: [url]http://forums.devx.com/showthread.php?t=155202[/url] Save Data to SQL Database: [url]http://stackoverflow.com/questions/5621577/export-from-sql-server-to-excel-file-using-asp-net-and-vb-net[/url] Hope this helps and Happy Coding! | |
| |
Re: Well, what you code it in, by this I mean framework, is what you are going to need to run it. You can change it from 4.0 as most computers have lower version already installed. I am not sure how you would accomplish what you are wanting with just a … | |
Re: Could you not just use an if then else statement for this? Sorry if I am wrong, I am not amazing in C# but would this not work? For example: [code] if (//Your Code Here) { //Code } else { MessageBox.Show("An error has occured."); } [/code] This wouldn't give you … | |
Re: Check this out: [url]http://www.ehow.com/video_4987362_make-swf-files.html[/url] I am not sure if this is what you are wanting to do but this should be a start. Also, I recommend to Google it to find other videos/articles to read. | |
Re: Well, seeing as how you did not provide what the company does, we can not really give you a specific application to code. I know when I was a senior is high school(last year), I created a chat program that allowed you to chat with people across your network. I … | |
Re: I agree with the user above. I do not see how you could achieve this and honestly, why would you want to do this? I am not trying to shoot your ideas down, I am just wanting to see how you are integrating this into an application. | |
Re: This seems like a homework/project problem given by your teacher or professor but I will try to help you either way. When the problem says proportional, I am guessing that means they are the same. If so this should do the trick: [code] #include <cstdlib> #include <iostream> using namespace std; … | |
Re: Your code should look something like this: [code] #include <cstdlib> #include <iostream> #include <stdio.h> using namespace std; int main(int argc, char *argv[]) { if( remove("Your File") != 0 ) perror("File Deletion Failed"); else puts("File Deletion Completed"); return 0; } system("PAUSE"); return EXIT_SUCCESS; } [/code] Hope this helps! -Chris | |
Re: If you are using FileCopy you need to do this: [code] File.Copy("Address of What You Want To Copy", "Address to Copy it To"); [/code] Hope this helps with the question you are asking and if you have already had this problem solved, please mark it as so. Thanks. -Chris | |
Re: I am pretty sure you can only use the WebBrowser control provided but you can try Right Clicking in the Toolbox and try importing it from your computer but I am not sure if this is possible. | |
Re: I am not exactly sure how it is displayed but I do know for a fact that all the cookies and the cache of the WebBrowser control is stored in your IE so I am fairly sure it is very similar. It may look different because if it had to … | |
Re: [code] PictureBox1.Image.Save("C:\img.jpg") If My.Computer.FileSystem.FileExists("C:\img.jpg") Then Print("C:\img.jpg") End If [/code] This is untested but it should work. | |
I am using a DLL file as my license file for a VB.NET project and was wondering if there was a way to make it locked so notepad can't open it and edit the data stored in there. Thanks in advanced! | |
Re: [code] PictureBox1.Load(Application.StartupPath + "\image.jpg") [/code] | |
Hello Members of DaniWeb, I have run into an issue and need help solving it. I know how to go about adding items to My.Settings and I have already created the Specialized String Collection to My.Settings called List but I am having some trouble getting the items and the subitems … | |
Re: Well, the way I have learned to code is freelancing and research. I have yet to pick up a book yet I am very proficient in Visual Basic and C Sharp. Learning a computer language is really, in my opinion, a matter of repetition, learning the syntax, and research. If … | |
Re: Well, if you knew the original file size of the executable, you could write some code that tells you if the file is corrupt or not if the executable's file size doesn't match the file size specified in your coding. Or you can view this post and try to find … | |
Re: You will need to change the Get Payment button's Enabled property to False and then add the following line of code to the submitButton: [code] Private Sub submitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submitButton.Click If hoursTextBox.Text <> String.Empty Then recordsListBox.Items.Add(hoursTextBox.Text) hoursTextBox.Clear() End If 'Enables the Button getPayment.Enabled … | |
Re: 1.)Create a New Project 2.) Add the Following Code to the Form1_Load Event 3.) View My Answer ;) [code] Dim a As String a = "I have learned the value of patience" Dim b As String b = "I have learned the value of hard work and not giving up … | |
Re: Add the following code to your button and see if it works: [code] Dim Result As DialogResult Result = MessageBox.Show("**** I'M WASTED", "**** I'M WASTED", MessageBoxButtons.YesNo, MessageBoxIcon.Information) If Result = System.Windows.Forms.DialogResult.Yes Then Me.Hide() Form2.Show() ElseIf Result = System.Windows.Forms.DialogResult.No Then 'Your Code Here End If [/code] ![]() | |
Re: This should work. I have tried this before and worked fine for adding subitems to my columns. You may need to declare the Item you would like to add the subitem to but other than that it should work. [code] ListView1.Items.SubItems.Add("String") [/code] | |
Re: You can use an Open File Dialog to select the file you want to copy and then on the Dialog Result you can add the following code: [code] FileCopy('File to Copy, 'Where You Want it To Copy To) [/code] | |
So, I am running into an issue. I am wanting to display the contents of the open CMD window in my Rich Text Box. Any help? Thanks. | |
Re: If you are trying to read it from a database, I am sure it would be similar to reading the serial. If you are having them sign in on Form1 and you want it to be displayed on Form2, you could do something simple like this by adding it on … | |
Re: To create simple shortcut keys, import a Timer and set it to enabled. Then enter this code above your class: [code] <System.Runtime.InteropServices.DllImport("user32.dll")> _ Private Shared Function GetAsyncKeyState(ByVal vkey As System.Windows.Forms.Keys) As Short 'Nothing End Function [/code] Then add this code on the Timer_Tick event: [code] Dim key As Boolean key … ![]() | |
Re: Yes you can. If you are wanting the hyperlink to open a browser and go to the URL specified use the following code: [code] Process.Start("http://www.google.com/") [/code] And if you are wanting to start a text file located on your client or in your debug folder you can use this code: … ![]() | |
Before I get started with this question I would like to point out that this is a small app I am creating to not only learn more C++ coding but also to choose who drives the fifth day in my carpool group for college. I am creating an application in … | |
Re: Well, I do not know of a specific code but I do have some tips for you to help the overall functionality of your application. Most of which are listed [URL="http://www.codeproject.com/KB/vb/Speed_up__Web_application.aspx"]here[/URL] so check this out and I hope this helps! -Chris | |
Re: Well you could start Internet Explorer in hidden mode like this: [code] Dim p As New ProcessStartInfo("iexplore.exe") p.WindowStyle = ProcessWindowStyle.Hidden Process.Start(p) [/code] *You Can Also Start It As Minimized, Maximized, or Normal by Replacing Hidden* In reference to the screenshot, you could invoke the Print Screen button to take a … | |
Re: I have never done this before but I have done some research for you to try and help out as much as I can. Here is a link I found and I hope it can be found useful in your application. [url]http://hashvb.earlsoft.co.uk/Streaming_HTML_content_into_a_webbrowser_control_from_VB[/url] | |
Re: Just Google search How To Create a Countdown Timer in VB and How To Refresh The Timer Control in VB and I am sure you will find what you will need. | |
Re: Are you talking about choosing where the form loads from? If so, you can do this by clicking on the form and choosing the location via the Properties Menu. Just scroll down until you see the option StartPosition and then Choose Manual. Then add the following code to the Form1_Load … | |
Re: You can try to look at this thread to help you out: [url]http://www.xtremevbtalk.com/showthread.php?t=139718[/url] | |
Re: [URL="http://forum.codecall.net/classes-code-snippets/19256-countdown-timer-class-visual-basic-net.html"]This[/URL] may help you. | |
Re: When the alarm is triggered, add this code (put the sound with the .exe): [code] My.Computer.Audio.Play(Application.StartupPath + "\NAME.wav", AudioPlayMode.Background) [/code] | |
Re: Wow, that seems very difficult for a class at school. I will try to see what I can do but I can't promise anything. Maybe you could see how to access the Boot Menu in VB and maybe you can select the partition from there. | |
Re: What path are you trying to get? The application's startup path? | |
Re: Yes, I agree with the user above. I do not think anyone is going to help you out just because you want to create a malicious application to "punk" your friends or create a simple virus that has the potential to mess up a computer. | |
Re: If you are trying to save the navigated URL of the webbrowser before switching tabs, you could try something like this: Add this on the TabControl1_Selected Event [code] Private Sub TabControl1_Selected(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TabControlEventArgs) Handles TabControl1.Selected If TabControl1.SelectedTab.Text = "TabPage2" Then txtURL.Text = WebBrowser1.Url.ToString End If … | |
So I am creating an application that allows users to send basic keystrokes to end certain processes. But I am running into some issues. I know the code I have will work the problem is I do not know where to put the following code to execute the commands: [code] … | |
Re: If you are going to have a universal log in username and password, you can use the following code: [code] If txtUsername.Text = "Your Username" & txtPass.Text = "Your Pass" Then Me.Hide() MainForm.Show() [/code] If you are checking usernames and passwords from a SQL Database or using there log in … | |
Re: Why don't you just make it where if you click a button, it will show Panel2 and hide all the other panels? Like so: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Panel2.Show() If Panel2.Visible = True Then Panel1.Visible = False Panel3.Visible = False End … | |
Re: What exactly are you trying to use this for? If I understand what you are trying to do, I may be able to help you if I know what you are trying to accomplish. | |
Re: Couldn't you just use the following code to do what you need to do? I added this on Button_Click assuming you are hiding the Panel using Panel1.Visible = False: [code] Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Panel1.Visible = False If Panel1.Visible … | |
Re: Sadly, no. I have tried EVERYTHING I can think of when trying to create transparent splash screens and nothing has worked. | |
Re: Where are you getting the error at. If we know where your error is then we can better answer your question. EDIT: Try this website. It is very informative about how to do this: [url]http://www.codeproject.com/KB/cpp/Datagrid_ColumnStyles.aspx[/url] |
The End.