Help is needed here

Im new to this forum and also has a very very limited knowledge about VB. Any help will do.
Im actually doing an assignment but i got stuck at the part where i have to link a form to another form to create a program where students register through this program and the data will be added into a list box of another form.
Thank you for looking at my question.
Appreciate it.
Gerald.

let's say we have Form1 and Form2, Form2 has ListBox control and on Form1 button click I want to add item to that ListBox:
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Form2.ListBox1.Items.Add("this is data from form 1")
Form2.Show()
End Sub
Or if I want to Bind it to DataTable from Form1
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Form2.ListBox1.DataSource = GetTable()
Form2.ListBox1.ValueMember = "ID"
Form2.ListBox1.DisplayMember = "TITLE"
Form2.Show()
End Sub
Public Shared Function GetTable() As DataTable
' Here we create a DataTable with four columns.
Dim table As New DataTable()
table.Columns.Add("ID", GetType(Double))
table.Columns.Add("Title", GetType(String))
' Here we add five DataRows.
table.Rows.Add(10, "My title 1")
table.Rows.Add(20, "My title 2")
table.Rows.Add(30, "My title 3")
If table.Rows.Count > 0 Then
End If
Return table
End Function
Fouad Roumieh

Similar Messages

  • Hi I need help first time here converting a file

    Hi I need help first time here converting a file

    Thank you for your subscription to our service.  Please see below.
    How to convert your file to PDF file:
    Using Adobe Reader:
    Launch Adobe Reader X or Reader XI
    Select “Tools” and click “Sign In” link to sign in with your Adobe ID and password
    Select “Create PDF” then click “Select File” button
    Click “Convert” after select your file
    Click “Download Converted File” link to download the file to your computer after the process is completed.
    Using Web UI
    Log into https://createpdf.acrobat.com/signin.html with your Adobe ID and password
    Select “Convert to PDF”
    Click “Select Files” button then choose your file Click “Download” button in the progress bar after completion of the process to download the PDF file to your computer.
    Converted PDF files are stored at https://files.acrobat.com and you can log in with your Adobe ID and password.  You can share your files with others or download them to your computer.
    Please let me know if you have further questions.
    Hisami

  • After mavericks updating ,i cant pair my wireless keyboard , plus my mac is logged out for logging in i need my keyboard back any help would be here? Ps: i dont have another keyboard

    After mavericks updating ,i cant pair my wireless keyboard keyboard working but just not pairing  , plus my mac is logged out for logging in to reach the preferences  i need my keyboard back any help would be here? Ps: i dont have another keyboard to connect .

    For the both of you.
    Turn your Mac on, wait until the login screen appears.
    Turn off your keyboard, wait several seconds. Hopefully a "Keyboard turned off" or "Keyboard disconnected" comes up. Then remove the batteries.
    Turn the Mac off then turn it back on.
    When it turns back on, it should say missing keyboard or something of the sort. Put the batteries back into the keyboard and turn it back on. Hopefully it should start talking again.
    It sounds like you two have a Mac that doesn't have a built-in keyboard. So you could easily reset the SMC...
    http://support.apple.com/kb/HT3964?viewlocale=en_US&locale=en_US
    KOT

  • I just got a new iPhone 4S for my mum . I set it up on my iTunes and I install all her numbers in . Then I plug my phone in all my hints to got erased and I ended up getting all her contacts in my phone . Help I need my contacts back

    I just got a new iPhone 4S for my mum . I set it up on my iTunes and I install all her numbers in . Then I plug my phone in all my hints to got erased and I ended up getting all her contacts in my phone . Help I need my contacts back

    Read this link
    HT1495

  • What burns me up about the Pixi (sprint)-If you can, help me out here

    This is a half rant half 'I hope someone can help me out here with something I'm doing wrong' post, because my experience with this phone makes me want to smash it into a developers face. (Try not to take offence, it's just a thought, I am actually physically stuck with this phone)
    Messaging:
    No time stamps for messaging? With my pending civil court case, it'd be nice to have this rudimentary gem that's been on every phone since 1998. But let's be honest...it's just nice to know when what was said. Awesome that I can save every message for 3 months. Blows that I can't figure out when it was sent.
    Missed Calls:
    OK being that I actually like to think of my pixi as a phone first, then a "computer", I'd love to be able to sift through my missed calls on the red missed call alert bar. Since I'm too much of a, "let's get this done now" guy, I hate loading an app to get to my missed calls off of a little button on an already small interface. If I don't want to load the app, I have to click on the missed call alert bar, make my phone dial the number, end the call immediately, and continue untill I go through all of my missed calls (Yea I've done it before, I hate loading apps that bad). How about if you drag down on the missed call alert bar, it pulls the top one off and reveals the PREVIOUS missed call. (Holy ----! Am I a genius, or am I just someone who actually used this phone for more than 3 minutes?) Hopefully I can just sift through my calls on the messed call's red alert ball, but I've tried it every which way and I don't think I can...Help me out here.
    SMS through missed call icon also only works when it wants to (software issue)
    Airplane Mode: I accidentally put my phone into Airplane mode like twice a week. This blocks all calls and you just don't even know it's on until you notice the plane on the screen. Why is it so easy? Does palm not realize the consumer base that this phone makes it to probably uses an airplane once every year? I mean I've never even been on a plane and I got suckered into this thing, yet I feel like I should be able to have enough frequent flier miles to go around the world 6 times accoroding to how much I accidentally turn on Airplane Mode. Wth? Whose idea was that?
    Facebook syncing: Seriously, who in their right mind wants every single one of heir FB friends on their phones? Certainly not me. Sorry I don't need to talk to all 400 people I've added from school. Best part is, once the syncing deed is done, you can't stop it. That's just brilliant. You spend an hour sycing your phone to FB, just to reset your contacts.
    Ringtones: Text messaging ringtones literally plays for about 10 seconds and stop. Who on gods green earth told you that it'd be Ok to play any ringtone for like 10 seconds? Seriously...? PLEASE tell me I can change this. I can't even get through the intro of a song in 10 seconds. That's just great. May I add my ringer just seems to have shut off today. Why and when, I don't know. But my ringer is on, turned up, and I'm just getting text messages and calls as I type this with no sounds. lol Seriously. I'm not even kidding. I don't know how to make the alert sound. That's absurd. lol Like really I'm laughing at how pitiful it is that this is what my phone does so I'll just type another lol to further express how much of a joke this phone is to me. lol
    Contact Reminder: Now I'm not sure what I'm doing. But pretty often, when trying to hurriedly dial a number, I accidentally hit contact reminder, load a new app. Meanwhile I have to get rid of the app and get to my phone. Now here's the kicker...I did it "hurriedly"(yea I make up words when I need to) which means I'm in a rush. Thx for not helping whatever situation I'd be in/have been in, Palm...You're supposed to work with me, not against me. :\
    Calendar: Awesome app. I actually bought this phone for its uses here. But I'm not sure if it's just me, or the phone, but I can't even have this thing remind me to take out the trash every WEDNESDAY. From what I can tell, I can only do reoccuring reminders by date, and not by day. Seriously? If I'm not missing something here and that is the case, you've completely failed your name Palm. Just saying, I mean jeez...
    Youtube: Now really. You almost outdid yourself with the youtube app. You could have made me forget of all of this phones shortcomings had you not just screwed up here too. Now I don't know who you have agreements with, but since I can't actually get the same vids I'd normally get on the computer (for example, music videos) to come up in my search, you've essentially turned youtube, "you"sless. Now that actually takes more effort in screwing up than not. This thing right here just makes me think you're trying to get me mad.
    Small keys:Won't even touch on that subject, I should have noticed from the get go. I knew it, thought I'd get used to it, but no. They are just too small and that's that. Not even blaming palm for this one.
    Palm taught me 2 things with this phone.
    1: Never buy from palm again, we just don't seem to agree on what a phone should do. I had great expectations in the Palm name, only to find out that I'm going to be enraged by the phone daily.
    2olidification in the notion that "if it's too good to be true, it probably is." Because that's exactly what I got out of the experience with this phone.
    So unless someone can set my problems straight, I'm going to be looking foward to my next upgrade like it's the last day of school for a 12 year old. At least life won't continue speeding by as long as I have this thing. I guess that's one bonus. :\
    The worst part is this is all that I can think of sitting here. I can probably edit this throughout any given day to make it into a small book. Which I would try to publish if I'm not flat out wrong about at least half of these "problems". Because if so...this phone should have never hit the market. No offense. Like I said, I actually have to use this phone. Palm just gets more money out of it.
    Thx if you read, and thx if you help me out. I hope someone tells me what I'm doing wrong and makes me look like a complete idiot. This is your chance, defend palm!
    Post relates to: Pixi p120eww (Sprint)

    Hi ChrisBell,
    my Pixi shows me the missed calls in a list of its own? I don't have many, so maybe I'm missing something. But I agree with your half-ranting to some degree. As a long-time Palm-user (my last phone was a Treo 680, terrible form factor, good UI), I am really disappointed with the standard software on this phone. Memos and Tasks, which AFAIK were there and useful even on the first Newton's, have regressed beyond the point of usefulness now (solution: Toodledo and Done!, at least for now).
    But ChrisBell: if you feel up for it, you could start tinkering. Many people love these phones so much they have started developing patches to solve the obvious problems skimmed over by developers. Try looking up "webosquickinstall" and "preware", and you will find over 300 patches and a lot of free software to help you out. I am not a computer wizard myself, but I am not scared of them either, and I have been able to make good use of all these extras made available by the community.
    just a thought, might help you out on a few of your half-rants

  • In the new mail app for OSX v10.7 Lion it seems I can only setup my gmail account as an "imap", when I need to set it up as "pop"... PLZ HELP I NEED MY MAIL TO WORK!!!

    In the new mail app for OSX v10.7 Lion it seems I can only setup my gmail account as an "imap", when I need to set it up as "pop"... PLZ HELP I NEED MY MAIL TO WORK!!!

    Go to System prefs
    Select Mail Contacts and Calendars
    Then select Other
    Then select "Add a Mail Account and click create
    Then go to google for the settings you need:
    First here for the settings online at gmail http://tinyurl.com/du3fu
    Then here for the setting in mail http://tinyurl.com/38fevm8
    These are instructions for Mail 4.0 but all of the necessary settings should be listed.

  • Windows XP Clean Install – What I discovered and the help I need

    Windows XP Clean Install – What I discovered and the help I need
    I previously had a problem with my Laptop dying randomly you can read about it in the thread entitled Computer dies Randomly (Battery also dead) click to view
    Before I realised the solutions, I thought that maybe my Laptop had become infected with a Virus and decided it would be prudent to do a clean install of the Windows XP operating system.
    Everything went perfectly and thought a clean install was a good opportunity to download the “XP Service Pack 3” SP3 and did so, it seemed very quiet though and that’s when I realised I had no sound…
    I downloaded all of the sound drivers I could find on the Lenovo site for 3000 N100 (I knew from previous experience that the “SOUNDMAX” driver is the only one that actually works with this 3000 N100) in order to install this you have to install the Realtek HD audio driver, but in order to install that you have to install some other Driver/Soft that only works with SP1 or SP2 if you try to install it with SP3 it will say that you don’t need the file as your Service pack is newer than the file you want to install, this is understandable as SP3 is not final as of yet (but it’s good to know).
    My next problem was that my extra RAM was not detected, this was fixed by updating the BIOS, after installing all of the System updates, PC Doctor, everything I could find for 3000 N100 I decided to rest, I pushed the Lenovo care button and it did not work, I found a hot key driver and installed it but still the Lenovo care button does not work, previously when I pushed this button it would bring up the Lenovo menu but now it’s just a dead button, Does anyone know how to get this button working again?
    I am pretty sure that everything else is working fine now, just that button not working is very annoying, is there a set routing of installs you must do to get everything working, i.e. bios 1st audio 2nd system update 3rd etc...
    Please help, I hope I have helped you...
    Message Edited by DrunkenNinja on 05-07-2008 03:38 AM
    Message Edited by DrunkenNinja on 05-07-2008 03:38 AM
    Solved!
    Go to Solution.

    Ok first everything works now... except the Lenovo Care button, I just posted the other stuff cause it might help other members,  I have searched the forum for an anwser to this problem but there was only one anwser (suggesting to uninstall the driver restart and re-install it) and it did not result in a working Lenovo Care button...
    I don't beleive the Lenovo keyboad drivers are in any way related to the Service pack 3 as they do not use the Service pack files, to back this up I also had the same problem when Service Pack 2 was installed...
    The Lenovo Care button works fine on Boot up screen to access the rescue and recovery software (So the mechanics of the button are fine) but once Windows XP loads it is just a dead button, I remember it used to open up the Lenovo Care Start bar, I got it working once in the past but I can't remember what I did, I thought someone here might know the anwser...

  • Ok so it's what 1-25-13 Siri is down... AGAIN for the fourth ever since i got this iPad on Christmas so yea I need her to be back up and running... How do I fix it if you won't.

    Ok so it's what 1-25-13 Siri is down... AGAIN for the fourth ever since i got this iPad on Christmas so yea I need her to

    Randall-
    With some exceptions, Apple may not read this forum.  Many of us here are just people with time on our hands who want to help.
    If your WiFi internet link is not working, Siri will not work.  One thing you can try is to unplug your WiFi router for a few seconds.  Then reset the iPad's network at Settings-General-Reset-Reset Network Settings.  You may have to reconnect the iPad to the WiFi.
    There may be an iOS update beyond 6.0.1, in case that matters.
    Fred

  • How can I turn a smart phone into a dumb phone (for punishment when I still need her to have a phone)?

    I believe I am on the verge of needing to know how to turn my daughters phone into a dumb phone as a consequence.  I still need her to be able to call me, but not much else.  Anyone have any helpful hints?  She has a 5C.

    Remove all the email accounts that are on the device.
    Turn off FaceTime & iMessage.
    Create a new Apple ID using a new email address that you create, and that only you know the password to.
    Use that Apple ID for Settings > iCloud and Settings > iTunes & App Store.
    Delete all the third-party apps on the device.
    Go into Setting > Cellular and disable all apps from using cellular data (except Find My iPhone).  Or even disable Cellular data totally.
    Use the Restrictions option under Settings > General > Restrictions.  Create a Restrictions passcode that only you know
    Disable the ability to use everything from Safari down to Carplay under the Restrictions.
    Set all the allowed content to the most restricted options available.
    Set the Allow Changes in Restrictions to prevent allowing changes to Account, Cellular Data Use, ad maybe even volume limit.
    That pretty much makes it so she can make phone calls and use normal texting, but has no internet access, no way to browse online, no way to use any apps other than what's already pre-installed, can't use FaceTime, can't use the Camera, can't add email accounts to the device, can't change out the iCloud account, etc.  It basically dumbs the iPhone down as far as it can possibly go.

  • PLZ help me out here...URGENT....

    Here, actually i need to request the program to ask the user howmany lines does he wants by asking him to input the number of lines and at the same time write the whole text line that he requested to anew file. PLZ help me out here. So, the program shud display the text files that it read line by line after the user enters the number of lines he wants....DO i need to manipulate the loop or wat???..plz help me out here guys...thanks in advance....
    here is the code...
    import java.io.*;
    class FileReadTest3 {
    public static void main (String[] args) {
         FileReadTest3 f = new FileReadTest3();
    f.readMyFile();
    void readMyFile() {
    DataInputStream dis = null;
    String record = null;
    int recCount = 0;
    int EnterNum = 0;
    System.out.println("Please enter the number of lines: "+EnterNum);
    try {
    File f = new File("aliran.txt");
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    dis = new DataInputStream(bis);
         for(int recCount = 0; recCount <= 10, recCount++)
    recCount++;
    System.out.println(recCount + ": " + record);
    } catch (IOException e) {
    // catch io errors from FileInputStream or readLine()
    System.out.println("There was a problem for finding the file!" + e.getMessage());
    } finally {
    // if the file opened okay, make sure we close it
    if (dis != null) {
         try {
    dis.close();
         } catch (IOException ioe) {
    }

    1.) Actually perform some user input of any kind. Right now, the user has no choice.
    2.) Read from your file, for that's why you opened it.
    3.) Don't use a DataInputStream unless you know what you're doing. Use a BufferedReader instead if it's simply text.
    4.) Insert a condition check for the number of lines -- yes, you need to manipulate the loop or what.
    P.S.: Multiple posting, no use of code tag, the word "URGENT" in subject, calling people "man" ... this is like wearing a shirt that says "shoot me!".

  • Help. Need code for string verification

    I am trying to create a swing program that will verify a string then move a directory from a CD to the users hard drive. I have tried many different combinations of code with no success. I simply need a window with a text pane and a button that when clicked copies the content of the windows clipboard into the text pane, then compares it to a predefined string, then moves a directory from a CD to the harddrive.
    It seems very simple but I am new to java, with alot of c++ experiance, and I cant seem to get it to work. If someone could help me out here it would be much apprecaited. Thank you and sorry if I am not using the correct terminology, I tried to be as clear as possible.

    Here is the code: I just decided to make it command line instead of a GUI; I had too many problems.
    The code runs fine but for some reason i get this error when you get to the part about copying the file:
    123456789
    Verification complete copying files.
    Exception in thread "main" java.io.FileNotFoundException: C:\copy (Access is denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileReader.<init>(FileReader.java:55)
    at CompString.main(CompString.java:20)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 5 seconds)
    Here is the code:
    import java.io.*;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    public class CompString{
    public static void main(String[] args) throws IOException{
    System.out.println("Please go to http://mytatwear.com/verify.html and follow the instructions");
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Please enter number provided on the website");
    String str1 = bf.readLine();
    String str2 = "123456789";
    if (str1.equals(str2)){
    System.out.println("Verification complete copying files.");
    File inputFile = new File("C:\\copy");
    File outputFile = new File("C:\\tearwear");
    FileReader in = new FileReader(inputFile);
    FileWriter out = new FileWriter(outputFile);
    int c;
    while ((c = in.read()) != -1)
    out.write(c);
    in.close();
    out.close();
    else{
    System.out.println("The number is not valid");
    I had tried to change the permissions on the folder so it is not "Read only" but whenever my program access's it it is for some reason read only.
    Any help apprecaited

  • I have been backing up  since 2010 but my machine will only go as far back as feb 11 ... why is this? please help i need valueable info from 2010

    i have been backing up  since 2010 but my machine will only go as far back as feb 11 ... why is this? please help i need valueable info from 2010

    Welcome to the discussion area!
    When the Time Capsule disk starts to become full, Time Machine will automatically delete the oldest backups first to make room for new backups.
    For more details, I think you will get a faster and more informed response if you post in the TIme Machine forum for questions like this. We primarily handle configuration set up and networking questons about the Time Capsule as a hardware device on this forum, but it's possible that someone may see your post and respond from here as well.
    Please click the link below and then click the "Refine this list" 'button to see the Time Machine area.
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.6_snow_leopard?categ oryID=263

  • Help! Need to locate a savy programer

    I have a project that is too big for my expertise. I need to
    find someone who can work with me in completing the project. Must
    know flash, flash remoting, coldfusion and dreamweaver.
    Thanks.

    Re: Help I need to locate a driver for my soundblaster li've 24 bit soundcard? I guess you and your son are currently using windows xp. Well, what you can do is now is ignoring the WQHL pop-up window and choose the "install anyway" option during the installation of the soundcard driver, since WQHL only means the driver is tested by Microsoft and nothing more; drivers without the WQHL qualification does not mean they are bad drivers, they usually works as good as the WQHL ones.
    Ofcourse you can also download the official drivers for the mentioned Soundblaster li've 24bit at Creative Labs support/download site.
    here is it:
    [url="http://uk.europe.creative.com/support/downloads/download2.asp?MainCategory=&Product=035&dlcentric= 025&Product_Name=Li've%2+24-bit&filetype=&OSName=Windows+XP">Creative Sound Blaster Audigy Value/SE/LS and Sound Blaster Li've! 24-bit XP and Windows Vista Pack .04.0077 (63.39 MB)?[/url]
    The driver is for all Soundblaster Audigy Value, SE, LS and Soundblaster Li've 24bit, since they are all based on the CA-006 soundchip (with other words Creative Labs renamed the soundcard several times). Also this driver should be WQHL-ed (if not, choose "install anyway" option during installation of the soundcard driver). Make sure you have uninstalled the older driver before installing the new one. For troubleshooting use utilies like "Driver Cleaner" or "Driver Sweeper" (google for Guru3D and go to the site and their download section to get the utilities/tools) to clean up the junk files of the older driver that are left in the Windows OS.
    Good luck and Merry Christmas!!!
    Message Edited by CTman on 2-26-2008 0:2 [email protected]

  • How can i decide how many dimensions are needed here.and which charactersti

    Hi,
            i am planning to create custom defined cube for sale order line item data.  how can i decide how many dimensions are needed here.and which characterstics are suitable for that dimensions.
    Thanks,
    chandu.

    Hi Chandra,
    How many dimensions are needed and which characteristics to be used totally depends upon the data model you are using.
    for instance  take an example of school.
    teachers , students are the imp terms in this example .
    you can choose these two as dimensions .
    teacher's name , address  , subject , class , designation etc can be its characteristics . and for students also the important terms describing them can be its characteristics.
    for more understanding of the Dimensional Modeling you can refer to following link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84
    Hope It Helps .
    Regards
    Pratap

  • HT1338 trouble logging into my imac desktop, why wont it accept my valid password?? Please help I need to retrieve important files. Thanks.

    trouble logging into my imac desktop, why wont it accept my valid password?? I was using it fine last night... Please help I need to retrieve important files. Many Thanks.

    Do #5 and #6 here others as needed
    ..Step by Step to fix your Mac
    Most commonly used backup methods

Maybe you are looking for

  • SRM 7.0. Approval Note in Shopping one screen.

    Hi guys, In the Shopping one screen, I need populated text "approval note" when add an item. But, this text is only populated when we press "save" button or "order" button. but, after this, we Edit the Shopping Cart, this text is delete, and text box

  • Macbook Pro i7 2.2 2011 constant crashing

    Would really appreciated nay help I can get on this please. I installed an Apple SSD a few months ago and it has been working great. However my system seems to be crashing more and more to the point all my apps crashing every few mintues (exspecially

  • MessageFormat with NumberFormat parts

    Hi, I try to get a MessageFormat which would behave like a mixture of lets say DecimalFormat and MessageFormat - The first part would be like MessageFormat with any characters in it, e.g new MessageFormat("XYZ-1230-{0}")where the part which is replac

  • PR creation

    Dear all, Is it possible to to take the price from the last Purchase Order instead of the MAP in the material master while creating PR? Thank you.

  • Compile error import java.util.map$entry

    Hi, I am trying to compile code which imports the following package import java.util.Map$Entry. The error thrown up is : cant resolve symbol Map$Entry. Why is there a $ in the package import path and is there some configuration required to compile th