Trying to do More with my App

I'm working on an App that I previously gotten help on. I want to be able to do more with it, and I need some guidance on how to proceed. Right now my app display's data based on a select query to a mysql database, to 3 different list boxes. What I would
like to do, is be able to click on the display data, and pull all requested information off of it. 
Here is the code in its current form
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using MySql.Data;
using MySql.Data.MySqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Net.NetworkInformation;
using System.Threading;
namespace DES_READ
    public partial class Form1 : Form
        public Form1()
            InitializeComponent();
        private void button1_Click(object sender, EventArgs e)
            String str = @"server=192.168.13.90;uid=DES_READONLY;pwd=4Fae7SByqNk5n8Ha;database=DES;";
            MySqlConnection conn = null;
            MySqlDataReader reader = null;
            string site = textBox1.Text;
            try
                conn = new MySqlConnection(str);
                conn.Open();
                String cmdText = "SELECT O.Office_Name,O.Site,O.Office_Number,W.Site_Number,W.Lan_Router_IP,W.Public_IP_Address,W.Router_Type FROM DES.Offices as O Inner join  DES.WAN as W on O.Site = W.Site_Number
Where O.Office_Abbreviation = '" + site + "'";
                MySqlCommand cmd = new MySqlCommand(cmdText, conn);
                reader = cmd.ExecuteReader();
                if (reader.HasRows)
                    while (reader.Read())
                        string oname = reader["Office_Name"].ToString();
                        string lan = reader["Lan_Router_IP"].ToString();
                        string wan = reader["Public_IP_Address"].ToString();
                        string onum = reader["Office_Number"].ToString();
                        string snum = reader["Site_Number"].ToString();
                        string router = reader["Router_Type"].ToString();
                        listBox1.Items.Add(oname + "/" + onum + "/" + snum + "/" + router);
                        listBox2.Items.Add(snum + "/" + lan);
                        listBox3.Items.Add(snum + "/" + wan);
            catch (MySqlException err)
                MessageBox.Show("Error: " + err.ToString());
            finally
                if (reader != null)
                    reader.Close();
                if (conn != null)
                    conn.Close();
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        private void Form1_Load(object sender, EventArgs e)
       // private void button2_Click(object sender, EventArgs e)
          //  for (int i = 0; i <4; ++i)
               // using (Ping p = new Ping())
                   // listBox4.Items.Add(p.Send("Lan_Router_IP").RoundtripTime.ToString() + "ms\n");
Any suggestions?

If you mean that by selecting Listbox item you want to get its value:
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
string curItem = listBox1.SelectedItem.ToString();
Fouad Roumieh

