- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 12
- Posts with Upvotes
- 10
- Upvoting Members
- 12
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I am a network engineer that loves to code. I started on the Aquarius systems, and used just about every system until the home brew revolution started. Since then I have been an IT technician that loves to code and fix things that most people can't.…
- Interests
- Coding, IT, Linux, being a Geek :)
- PC Specs
- AMD 64 X2, ASROCK MB, 4GB ram, 1TB HD, ATI 9600 Ubuntu, windows 7 (virtual box in ubuntu)
46 Posted Topics
Using the Load and Unload events of the Forms add these subs to handle a simple fade in and out effect. This is not limited to just one form. The subroutine definition can be added to any global class allowing the use on any form or sub-form. | |
Re: This is not tested and may need debugging but: Here is an example that creates settings then handles them, adjust the code to work for your program and/or handle the dates like [CODE]# Public Function DateGood(NumDays As Integer) As Boolean 'The purpose of this module is to allow you to … | |
Re: [QUOTE=ninjatalon;1479320]After closing the forms you will lose all data because all that data was just saved in memory therefore its only temporary. What you want to do is save that data into a database[/QUOTE] The other option is to save the information to a CSV file or XML file as … | |
Using the Load and Unload events of the Forms add these subs to handle a simple fade in and out effect. This is not limited to just one form. The subroutine definition can be added to any global class allowing the use on any form or sub-form. This is the … | |
Re: In the Build part of the project properties you can tell the system to reference your dlls, whether to include or exclude during build, where to place them after build, and make a installer that places them there. look up the exact directions in the studio help file, or on … | |
Re: This can be done with your database. Since you can have a "control id" autonumbered into the database, all you need to do is tell the program that you need a new record and pull the newest number from the database as the record is created. This is already implemented … | |
Re: 1) Eric Raymond, compiler of The New Hacker's Dictionary, defines a hacker as a clever programmer. A "good hack" is a clever solution to a programming problem and "hacking" is the act of doing it. Raymond lists five possible characteristics that qualify one as a hacker, which we paraphrase here: … | |
Re: just adjust the your text inputs to look like this: [CODE] Select Case line(0).Trim Case "apples" apples.Text = line(1) apples2.text = line(0) Case "bananas" bananas.Text = line(1) bananas2.Text = line(0) Case Else 'Bad Fruit End Select [/CODE] feed the textbox like so [CODE] AppleTextBox.Text = apples2.Text & " " & … | |
Re: Reload the 1.1 .net or just upgrage to a newer one that contains the same information under systems.web.ui | |
Re: Do you want to pass the data from form to form? Or would you rather "INSERT" the data then pull the new data from the SQL database? This is a consideration that needs to be used in the planning of your program. One way means you declare a global var … | |
![]() | Re: Here is a sample that I generated that works well for view switching using a combobox an loads with the form. All works well without issues, and it works with directory files. It switches the look upon change of the combobox. inside the combobox is items Details, List in that … ![]() |
Re: calling the Run command in windows is not really on option in vb.net how ever you can call any exe via System.Diagnostics.Process() [CODE] dim proc as new system.diagnostic.process() dim x as integer 'assign a button so that you can click and a inputbox will prompt and you can try to … | |
Re: [CODE] using System.Media; SoundPlayer m_MySound = new SoundPlayer(Properties.Resources.YourSoundFile); //invoke as this m_MySound.Play(); [/CODE] as far as the swf control use the same method Properties.Resources.whatever | |
Re: see this [URL="http://www.programmersheaven.com/mb/TheOne/281992/281992/resizing-a-form-at-runtime-based-on-screen-resolution/"]http://www.programmersheaven.com/mb/TheOne/281992/281992/resizing-a-form-at-runtime-based-on-screen-resolution/[/URL] | |
![]() | |
Re: add this to the very top of your project [CODE]Imports Excel = Microsoft.Office.Interop.Excel[/CODE] make sure Microsoft Excel 12.0 Library Object is referenced in your project under Project -> add reference | |
Re: [CODE] ds.Tables(0).Rows(0).Item("LVLStat") = Me.txtUpdate.Text [/CODE] is the problem, you told it to update only this record. What you need to use is this to update your selected record [CODE] ds.SelectedRows.Item(0) = Me.txtUpdate.Text [/CODE] | |
Re: Before you can use a datatable you need a dataset. A data set is used to define the data table. The Idea is to do something like this first [CODE]' SQL Command object initialized Dim cmd As New SqlCommand("select productname,unitprice,categoryid from products order by productname; select categoryid from categories order … | |
Re: What are you trying to do with this code, completely load a file into sql? | |
Re: How do the programs interface to "parse" this string? Your problem lies with in the issue of containing that first. Then you should handle the input as it parsed via a split command to associate the parts that are scripts and the others that are not. For us to understand … | |
Re: Why not create a radio/checkbox field with a event handler to change your math to reflect your change in measurement. The screen stays the same but the unit will not. | |
Re: The number is a process ID of the still running command, what i am going to give you is untested, but the idea is there. try something like this [CODE] Dim process As New Process() Dim FileName As String = "netstat" Dim Arguments As String = "-aon" process.StartInfo.UseShellExecute = False … | |
Re: Don't use the in clause. Use SELECT * FROM tbl WHERE (tbl.strval='2') You can later alter this to pass a variable where the 2 is to qiery dynamically | |
Re: There is really not that I can see, the longer way to do this is to use existing windows APIs. That is something like this: [CODE] Public Sub Open(ByVal portname As String, _ ByVal Spd As Integer, ByVal Pty As enumParity, _ ByVal Dtb As Integer, ByVal Stp As enumStopBits) … | |
Re: The New Hacker's Dictionary by Eric Raymond | |
Re: What do you want these kind of events for? Instead, you can write codes right after an item added or removed. e.g. [CODE] listView1.Items.Add("aa") 'write code which you want to put in the "items.add" event here.[/CODE] | |
Re: 1.VB.NET Math.PI will only return 17 digits of pi beyond the '3.' marker. 2. Use established formulas to return a float number that is closer to the amount of maximum digits of pi that you need. From there Truncate the number to x digits after the decimal. 3. store the … | |
Re: A easier way is this, contencate the statement with the information in it [CODE] my_cmd.CommandText = "Insert into TableName _ (route1,route2,route3,route4,route5,route6,route7,route8,route9,route10,route11,route12) Values " _ & ListBox1.Items.Item(0) _ & "," _ & ListBox1.Items.Item(1) _ ... & ListBox1.Items.Item(11) & ") " [/CODE] then call the command. Less confusion and it will fill … | |
Re: Yes, its too complicated for the idea that you want. You cant treat the xml data like any other data that is used in c#. try something like this [CODE] DataSet dsSet = new DataSet(); dsSet.ReadXml(Application.StartupPath + "\\agriculture.xml"); comboBox1.DataSource = dsSet.Tables["agriculture"]; comboBox1.DisplayMember = "Category"; [/CODE] Simple and quick to load. | |
Re: There is a simple solution to this all together. Add a timer into the workbook that auto-closes the workbook after x time of inactivity. here is the code to add to the VBA side of the workbook to fix the issue [CODE] 'Set Timer Private Sub Workbook_Open() EndTime = Now … | |
Re: First Change the counterl to an integer type, second remove line 62. This will allow the counter to increment correctly. The Byte type cannot be treated as a integer while in a Select Case, as the values are reference differently. For a better understanding look [URL="http://msdn.microsoft.com/en-us/library/cy37t14y%28v=vs.80%29.aspx"]Here[/URL] as this gives a … | |
This is a great example for a thread stop. Simple debugging trick for any looped process that needs the "e-brake" applied while making sure that the thread is working correctly. The idea is that you can manually stop a thread, to prevent that hanging sensation during any process. This works … | |
Re: My first question for you is why not use a SQL statement to select all data from both tables then JOIN the selected information into another table (temp or not). With single statement you can manipulate one table to the datagrid without handling three or more to do the same... … | |
Re: The other part that can be done is that the use of a ISA Firewall service to redirect to a specific server is also a good idea. Meaning the use of a domain name I.E. [url]http://yourdomain.com[/url], then use the ISA firewall program on one server to redirect the path I.E. … | |
Re: Use google to find a example of VB and mysql. there are plenty of examples on the web that will get you what you need. Like [URL="http://mikehillyer.com/articles/the-vb-net-mysql-tutorial-part-1/"]http://mikehillyer.com/articles/the-vb-net-mysql-tutorial-part-1/[/URL] | |
Re: Here is a example [CODE]Public Class KeyCombos ''' <summary> ''' Stores the currently pressed keys. ''' </summary> Protected mKeys As New HashSet(Of Keys) ''' <summary> ''' Stores the KeyCombos along with an action to do when pressed. ''' </summary> ''' <remarks></remarks> Protected mKeyCombo As New Dictionary(Of Keys(), Action) Protected mCheckCombos … | |
I have created a encryptor/decryptor that allows you to encrypt/decrypt text in a textbox, or a file. The basis of the system is to allow a user to thoroughly protect data within their system. Is there anyone that would be willing to test the program? | |
Re: try using [CODE]ob_start(); // start buffer include ("file-to-include.php"); $content = ob_get_contents(); // assign buffer contents to variable ob_end_clean(); // end buffer and remove buffer contents echo $content; [/CODE] or [CODE] <?php $handle = @fopen('yourfile...', "r"); if ($handle) { while (!feof($handle)) { $lines[] = fgets($handle, 4096); } fclose($handle); } ?> [/CODE] … | |
Re: Read my thread here, i cover everything on this uploading and retreaving. I had the same issue. [url]http://www.daniweb.com/forums/thread246879.html[/url] I found that the code can be maniplutated enought to call a picture in all proogramming languages. | |
Re: Thats great. I think that there should be more developers out there. Increase the knowledge, and understanding in which the internet was borne. | |
Re: You need to have a PHP addition installed with the apache server. PHP needs to have the interpriter for the PHP. Without it you will get the 403 error. Also apache needs to be configured to see index.php as a valid index file. Go to the PHP home page (php.net) … | |
Re: Here is a more absolute way to print the information [CODE] while ($row = mysql_fetch_array($result)) { echo $row[0].'<br />'; } [/CODE] This will give you the first queried object in the sql query line. if you add more to the sql query, each object queried is counted and place number … | |
Re: What exactly are you trying to do? query a db? or a number of pages like a search spider? | |
Re: This is code for a nav table and banner, with page conext [CODE] <table width="100%" height="300px" border="0"> <tr> <td height="50px" colspan="3"> <p>Header</p> <!-- can also be a banner page via include call --> </td> </tr> <tr> <td width="150px"> <!-- simple nav bar --> <p><a href= "index2.php?action=link&what=main.php">home</a></p> <p><a href= "index2.php?action=link&what=guest/index.php">about us</a></p> … | |
Re: I just got mine to work.. try this [CODE]<?php $host = "localhost"; $user = "user"; $base = "database"; $pass = "PASSWORDDELETED"; $dirself = $_SERVER['PHP_SELF']; $req = @mysql_connect($host, $user, $pass); $cnx = @mysql_select_db($base) or die("you f'ed up!"); $ds = date(dmy); if ($cnx) { echo '<html>'. '<head />'. '<body>'. '<form action="'.$dirself.'" enctype="multipart/form-data" … | |
Re: [QUOTE=liamfriel;1077548]Hello All, I got an email like this: I checked the url and it was indeed our site - I made some changes to our copy and the changes applied to the "hack site". Is it possible he just used Curl to create this clone homepage? What is the most … |
The End.