107 Posted Topics

Member Avatar for VB 2012

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 = …

Member Avatar for NetJunkie
0
170
Member Avatar for jtodd

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!

Member Avatar for NetJunkie
0
112
Member Avatar for jgat2011

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!

Member Avatar for NetJunkie
0
99
Member Avatar for WASDted
Member Avatar for juniorsilver

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 …

Member Avatar for juniorsilver
0
207
Member Avatar for Srcee

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 …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for aadi_capri

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.

Member Avatar for NetJunkie
0
165
Member Avatar for The Mind

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 …

Member Avatar for Ketsuekiame
0
118
Member Avatar for casey_sunako

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.

Member Avatar for Teme64
0
508
Member Avatar for Info_stealth13

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; …

Member Avatar for frogboy77
0
136
Member Avatar for Zssffssz

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

Member Avatar for NetJunkie
0
182
Member Avatar for adem87

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

Member Avatar for NetJunkie
0
136
Member Avatar for bhagawatshinde

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.

Member Avatar for NetJunkie
0
70
Member Avatar for agent154

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 …

Member Avatar for NetJunkie
0
158
Member Avatar for aldeene

[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.

Member Avatar for aldeene
0
10K
Member Avatar for NetJunkie

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!

Member Avatar for adam_k
0
423
Member Avatar for IT_Student_604
Member Avatar for NetJunkie

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 …

Member Avatar for NetJunkie
0
843
Member Avatar for webxpert

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 …

Member Avatar for OblibSystems
0
247
Member Avatar for kylelendo

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 …

Member Avatar for Reverend Jim
0
140
Member Avatar for lbgladson

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 …

Member Avatar for NetJunkie
0
119
Member Avatar for mrnutty

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 …

Member Avatar for chiiqui
0
449
Member Avatar for jefroxnergal

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]

Member Avatar for Unhnd_Exception
0
364
Member Avatar for TIP.Synergy

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]

Member Avatar for NetJunkie
0
197
Member Avatar for Oneryavuz

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]

Member Avatar for NetJunkie
0
241
Member Avatar for NetJunkie

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.

Member Avatar for Teme64
0
542
Member Avatar for Lipe Shtogu

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 …

Member Avatar for Lipe Shtogu
0
139
Member Avatar for rossi_4656

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 …

Member Avatar for Unhnd_Exception
0
3K
Member Avatar for shivya jain

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: …

Member Avatar for Unhnd_Exception
0
280
Member Avatar for NetJunkie

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 …

Member Avatar for mrnutty
0
200
Member Avatar for bluejacketpin

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

Member Avatar for Reverend Jim
0
96
Member Avatar for garrettb

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 …

Member Avatar for garrettb
0
121
Member Avatar for OblibSystems

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]

Member Avatar for OblibSystems
0
600
Member Avatar for coolsasuke

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.

Member Avatar for codeorder
0
258
Member Avatar for xxxferraxxx

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 …

Member Avatar for xxxferraxxx
0
435
Member Avatar for Oneryavuz

You can try to look at this thread to help you out: [url]http://www.xtremevbtalk.com/showthread.php?t=139718[/url]

Member Avatar for Oneryavuz
0
192
Member Avatar for PurpleHeaven

[URL="http://forum.codecall.net/classes-code-snippets/19256-countdown-timer-class-visual-basic-net.html"]This[/URL] may help you.

Member Avatar for shivya jain
0
1K
Member Avatar for Vaikkundhnaair

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]

Member Avatar for NetJunkie
0
66
Member Avatar for reiddwyer

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.

Member Avatar for NetJunkie
0
104
Member Avatar for rosstafarian
Member Avatar for coolsasuke

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.

Member Avatar for lolafuertes
0
227
Member Avatar for Trle94
Member Avatar for thing2

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 …

Member Avatar for NetJunkie
0
700
Member Avatar for NetJunkie

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] …

Member Avatar for codeorder
0
189
Member Avatar for Vaikkundhnaair

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 …

Member Avatar for codeorder
0
841
Member Avatar for mikejs

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 …

Member Avatar for codeorder
0
148
Member Avatar for lion8420

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.

Member Avatar for lion8420
0
121
Member Avatar for mikejs

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 …

Member Avatar for mikejs
0
356
Member Avatar for dlwhdrlf

Sadly, no. I have tried EVERYTHING I can think of when trying to create transparent splash screens and nothing has worked.

Member Avatar for adam_k
0
127
Member Avatar for coroll

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]

Member Avatar for codes4f0x0d
0
2K

The End.