Similar Messages

  • I am trying to download words with friends app and it says it is no longer available from itunes.  I had already downloaded it and did a update in my I phone 4 and it is still not letting me download it?

    I am trying to download words with friends and itunes is saying it is no longer available for purchase.  What is going on??I

    First you need to research all the problems people are having with the higher OSX versions, & make sure you have a bootable clone of what you have just in case.
    then you must get 10.6 if they still have it, install it & update to 10.6.8 so you have the App Store to buy & download the huge 10.8 Installer.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It's been pulled from the online store & Apple Stores, so you have to call Apple to buy it, last I heard.
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57

  • Some apps stay open when trying to close more than one app at a time in ios 7

    I tried closing down 2 or 3 app at a time in IOS7 and there's always one or two that stay open. The icon at the bottom is still there but I've already swiped it up to close it. When I go out of the closing function and come back I see that they are still open and I need to close them again. I tried this on many ipads, iPhones and ipod touch and they all act the same way.
    Chris

    I guess you didn't know, but yes you can close more than one app at a time. You can close up to 3 apps at a time in the new IOS7 on the iPhone. Try opening at least 3 apps and then double click the main button to see what apps are opened. Then swipe to the left to see the three of them on your screen. Your not gonna see the ones on the side entirely but you can still put all three fingers on them, then simply swipe them up and it closes them up.
    The thing is, when you have let say 10 apps open, and you start using this trick, some of them will stay open meaning you swiped them up to close them down but the bottom icon stays there. When you come back to your main IOS desktop and then go back to close the programs that you have opened, you can see that those apps are still opened. There is only like 2 or three out of all the 10 you had opened that stayed open, but none the less it's a bug in the system I presume.
    You also asked about the icon at the bottom. When you are seeing what apps are opened, there is always a small icon at the bottom and on top you have a representation of what you were working on, and that is the part you swipe up. But often time the bottom icon will stay opened after swiping 2 or 3 of the apps to close them.

  • I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?

    I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?
    jacknil

    I found an answer to this on another page (I was having the same problem) This worked for me:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    more here: https://discussions.apple.com/thread/5596831

  • Problem trying to update to iPhone OS 3.1.3 and issues with paid apps

    Hi,
    I bought my iPhone 3GS when my old dumbphone died and have thouroughly enjoyed the experience. I've been having a couple of minor issues which I've been wondering about of late:
    1) I know the 3.1.3 update came out some time ago, but I sync my iPhone and it won't ever update. I tried to manually do it (i.e. pressing the button that says "Check for update" in iTunes->iPhone but it just says "3.1.2 is current". At first I thought it was something to do with the apps because around the time the update came out an error message appeared when I synced that said something about the apps not being able to be installed. I was perplexed because my iPhone had all its apps working, so I thought maybe that's why it won't update and clicked on "More Information". I followed the instructions to save all the apps in my computer, then deauthorize and reauthorize my computer and sync my iPhone. This solved the error message issue, but it still won't update. So, is it something with where I live (Puerto Rico)? I want the update, but I just can't get it.
    2) Whenever I try to buy an app whether it's thru the app store on the iPhone or on iTunes, I can't because apparently it won't let me use my debit card. It's a Visa debit card and I have used it for all my internet purchases over the last year and it's always worked. I contacted a support person at Apple but all they could tell me was that the bank was for some reason not allowing them to access the funds, and that I should just buy a gift card and use that. Anybody else have this kind of problem?
    Thanks!

    Well? Does anyone know what I can do to upgrade to 3.1.3???

  • I give up: Trying to change to app with In App Purchase

    This should be such a simple process and procedure.
    I have an app priced at .99 in iTunes.
    I have been trying to change it to a free download, first 7 pages of app free preview, with an In App Purchase of .99 to view the rest of the app.
    Have followed all these instructions to the letter:
    http://www.adobe.com/devnet/digitalpublishingsuite/articles/free-article-preview.html
    iTunes rejects the IAP because they don't see the IAP after the 7th page.
    I have the first 7 pages of the app set as Free in the folio producer and the rest are marked as Protected. I update the folio with the status Public and Free.
    I assume the problem is that I have the app priced at .99 still in iTunes, but if I change it to free while waiting for Apple's approval it generates hundreds of downloads a day and I end up having to purchase another folio bundle. Not exactly ideal.
    I have gone through weeks of this with iTunes/Apple trying to get the IAP approved. It should be such a simple process/procedure but at this point I'm ready to give up and let my folio count run out and my Professional subscription expire.
    Unless anyone has experience with this problem and can offer some specific advice/solutions?
    Thanks!

    Thanks Bob
    Apologies for the confusion on terminology.
    The app is currently priced at .99
    Problem is, if I set it to free while I wait for Apple to approve the IAP, which has taken a minimum of 7 days the last three go arounds, so many folios are downloaded that I have to purchase another bundle. Which on the one hand is great that so many users want to use my app, but then again, it isn't exactly in my budget to be purchasing extra bundles of folios.
    But apparently that is the cost of doing business, I guess.
    I did have the app published as Public and Retail. The first 7 articles were set as Free, the rest of the articles set as Protected. I have selected the "Enable Article Preview" also.
    This resulted in the bug error message from Apple, which basically says there was no content available to download. This is the same folio that has been working fine, I just changed the settings to Pubic & Retail, etc. so can't imagine it is a real "bug" so to speak? Here's the message (the screen shot they attached was basically a blank screen):
    We found that your app exhibited one or more bugs, when reviewed on iPad running iOS 7.0.2, on both Wi-Fi and cellular networks, which is not in compliance with the App Store Review Guidelines.
    Specifically, your app launched to the attached screen. Not content was available.
    For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to:
    - include the complete details of your rejection issues
    - prepare any symbolicated crash logs, screenshots, and steps to reproduce the issues for when the DTS engineer follows up.
    For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.
    If you have difficulty reproducing this issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.
    Thanks for the feedback, much appreciated. Starting over yet again...

  • Trying to download the new Black Ops app and when downloading it says I don't have enough storage space. I made sure I had 1.31 GB of space(like it requires)but it still says I don't have enough space. I even tried to delete more 2.5 GB (I have iPhone 4S)

    I was trying to download the new Black Ops (Strike Team) app and when I try to download it, it says I don't have enough storage space. I made sure I had 1.31 GB of space (like it requires) but it still says I don't have enough space. I even tried to delete more 2.5 GB (I have the iPhone 4S) and the app specifically says that is is compatable with iPhone 4S. I even tried rebooting the phone a couple times before downloading, but it still says the same thing.

    The app you are trying to download my be a zipped file and more space than 1.3GB.  go to settings/general/usage and delete what you no longer want to make more space

  • I have a new MacBook Air.  When I first got it, I migrated some of my files from my PC to the MacBook Air with no issues.  Now, I',m trying to migrate more documents, music, etc. and migration assistant won't get past "Looking for Other Computers."  Why?

    I have new MacBook Air. When I first got it, I migrated some of my files from my PC to the MacBook Air without any problems.  Now I'm trying to migrate more files, music, etc. and I keep getting the continuous spining circle with "Looking for Other Computers."  I've tried everything and for some reason it is not finding my PC. What am I doing wrong?

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • HT201210 my phone won't turn on after trying to restore it with iTunes what do i do??!! also it just has the blue music app with an arrow and power cord on it. HELP!

    My phone will NOT turn back on after trying to restore it with itunes. It just has the blue music app with an arrow & the usb side of the power cord on it.
    Help me please!!

    Hello Sean,
    It sounds like you are constantly needing to restore your phone because it keeps going into recovery mode. Usually putting a device into recovery mode and restoring it can help isolate an issue to your iPhone hardware if an issue persists afterwards. I would try manually putting it into recovery mode and restoring it 1 more time:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    If that does not resolve it the symptoms indicate to me that it is a hardware issue causing this to happen and would seek service for it:
    iPhone Repair - Other Repairs
    https://www.apple.com/support/iphone/repair/other/
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • When trying to update or add new apps to our daughters iTouch she gets and error saying "cannot connnect to iTunes stores."  What to do?  We have reset the password, gone into the apple store and so much more.

    We are trying to update and add new apps to an iTouch and we get an error saying "cannot connect with iTunes store." We have already reset our password.

    Hello jaybearden,
    Thanks for the question. After reviewing your post, it sounds like you are not able to restore the iOS device since you get an error 9. I would recommend that you read this article, it may be able to help the issue.
    Resolve iOS update and restore errors - Apple Support
    Check your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006. Sometimes security software can prevent your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't preventing a connection to the Apple servers.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I have a Apple ID, however when i am trying to login to App Store, i am getting a message "This Apple ID has not yet been used with the App Store"?

    Hello,
    I have a Apple ID, however when i am trying to login to App Store or iTunes, i am getting a message "This Apple ID has not yet been used with the App Store"?
    I am able to login to iCloud with my Apple ID
    Kindly Assist
    Regards
    Shuja

    If you have never used the Apple ID to make purchases from iTunes or the Mac App Store you need to follow the steps to create an account with that Apple ID.

  • I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    Its possible the App is not available in the Canadian store if the link doesn't work for you.
    https://itunes.apple.com/us/app/xfinity-connect/id320788270?mt=8

  • My Safari will not allow me to open my Google calendar with Google Apps. I have to open my email with the older version of Google Apps. This happened after I installed 5.1.4. I tried to use the fix of changing to 64 bit by unchecking the 32 bit box no go

    My Safari will not allow me to open my Google calendar with Google Apps. I have to open my email with the older version of Google Apps. This happened after I installed 5.1.4. I tried to use the fix of changing to 64 bit by unchecking the 32 bit box but that didnt help.

    I assume that there are legal restrictions on the way in which iTunes can get artwork automatically from any source apart from the iTunes Store (which is what the right-click > Get Album Artwork function uses).  For example, even though the Gracenote service that iTunes uses to match CDs and retrieve metadata (artist, album, track titles, etc.) also has artwork functions, iTunes does not make use of these.
    For manual addition of artwork, there are three cases where the image you select may not be correctly embedded in your media files:
    your media are in a format that doesn't accommodate embedded artwork - typically WAV files.  To embed artwork you'll need to convert to another format - Apple Lossless or AIFF if you want to preserve lossless quality, AAC or MP3 otherwise.
    your media files are read only - to fix this, use Windows Explorer to find the folder that contains your files, right-click and select Properties.  On the General tab there's a check box labeled "Read-only" - if this is checked, or is grey (sometimes blue), click the box so that the flag is unchecked and the box is white.  Click OK, and then OK again when the "Apply changes to this folder, subfolders and files" option selected.  Now try adding the artwork again.
    Windows permissions issues are preventing iTunes from updating your media files (there's some anecdotal evidence of a change in this behavior in iTunes 12).  See turingtest2's notes on Repair security permissions for iTunes for Windows for advice on fixing this, then try adding the artwork again.

  • Ipad, filing, folders, opening a document with more than one app...

    Hi
    I am wondering about iPad filing, documents and the future that iOS 5 and iCloud hold.
    Am I right in thinking that there will still be no file/folder structure and that documents will be held individually by apps?
    This creates two problems for me:
    1)  I need to access the same document (e.g. a pdf file) from more than one app. For example, say I need to use iAnnotate to mark it up and Sente to file it. However each app keeps their own copy of the document, so the annotated copy from iAnnotate is not the same copy as the one filed correctly in the Sente database.
    2) How do I keep the files for a specific project together? Say I have source documents, word-processing documents, presentations, images etc all related to one project: how do I keep them all together? If we had tagging  (as in openmeta or similar) I could tag them - works beautifully on the desktop but not available on the iPad. If we had folders I could at least group them in folders... What is is the iPad solution?
    M

    Here's how I address # 1:
    I use DropBox as my central hub to keep documents accessible and synced between my iPad and my laptop. That means that I export, share, copy or print the document, with my changes, to DropBox from whatever application I'm using. For example, if I open a PDF in PDF Expert (the app I use for reading and annotating) I can "open" a copy in DropBox with my annotations. For Pages and other iWork files I use DropDAV which enables me to save to DropBox via WebDAV. For other apps like Safari that don't have DropBox integration, I use Save2PDF to "print" a PDF to the appropriate DropBox folder.
    As to #2, two things come to mind. The first is that you can use the search function to find related files if you put your tag in the title or somewhere else searchable. The second is that I set up a file structure in DropBox on my laptop that meets my needs (and is also one way to begin to emulate a file structure on the iPad). For example, i keep my current course files, with their presentations, documents, and spreadsheets, in DropBox. But many of my projects have so many components and so many images, etc, I've become used to having components in different applications (Aperture, iTunes, etc) and I do rely on my laptop (and its external drives) for my central and final project management. For things in process, though, the iPad works very well.
    ICloud may change all this. :-)

  • Can't sign in using any 3rd party email client with my iCloud account on any Mac. Tried every settings, My iCloud only works with Mail.app

    Can't sign in using any 3rd party email client with my iCloud account on any Mac or any other Mac. My iCloud will only work with Mail.app. All the clients I tried work perfectly well as long as I sign in with somebody else's iCloud account. But mine won't work no matter the client (Postbox, Unibox, Airmail...) and no matter the computer.
    I can access my account on iCloud.com, but I can't use email clients without getting error messages prompting me to check my password or login.
    I was able to use those clients in the past but a couple of months ago I got logged out of Airmail and the issue started just like that!
    I tried every possible mail server settings including the following:
    IMAP information for the incoming mail server
    Server name: imap.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS instead.
    Port: 993
    Username: The name part of your iCloud email address (for example, emilyparker, not [email protected])
    Password: Your iCloud password
    SMTP information for the outgoing mail server
    Server name: smtp.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS instead.
    Port: 587
    SMTP Authentication Required: Yes
    Username: Your full iCloud email address (for example, [email protected], not emilyparker)
    Password: Your iCloud password

    Those are the correct settings, and they work with any email client that supports Imap.
    Try again.

Maybe you are looking for