My Message Box Code Is Not Doing What I want It to Do Visual Basic

Hi Good People
I have Written Code To Show A message box "Saying The Address Already Exists" If the Addresses are already in my Database But if the Address is not in My Database then It gets Saved To my Database. (All works Ok so Far)
The Problem I have is, I want to put an If statement inside another if statement.. Because On the Message box I also have A message Saying "Or are you Updating This Address" with yes and No Buttons. And If I chose No Button then Nothing should
happen But If I chose the yes button then three text boxes are enabled so I can make changes to the record if needed. ie change of price or change of Address.
When I change any Details on the Form and click save Nothing is Updated either in the datagridview or on the form. I must be missing code somewhere. Here is all the code i have ......
Public Class frm_AirportFares
Dim AirportFares As New AirportDataContext
Private Sub AirportFaresBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) _
Handles AirportFaresBindingNavigatorSaveItem.Click
Try
Dim Airport = From AirportFares In AirportFares.AirportFares _
Where AirportFares.PickupAddress = Me.tb_PickupAddress.Text _
AndAlso AirportFares.DropAddress = Me.tb_DropAddress.Text
If Not Airport.Count = 0 Then
MsgBox("The Address " & tb_PickupAddress.Text & " To " & tb_DropAddress.Text & " Already Exists" & vbCrLf & _
vbCrLf & "Or are you Updating this record", MsgBoxStyle.YesNo)
Dim res As MsgBoxResult
If res = MsgBoxResult.No Then
'Nothing Happens
MsgBox("Your Record Has NOT Been Altered")
Else
If res = MsgBoxResult.Yes Then
'Here I want to save any alteration made
Me.Validate()
Me.AirportFaresBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.BookingsDataSet)
Me.AirportFaresDataGridView.Update()
MsgBox("Fare Has Been Saved Successfully")
End If
End If
End If
Catch ex As Exception
End Try
End Sub
second Picture with Message box
Can anyone tell me what i have done wrong please
Kind Regards
Gary
Gary Simpson

You did not assign a value to the message box. You needed to do:
res = MsgBox(etc.)
However, it is preferred to use the MessageBox.Show() method rather than the legacy MsgBox() function.  Notice the difference in the output of ans with each of these boxes.
Here is some sample code using both:
    Private Sub btnMsg_Click(sender As System.Object, e As System.EventArgs) Handles btnMsg.Click
        Dim ans As Integer      'can NOT declare as DialogResult
        ans = MsgBox("Did you pass the test?", MsgBoxStyle.YesNo, "Yes or No")
        If ans = DialogResult.Yes Then  'same as:  If ans = 6
            MsgBox("OK", , ans.ToString)
        Else                '7 is same as No
            MsgBox("Failed", , ans.ToString)
        End If
    End Sub
    Private Sub btnMessage_Click(sender As System.Object, e As System.EventArgs) Handles btnMessage.Click
        Dim ans As DialogResult     'can also Dim ans As Integer
        ans = MessageBox.Show("Did you pass the test?", "Yes or No", MessageBoxButtons.YesNo)
        If ans = DialogResult.Yes Then  'same as:  If ans = 6
            MessageBox.Show("OK", ans.ToString)
        Else
            MessageBox.Show("Failed", ans.ToString)
        End If
    End Sub
Solitaire

Similar Messages

  • MouseEvent not doing what I want

    Below is a working program. What I want is when I click on the program it's suppose to go to the other method (i.e. like a story book going to the next page) but sometimes I have to double click for it go to and sometimes it doesn't work at all. Can someone help me fix this so that is goes to the next method called. I thought I could fix this by having a getClickCount()but it doesn't work one-by-one; sometimes, i have to click 2 or 3 times to have to go to the next one. And yes, I am new to the whole program deal. So if some of you big worms can help, I would greatly appreciate it.
    Roman03
    * The basic framework for a wanna be story book
    * @author Michael
    * @version 0.00001
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class Zelda extends JFrame implements MouseListener
         private static final int GAME_STATE_INTRO = 0;
    private static final int GAME_STATE_SETUP = 1;
    private static final int GAME_STATE_PARTONE = 2;
    private static final int GAME_STATE_PARTTWO = 3;
    private int clicks;
    private int gameState;
    // private int gameCity;
    String name = "heroShot.gif";
    Image image = Toolkit.getDefaultToolkit().getImage(name);
    String sname = "snowMan.gif";
    Image simage = Toolkit.getDefaultToolkit().getImage(sname);
    * Entry point for code execution.
    public static void main(String[] args) {
    new Zelda();
    * Constructor for objects of class BattleshipApp
    public Zelda()
    this.setSize(600, 500);
    this.show();
    this.setTitle("Roman Empire Software");
    this.addMouseListener(this);
    this.gameState = GAME_STATE_INTRO;
    * Draws the game window.
    public void paint(Graphics gfx) {
    if (this.gameState == GAME_STATE_INTRO) {
    this.drawTitleScreen();
    else if (this.gameState == GAME_STATE_SETUP) {
    this.drawGrid();
    if (clicks == 2) {
    this.drawPartOne();
    if (clicks == 3) {
    this.drawPartTwo();
    * Draws the 'Welcome to Battleship' screen.
    private void drawTitleScreen() {
    // Get an object representing the area within the window borders.
    Container clientArea = this.getContentPane();
    // Get the Graphics object associated with the client area.
    Graphics gfx = clientArea.getGraphics();
    // Get the size of the client area.
    int width = clientArea.getWidth();
    int height = clientArea.getHeight();
    gfx.setColor(Color.black);
    gfx.fillRect(0, 0, width, height);
    gfx.setColor(Color.green);
    gfx.drawString("Welcome to the New Roman Empire", 200, 325);
    gfx.setColor(Color.gray);
    gfx.drawString("(click mouse to continue)", 228, 275);
    gfx.drawString("(This is the first screen)", 225, 300);
    gfx.drawImage( image, 180, 0, this );
    gfx.drawString("Clicks " + clicks, 400, 400);
    private void drawGrid() {
    // Get the info for the work area.
    Container workArea = this.getContentPane();
    Graphics workAreaGfx = workArea.getGraphics();
    // Fill the work area with black.
    workAreaGfx.setColor(Color.black);
    int width = workArea.getWidth();
    int height = workArea.getHeight();
    workAreaGfx.fillRect(0, 0, width, height);
              workAreaGfx.setColor(Color.green);
    workAreaGfx.drawString("(click mouse to continue)", 250, 375);
    workAreaGfx.drawImage( image, 0, 0, this );
    this.gameState = GAME_STATE_PARTONE;
    workAreaGfx.drawString("Clicks " + clicks, 400, 400);
    workAreaGfx.drawString("This is still a working program ", 250, 200);
    workAreaGfx.drawString("I am still working out the bugs ", 250, 220);
    workAreaGfx.drawString("(This is the Second screen)", 250, 240);
    // Code to draw the grid lines.
    // First, set the line color.
    private void drawPartOne() {
    // Get the info for the work area.
    // Get an object representing the area within the window borders.
    Container clientArea = this.getContentPane();
    // Get the Graphics object associated with the client area.
    Graphics gfx = clientArea.getGraphics();
    // Get the size of the client area.
    int width = clientArea.getWidth();
    int height = clientArea.getHeight();
    gfx.setColor(Color.black);
    gfx.fillRect(0, 0, width, height);
    gfx.setColor(Color.green);
    gfx.drawString("Why ain't this thing working?", 200, 325);
    gfx.setColor(Color.blue);
    gfx.drawString("Some times it's the snow hero that does it", 200, 425);
    gfx.setColor(Color.gray);
    gfx.drawString("(click mouse to continue)", 128, 575);
    gfx.drawString("(This is the third screen)", 225, 300);
    gfx.drawImage( simage, 18, 11, this );
    gfx.drawString("Clicks " + clicks, 400, 400);
    private void drawPartTwo() {
    // Get the info for the work area.
    // Get an object representing the area within the window borders.
    Container clientArea = this.getContentPane();
    // Get the Graphics object associated with the client area.
    Graphics gfx = clientArea.getGraphics();
    // Get the size of the client area.
    int width = clientArea.getWidth();
    int height = clientArea.getHeight();
    gfx.setColor(Color.black);
    gfx.fillRect(0, 0, width, height);
    gfx.setColor(Color.green);
    gfx.drawString("Junk text who cares", 250, 125);
    gfx.setColor(Color.green);
    gfx.drawString("Blah Blah just have to put some text", 100, 225);
    gfx.setColor(Color.blue);
    gfx.drawString("Some times it's the snow hero that does it", 300, 225);
    gfx.setColor(Color.gray);
    gfx.drawString("(click mouse to continue)", 28, 575);
    gfx.drawString("(This is the forth screen)", 225, 300);
    //gfx.drawImage( simage, 118, 11, this );
    gfx.drawString("Clicks " + clicks, 400, 400);
    * MouseListener methods.
    public void mouseClicked(MouseEvent event) {}
    public void mouseEntered(MouseEvent event) {}
    public void mouseExited(MouseEvent event) {}
    public void mousePressed(MouseEvent event) {}
    public void mouseReleased(MouseEvent event) {
    clicks = event.getClickCount();
    Graphics gfx = this.getGraphics();
         this.gameState = GAME_STATE_SETUP;
              this.repaint();
              if (event.getClickCount() == 2 )
    this.gameState = GAME_STATE_PARTONE;
              this.repaint();
         else if (event.getClickCount() == 3 ) {
    this.gameState = GAME_STATE_PARTTWO;
              this.repaint();

    Well, first off, you should use mousepressed instead of mousereleased because it will fire right when you click the mouse button... it's prefered by most people I know.
    Secondly, it only doesn't work because of the way you have it trying to refresh.
    Take a look at this code:
       import java.awt.*;
       import javax.swing.*;
       import java.awt.event.*;
       public class Zelda extends JFrame implements MouseListener
          private static final int GAME_STATE_INTRO = 0;
          private static final int GAME_STATE_SETUP = 1;
          private static final int GAME_STATE_PARTONE = 2;
          private static final int GAME_STATE_PARTTWO = 3;
          private int clicks;
          private int gameState;
          String name = "heroShot.gif";
          Image image = Toolkit.getDefaultToolkit().getImage(name);
          String sname = "snowMan.gif";
          Image simage = Toolkit.getDefaultToolkit().getImage(sname);
          public static void main(String[] args) {
             new Zelda();
          public Zelda()
             this.setSize(600, 500);
             this.show();
             this.setTitle("Roman Empire Software");
             this.addMouseListener(this);
             this.gameState = 0;//GAME_STATE_INTRO;
          public void paint(Graphics gfx) {
             if (gameState == GAME_STATE_INTRO) {
                drawTitleScreen();
             else if (gameState == GAME_STATE_SETUP) {
                drawGrid();
             if (gameState == GAME_STATE_PARTONE) {
                drawPartOne();
             if (gameState == GAME_STATE_PARTTWO) {
                drawPartTwo();
          private void drawTitleScreen() {
             Container clientArea = this.getContentPane();
             Graphics gfx = clientArea.getGraphics();
             int width = clientArea.getWidth();
             int height = clientArea.getHeight();
             gfx.setColor(Color.black);
             gfx.fillRect(0, 0, width, height);
             gfx.setColor(Color.green);
             gfx.drawString("Welcome to the New Roman Empire", 200, 325);
             gfx.setColor(Color.gray);
             gfx.drawString("(click mouse to continue)", 228, 275);
             gfx.drawString("(This is the first screen)", 225, 300);
             gfx.drawImage( image, 180, 0, this );
             gfx.drawString("Clicks " + clicks, 400, 400);
          private void drawGrid() {
             Container workArea = this.getContentPane();
             Graphics workAreaGfx = workArea.getGraphics();
             workAreaGfx.setColor(Color.black);
             int width = workArea.getWidth();
             int height = workArea.getHeight();
             workAreaGfx.fillRect(0, 0, width, height);
             workAreaGfx.setColor(Color.green);
             workAreaGfx.drawString("(click mouse to continue)", 250, 375);
             workAreaGfx.drawImage( image, 0, 0, this );
             this.gameState = GAME_STATE_PARTONE;
             workAreaGfx.drawString("Clicks " + clicks, 400, 400);
             workAreaGfx.drawString("This is still a working program ", 250, 200);
             workAreaGfx.drawString("I am still working out the bugs ", 250, 220);
             workAreaGfx.drawString("(This is the Second screen)", 250, 240);
          private void drawPartOne() {
             Container clientArea = this.getContentPane();
             Graphics gfx = clientArea.getGraphics();
             int width = clientArea.getWidth();
             int height = clientArea.getHeight();
             gfx.setColor(Color.black);
             gfx.fillRect(0, 0, width, height);
             gfx.setColor(Color.green);
             gfx.drawString("Why ain't this thing working?", 200, 325);
             gfx.setColor(Color.blue);
             gfx.drawString("Some times it's the snow hero that does it", 200, 425);
             gfx.setColor(Color.gray);
             gfx.drawString("(click mouse to continue)", 128, 575);
             gfx.drawString("(This is the third screen)", 225, 300);
             gfx.drawImage( simage, 18, 11, this );
             gfx.drawString("Clicks " + clicks, 400, 400);
          private void drawPartTwo() {
             Container clientArea = this.getContentPane();
             Graphics gfx = clientArea.getGraphics();
             int width = clientArea.getWidth();
             int height = clientArea.getHeight();
             gfx.setColor(Color.black);
             gfx.fillRect(0, 0, width, height);
             gfx.setColor(Color.green);
             gfx.drawString("Junk text who cares", 250, 125);
             gfx.setColor(Color.green);
             gfx.drawString("Blah Blah just have to put some text", 100, 225);
             gfx.setColor(Color.blue);
             gfx.drawString("Some times it's the snow hero that does it", 300, 225);
             gfx.setColor(Color.gray);
             gfx.drawString("(click mouse to continue)", 28, 575);
             gfx.drawString("(This is the forth screen)", 225, 300);
             gfx.drawString("Clicks " + clicks, 400, 400);
          public void mouseClicked(MouseEvent event) {
             gameState++;
             if(gameState > 3)
                gameState = 0;
             repaint();
          public void mouseEntered(MouseEvent event) {
          public void mouseExited(MouseEvent event) {
          public void mousePressed(MouseEvent event) {
          public void mouseReleased(MouseEvent event) {
       }

  • Using Dialogue box in adobe. Javascript && not doing what I want it to

    Ok, I have a dialoge box that pops open for staff and asks them what it is they are doing - Reducing Interest Rate, Changing payment frequency, Changing payment amount or suspending payment.  I have fields that show/hide based on those choices
    If they hit only 1 choice the form works like a charm.  If however they hit two choices it does not
    I see what the form is doing but I do not know how to fix
    For a small example I have (put very simply)
    Fields 1, 2, 3 and 4 - all hidden
    button 1 = false
    button 2 = false
    button 3 = false
    button 4 = false
    if button 1 = true
    unhide Fields 2, 3 and 4
    If button 2 = true
    unhide Fields 1, 3 and 4
    if button 3 = true
    unhide Fields 1, 2 and 4
    if button 2 && 3 are true then:
    unhide Fields 1 and 4
    but what it does is show button 2 = true so unhides fields 1, 3 and 4 and then says button 3 = true so unhides Fields 1, 2 and 4 - so it ends up all my fields unhide
    I am sure there is probably a quick fix but I am at a loss
    I will attempt to attach my full code shortly

    Header 1
    // did the value change when ticked - lets check  THIS IS THE CODE I HAVE
    Alteration.bChk2 = false;
    Alteration.bChk3 = false;
    Alteration.bChk4 = false;
    Alteration.bChk5 = false;
    if ("ok" == Alteration.DoDialog()) {
         if (Alteration.bChk2 && Alteration.bChk4) {
             getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
             getField("FormValuesLoan.paymentDay").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly2nd").display = display.visible;
             getField("Periodic Payment Area").display = display.noPrint;
             getField("reduced interest rate").checkThisBox(0,true);
             getField("suspended periodic payment").checkThisBox(0,true);
    if (Alteration.bChk2 && Alteration.bChk5) {
             getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
             getField("FormValues.paymentAmount").display = display.visible;
             getField("Periodic Payment Area").display = display.noPrint;
             getField("Periodic Pay Frequency Area Area").display = display.noPrint;
             getField("reduced interest rate").checkThisBox(0,true);
             getField("change periodic payment frequency").checkThisBox(0,true);
    if (Alteration.bChk3 && Alteration.bChk5) {
            getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.rateType").display = display.visible;
             getField("FormValues.Loan.fixedRate").display = display.visible;
             getField("FormValues.Loan.variance_GT").display = display.visible;
             getField("Periodic Pay Frequency Area").display = display.noPrint;
             getField("Periodic Payment Area").display = display.noPrint;
             getField("change periodic payment frequency").checkThisBox(0,true);
             getField("reduced periodic payment amount").checkThisBox(0,true);
        if (Alteration.bChk2) {
             getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
             getField("FormValuesLoan.paymentDay").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
             getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
             getField("FormValues.paymentAmount").display = display.visible;
             getField("Interest Rate Area").display = display.noPrint;
             getField("reduced interest rate").checkThisBox(0,true);
    if (Alteration.bChk3) {
             getField("FormValues.rateType").display = display.visible;
             getField("FormValues.Loan.fixedRate").display = display.visible;
             getField("FormValues.Loan.variance_GT").display = display.visible;
             getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
            getField("FormValuesLoan.paymentDay").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly2nd").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
            getField("Periodic Payment Area").display = display.noPrint;
            getField("reduced periodic payment amount").checkThisBox(0,true);
    if (Alteration.bChk4) {
            getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
            getField("FormValues.variance").display = display.visible;
            getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible; 
            getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
            getField("FormValuesLoan.paymentDay").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly2nd").display = display.visible;
            getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
            getField("FormValues.paymentAmount").display = display.visible;
            getField("FormValues.rateType").display = display.visible;
            getField("FormValues.Loan.fixedRate").display = display.visible;
            getField("FormValues.Loan.variance_GT").display = display.visible;
            getField("suspended periodic payment").checkThisBox(0,true);
            getField("Suspend Payment").display = display.noPrint;
    if (Alteration.bChk5) {
            getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
            getField("FormValues.variance").display = display.visible;
            getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
            getField("FormValues.paymentAmount").display = display.visible;
            getField("FormValues.rateType").display = display.visible;
            getField("FormValues.Loan.fixedRate").display = display.visible;
            getField("FormValues.Loan.variance_GT").display = display.visible;
            getField("Periodic Pay Frequency Area").display = display.noPrint;
            getField("change periodic payment frequency").checkThisBox(0,true);
         console.println("Chk2:" + Alteration.bChk2);
         console.println("Chk3:" + Alteration.bChk3);
         console.println("Chk4:" + Alteration.bChk4);
        console.println("Chk5:" + Alteration.bChk5);
    So when I check button 2 and 5 is shows button 2 true and does button 2 work and shows button 5 true and does button 5 work. I want it only to do the condition under the && condition

  • Spry Menu Bar is not doing what I want it to do

    I am attempting to work with the Spry Menu Bar, which was starting to work, but then I made the mistake of trying to resize it using the resize handles around the menu. And now I can't figure out how to get it back to the right size. I've tried undoing and looking through the code, which is NOT my forte, but I can't find any clues as to how change the size. And it will not display any menu other than the very first one, even though the whole menu bar is spanning the page, with plenty of room to display all 4. What is going on??
    Here is the Spry menu bar css code:
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size: 13pt;
              cursor: default;
              width: 800px;
              text-align: center;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
              z-index: 1000;
              background-color: #666;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size: 100%;
              position: absolute;
              text-align: center;
              cursor: pointer;
              width: 795px;
              float: left;
              height: 38px;
              left: 9px;
              top: 428px;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size: 100%;
              z-index: 1020;
              cursor: default;
              width: 8.2em;
              position: absolute;
              left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
              left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
              width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
              position: absolute;
              margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
              left: auto;
              top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
              border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
              display: block;
              cursor: pointer;
              background-color: #000;
              padding: 0.5em 0.75em;
              color: #FFF;
              text-decoration: none;
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 17px;
              text-align: center;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
              background-color: #333;
              color: #FFE0A9;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
              background-color: #33C;
              color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
              background-image: url(SpryMenuBarDown.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
              color: #000;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
              background-image: url(SpryMenuBarRight.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
              background-image: url(SpryMenuBarDownHover.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
              background-image: url(SpryMenuBarRightHover.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
              position: absolute;
              z-index: 1010;
              filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.MenuBarHorizontal li.MenuBarItemIE
                        display: inline;
                        f\loat: left;
                        background: #FFF;

    First of all, are you aware that Spry is a dead technology and the code you're wrestling with is over 7 years old and will not work with mobile touchscreen devices (essential in today's web world)?
    Even though it's included in older versions of Dreamweaver, Adobe formally abandoned Spry last year
    http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l'
    Point being, few people will advise you to continue along this Spry path.
    You're better off investing your energy in a modern up-to-date menu system.
    Free ones try
    http://forums.adobe.com/message/5070444
    If funds will allow then try
    http://www.projectseven.com/products/menusystems/pmm3/index.htm

  • Printing in Numbers 3.0 not doing what I want

    I have beeen having difficulty printing in Numbers 3.0. First I am not proficiant in spreadsheets and probably won't change. Here is my problem.
    I have a spreedsheet, more like a database (no calculations , just data). I used to have titles for my columns instead of A,B,C, etc. They no longer show. When I print the preview they also don't show. However when when I print they appear, but not at the top of each page, some where in the middle. Proper place, except not at top of each page. I'm sure I have screwed up some settings. Apprerciate bailing me out.
    Thanks

    Hi Stuart,
    This sounds strange. Please reply with a screen shot of (a small part of) your document.
    To take a screen shot, hold down the shift and command keys, then type 4. The cursor will change to crosshairs. Release the shift and command keys. Drag over that part of your screen then release the mouse/trackpad. A screen shot will appear on your desktop. In a reply to a message, click on the camera icon in the Toolbar above your reply and
    Choose File > Choose > Insert Image
    You may have to try this twice. Camera icon sometimes needs a wake-up call, but works the second time.
    Remove any personal details before taking the screen shot.
    Regards,
    Ian

  • SQL*Plus break not doing what I want

    Greetings,
    I am trying to write a script to generate grants on objects in different schemas and each time the schema changes I want to insert a connect command. I figured this out once and don't remember how I did it. The attached piece of code puts the connect statement every other line, I only want it prior to each different owner. If someone can help me figure this out I would greatly appreciate it. Thank you. Bill Wagman
    set pages 0
    set head off
    set feedback off
    set lines 90
    clear breaks
    break on owner
    spool create_grants.txt
    SELECT
    'connect '||owner||'/&&;'|| chr(10)||
    'GRANT '||privilege||' on '||table_name||' to '||grantee||';'
    FROM dba_tab_privs
    WHERE owner IN ('ALUMNI','BANINST1','BANSECR','DARS','DBSMP','FAISMGR',
    'FIMSMGR','GENERAL','ODSMGR','SATURN','POSNCTL',
    'TAISMGR')
    and (
    grantee = 'ALUMNI' or
    grantee = 'BANINST1' or
    grantee = 'BANSECR' or
    grantee = 'DARS' or
    grantee = 'DBSMP' or
    grantee = 'FAISMGR' or
    grantee = 'FIMSMGR' or
    grantee = 'GENERAL' or
    grantee = 'ODSMGR' or
    grantee = 'SATURN' or
    grantee = 'POSNCTL' or
    grantee = 'TAISMGR')
    order by owner
    /

    Greetings,
    I am trying to write a script to generate grants on objects in different schemas and each time the schema changes I want to insert a connect command. I figured this out once and don't remember how I did it. The attached piece of code puts the connect statement every other line, I only want it prior to each different owner. If someone can help me figure this out I would greatly appreciate it. Thank you. Bill Wagman
    set pages 0
    set head off
    set feedback off
    set lines 90
    clear breaks
    break on owner
    spool create_grants.txt
    SELECT
    'connect '||owner||'/&&;'|| chr(10)||
    'GRANT '||privilege||' on '||table_name||' to '||grantee||';'
    FROM dba_tab_privs
    WHERE owner IN ('ALUMNI','BANINST1','BANSECR','DARS','DBSMP','FAISMGR',
    'FIMSMGR','GENERAL','ODSMGR','SATURN','POSNCTL',
    'TAISMGR')
    and (
    grantee = 'ALUMNI' or
    grantee = 'BANINST1' or
    grantee = 'BANSECR' or
    grantee = 'DARS' or
    grantee = 'DBSMP' or
    grantee = 'FAISMGR' or
    grantee = 'FIMSMGR' or
    grantee = 'GENERAL' or
    grantee = 'ODSMGR' or
    grantee = 'SATURN' or
    grantee = 'POSNCTL' or
    grantee = 'TAISMGR')
    order by owner
    /

  • My shift key is not doing what i want it to do

    hi my shift key is minimizing my screen instead of making the question mark or capitalizing letters. when i hit the shift key it minimizes the window

    Hmmm.
    Try >SysPrefences>Keyboard>keyboard shortcuts
    all  ... Restore Defaults.
    Beyond this try a safe boot and try.  You may have a third party conflict

  • Best Buy Appliance Delivery Not Doing What They Said They Would Do. Order Cancelled.

    I recently purchased a refrigerator from bestbuy.com and chose the option to have it delivered on Tuesday the second of December (today). I received an order confirmation e-mail from best buy on the day of purchase (November 28) which stated the following (taken directly from the e-mail):
    The scheduled appointment date of your item(s) below is Tuesday, December 2, 2014
    We'll call you by 9PM the night before your appointment with an estimated arrival time window at the phone number(s) you provided at the time of purchase (with either live or pre-recorded calls).
    Thank you for shopping with us.
    Sincerely,
    Karalyn Sartor
    Vice President Customer Care
    Yesterday, on Monday the 1st of December, I got a knock on the door from the Best Buy delivery team. They had my refrigerator and were here to deliver it. I was not ready for them to deliver the refrigerator at that time, at all, as I was not expecting it. I asked the driver to please deliver it on the scheduled date. The change in scheduling happened without a postive notification.
    I checked afterward and saw that their was en e-mail sent during the evening of November 30 informing me that the refrigerator would be delivered on Monday the 1st. This e-mail was in my spam folder and I did not see it. I did not expect it either as I was under the impression that I would be called by phone prior to delivery (as stated in the original purchase confirmation e-mail). So some mistake/change in scheduling happened. Not a big deal to me.
    Thirty minutes ago I called the 1-888 number mentioned in the e-mail to inquire about what time I could expect my refrigerator to be delivered. I was told it was rescheduled for December 20th, which is not acceptable to me.
    I was told the earliest delivery date that they could honor would be for monday the 8th of December. That is unacceptable to me as well. I was advised I had no other options for delivery other than to receive it on the 8th of December, 6 days after the aggreed upon delivery date.
    In the end I cancelled the order. As a customer I do not like to be treated this way (to be told one thing at first (delivery date and that I would be called by phone), to have that one thing change, and to not be told in a *reasonable* manner that the one thing had changed.
    Best Buy customer service, If you would like to contact me you have my e-mail address. You also have my correct phone number for calling me, which your system verified when it looked up my order by phone. Until then, please consider me an unsatisfied customer that will look very closely at other buying options for all my future appliance and home electronics needs.
    Thank You.
    P.S. - The person I spoke to on the phone to inquire about and cancel my order was very courteous and professional.

    To Whom It May Concern,
    I posted earlier regarding a refrigerator delivery problem. http://forums.bestbuy.com/t5/Delivery-Installation/Best-Buy-Appliance-Delivery-Not-Doing-What-They-S...
    I've since read a few of the other posts and think I see some common issues that many others have been having:
    1. Not calling the customer. We (customers) expect someone will call us the day before a scheduled delivery date to confirm the item is being delivered and approximately what time to expect it. The confirmation e-mail you send even states that this will happen.
    2. Not notifying the customer regarding changes. We (customers) expect someone will notify us if delivery dates are changed. This is especially important if the delivery date has been moved forward, as in my case. My particular problem would have been avoided entirely if someone from Best Buy would have notified me that the refrigerator I ordered would arrive one day ahead of schedule. An e-mail is not a good enough notification when you move the shipping date forward. How do you even know I have read/received it and will be home?
    3. Not working with the customer. I've read a few forum posts where some mistake has happened, and now shipping is delayed by a signifcant amount of time (a week or more). If you (Best Buy) had some better way of working with whoever does your delivery for you, things would be better.
    In my example the original delivery date was for today (Dec 2nd). You decided to deliver a day early on the 1st without making sure I knew you were coming on a differnet day than scheduled. So I wasn't ready. At this point I believe you (Best Buy) should have tried to correct this by rescheduling the delivery so that it happened on the original delivery date, December 2nd. You could have also arranged to deliver it later that same day, I would have been ok with that and had time to make things ready. Instead the delivery got rescheduled for the 20th of December by the system, and your customer service could only move it up to December 8. In a situation like this I think it would be better if you worked more with the customer (pay a driver an hour or two of overtime to get the goods delivered on the day you said you would or delay someone else who placed their order after I placed mine). Instead I was given one and only option, delivery on December 8.
    In the end I took the other option, cancelling my order. You have lost my business on this sale and I now have a lower opinion of Best Buy as a company and a brand than I did before. This could have been avoided if you did any of the above three things.
    Thank you for your time.

  • Extract Pages- and the Split- not doing what I expect them to

    I have a document created in Illustrator (CS4) which has multiple artboards. I want it split into multiple documents, one art board—> one document with only that artwork. When I use the Extract PAges… and the Split… comands to generate multiple documents, I get the multiple docs (same number of docs created as pages in original doc).
    Only thing is every doc has all the artboards and all the artwork as the original doc. I could understand all the artwork being there but all the artboards also?? What's going on?
    Appreciate any pointers on this.
    Trying to write a JSX to run in AI but struggling so far. Thread for AI solution started here: AS) export single page PDFs from multi-artboards

    I don't expect mind reading but I'l settle for careful reading
    I tried to explain how pages and artboards are qualitatively different objects only to be told they are the same thing and that's all I needed to say.
    I tried to explain that opening the very same file in Illustrator showed a lot more objects than it did in Acrobat. You probably don't remember because you breezed over something that you didn't think you needed to know because you were, at each stage, a step ahead of me (slow down already!).
    From my second post:
    I can't remember if Splitting gave enumerate files or the one file but either way ALL the artwork was in the enumerate files if they got made [.…] I ended up saving as CS3 .ai files which gives a Save artboards to seperate files option and, unlike the artboard range option on Save As PDF, it actually works.
    From my third post
    An artboard is not a page as far as Acrobat and Illustrator apps are concerned. I was trying to highlight the distinctly different way the two apps handle them. I can watch a one page with just one shape document in Acrobat become a 20 artboard, 40+ objects layout in Illustrator. Same document interpreted as one Page in Acrobat and 23 artboards in AI.
    I was on this forum because even a manual Document Menu> Split… command is not doing what I expected with the AI generated 23pp PDF file. I expected the 23 individual 'artboards' and content to each make a separate file.
    Thom Parker wrote:
    I don't remember you mentioning that you re-imported the PDF files into Illustrator.  This is an important detail. You also posted to an Acrobat scripting forum and never said you were not interested in an Acrobat Script.  You also never explained the problem you were seeing.  You were never clear.
    Covered that but note Illustrator doesn't import PDF files. .ai .eps and .pdf are all native files for Illustrator and just open, sometimes with an additional dialogue to choose a page from multiple pages. It imports .dwg, .svg and that sort of thing relying on translator plugins. This is the fourth time I'm saying I should have posted in Acrobat Win or Mac not scripting, apologies I was scripting when I made OP and probably frustrated. You were more clear it's true, clearly ignoring what I was getting at in each post re artboard cf. page objects.
    You see, in a PDF file each page has it's own content stream, i.e., a stream of vector graphics operators.  Graphics can be drawn anywhere in the coordinate space, but the page view is clipped by a crop rectangle.  So graphics can exist in the stream, but never be visible to the user because they are outside the crop.  I get the impression that in Illustrator the Artboards all exist in a single coordinate space? And that the conversion to PDF places this entire coordinate space into a single content stream. Then each page would be a different crop of the same content stream.  If this is the case then I believe there are PDF optimization operations in Acrobat that would fix your problem by removing all content outside the crop. 
    Yeah I've hacked lots of PDF files in AI. They use more than one clipping rect per page from memory. Correct, the artboards are defined in a single co-ord space it would seem — artboards are discretely and independently located on the document canvas and can even overlap each other. Yes those operations might work, I never though of that, I came across an Illustrator based solution early on in this thread. There's no conversion going on in Acrobat though I think, the file stays native PDF from AI to Acrobat and back to AI. As I've noted it's the way Acrobat displays or parses the data that in effect hides all the 'off-page' objects but open the same file in AI and it's all still there. 
    You know, we can't read minds, you actually have to explain what it is you need.
    I didn't know it, but I needed to get a confirmation on the artboardRange property bug in Illustrator CS4 and/or a confirmation that artboards are not treated as page objects, and I ended up having to lecture you on something you may have no interest in, sorry if I've been a pain. This is part of bigger bug elsewhere that I've been trying to get resolved or around on and off for a month. Every turn another bug, it gets confusing and frustrating at times

  • Photoshop CS5.1: The message box reads: Could not print "________.jpg" because of a disk error. Fix?

    Photoshop CS5.1: The message box reads: Could not print “________.jpg” because of a disk error. Fix?

    How To Get Help Quickly!
    Is the printer driver up-to-date?
    Could your disk actually be faulty?
    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by pressing command-alt-shift on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • I deactivated my mac adobe CS5 on one computer, and now i cannot activate it on another, it says the activation code is not valid, what  is the problem?

    i deactivated my mac adobe CS5 on one computer, and now i cannot activate it on another, it says the activation code is not valid, what  is the problem?

    Please refer:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    Click the Chat Now button at the end of the page and talk with a live agent who would resolve it ASAP.
    Regards,
    Ashutosh

  • TS1292 my itunes card code is not legiable. what to do??

    my itunes card code is not legiable. what to do??

    See Here...
    http://www.apple.com/hk/en/support/itunes/store/giftcard/
    If no joy...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How to save slideshow settings so when I press Ctrl-Enter it does what I want?

    How to save slideshow settings so when I press Ctrl-Enter it does what I want?
    eh?
    R

    I tested what you gave me there Rob. On my Mac I have dual monitors:
    -Only blackens/show slideshow on one monitor (the main monitor, if I move LR to my secondary monitory, the slideshow is still on the first, but the second still runs normal, with LR just sitting there).
    -If I disable slide durration I have to manually advance the slides with the right arrow.
    -I don't have "Lightroom" (or with my current settings any) text on the screen.
    -Does not repeat.
    My Windows machine doesn't have dual monitors, but the others work correctly....
    That is, until I thought about this differently. Since we are looking at changing Slideshow settings, I was naturally in the Slideshow module. But then I remembered the whole point of the Impromtu Slideshow was that you can view slideshow playback from any module. Once I returned to Library and clicked Command/Ctrl+Enter, then I saw exactly what you are talking about. Both monitors are blackened, slide duration is ignored, etc.
    You know why? Because the Impromptu Slideshow uses one of the templates when outside of the Slideshow Module. Which one? Well, Default +, of course. How do you change that? Right-click (Command-click) the slideshow template you'd rather use and select "Use for Impromptu Slideshow".

  • How do I get my money refunded?  I am not getting what I want from this, cannot email anyone for help, cannot get someone on the phone I can understand, and keep getting disconnected.  I just want my money back.

    How do I get my money refunded?  I am not getting what I want from this, cannot email anyone for help, cannot get someone on the phone I can understand, and keep getting disconnected.  I just want my money back.

    "this" being what?  You posted in the Workspaces.acrobat.com forum, which is a free service.
    If you subscribed to any of the paid services see Cancel your membership or subscription | Acrobat.com online services

  • Ive just brought program. It will not do what I want. I want refund!

    Ive just brought program. It will not do what I want. I want refund!

    Hi amanda010
    Please contact Adobe Support and they will help you with your refund.
    Please refer : http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    You can Chat with an agent through above page or you can dial 1-800-833-6687

Maybe you are looking for

  • HP Pavilion DV6 Notebook -VX070AV, Windows 7 64-bit- no sound

    HP Pavilion DV6 Notebook -VX070AV, Windows 7 64-bit. IDT High Definition Audio CODEC Enabled stwrt64.sys 6.10.6289.0 Intel (R) Display Audio Enabled IntcDAud.sys 6.12.0.3047 Speakers show sound coming from internal speakers. Speakers and Headphones P

  • No camera connection on Mac OS X 10.8.6

    after moving my mom to another apartment we lost Camera connection. 3/15/14

  • Displaying iTunes radio information in Apple Menu Bar

    I know that you can get software and plug-ins which show song information etc in the Apple Menu Bar so you don't have to keep switching back to iTunes to see what is being played - but can this be done for radio broadcast information? The software I'

  • Batch input help

    HI, I wont to avoid message in TR. cne1 . when i put project & i remove the V from Processing Options (test run) And Excute i get pop-up with text: Actual values can be deleted and i don't wont it (pop-up) how can i remove it? i try with batch-input

  • How to achieve through Payment term

    Hello All, Our Client wants to achieve the following scenario by Payment terms. 45 Days Net 20th of subsequent month If Document date gets Posted on 01.04.2011- the invoice should add 45 days 01.04.2011+45 days that is 15.05.2011 and get due on 20.05