How to make the same code that works only?

how to make the same code that works only?
code:
Form2.Close = Me.Enabled = true
effect such as this code

I have this code:
Public Class Form1
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Form2.Show()
Me.Enabled = False
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Form3.Show()
Me.Enabled = False
End Sub
End Class
he wants to after closing Form2 and Form3 unblocked the whole form1
it means that:
when I click the button, displays the himself form2 and blocks himself form1" and after closing Form2 , unlocks himself Form1"
the same with Form3

Similar Messages

  • Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8

    Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8 as a control surface ?

    In YAMAHA01v96i:
    Go to DIO/SETUP select Generic DAW. Go to MIDI settings page and set the desired port (personally I use Number 1), Select the same audio frequency you use in your DAW (I use 44.1KhZ)...at this point You should save a scene in you 01V96i to avoid to repeat all the procedure again.
    Open studio manager, go to patch and set the input port from 17 to 32 respectively to USB1-USB16 (this will give you the return from you DAW to the 01v96i
    Save again the scene overwriting the old one.
    in LOGIC
    Click on preferences, select Audio then select 01v96i, then click on control surface and select Mackie design Baby HUI and in the midi session set the same port that you've been setting on the Yamaha 01V96i (Port 1 if you follow this example).
    That's more or less it.
    It worked for me...so far

  • Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode.

    Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.

    I rewrote code for debugging purpose and tried to catch error using GetLastError();  method,
    but it only printed 0. Below is code snippet; I think Create() throw an exception
    and code goes to catch block. 
    LONG ConnectTS(CString strIP, UINT n_Port)
    try{
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
    // Exception Line
    n_Err = GetLastError();
    return NET_INIT;
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image
    System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Output: -
    ConnectTS is calling Create [is going to call]
    Image System
    0

  • How to disable the security code and use only the Touch ID

    how to disable the security code and use only the Touch ID

    You can't use Touch ID without a passcode.
    http://support.apple.com/kb/HT5883

  • How to find the T-codes that's in a Single Role & Composite Role??

    Hi all,
    Some of the user have authorization to particular t-codes. However single roles are not created for them.
    Now I need to assign authorization to that particular t-code to a new employee.
    Since the single role is not there, I do not know how to find if it is inside a composite role.
    Which table should I find all the t-codes that are assigned to a single role / composite role?
    pls help.
    Regards,
    Pri

    Rakesh Kulkarni wrote:>
    > Table AGRS_TCODES give the roles with their tcode assignment.
    Beware of AGR_TCODES, it only reports transactions entered into the role menu. If you query table AGR_1251 filtered on object S_TCODE you get the actual transaction authorizations.
    Besides that, authorizations are always in single roles, so if you cannot find them there there's no point in searching through the composites.

  • How to make an 'order' button that works?

    How do I make an 'order' button, by clicking on it, will post a pre-defined product number in a contactform?
    Probably I have to use php, but I do not know how to make the correct script.
    Regards, Gerald

    If you just need it to pop text into a textfield, you can use javascript, something like this might do the trick for you...
    <textarea id="TheText"></textarea>
    <select id="DropDown">
        <option value="">None</option>
        <option value="text-one">Choice One</option>
        <option value="text-two">Choice Two</option>
        <option value="text-three">Choice Three</option>
        <option value="text-four">Choice Four</option>
    </select>
    <script type="text/javascript">
        var thetextbox = document.getElementById('TheText');
        var mydropdown = document.getElementById('DropDown');
        mydropdown.onchange = function(){
        thetextbox.value = this.value;
    </script>
    The script should come after the textbox and dropdown in your HTML.

  • How to make the list code visible?

    Dear All Experts,
         How to make the list with A1 and so on visible?
         Pls refer to below screenshot:
    Thanks!

    Dear All,
         I already find it.
    Thanks!

  • How to make the print, email button work in PDF output

    Hello,
    I'm using LC  Designer ES2 to create a xdp form with print, email and httpSubmit  button. Then using LC server to generatePDF output, binding with xml  dynamically. But after that I got the static pdf file and none of the  button work,
    I really need help on how to make it work. Any configuration, plug-in....
    Thanks,

    Hi,
    This is solved by note 1281208.
    Thanks,
    Edited by: Zhijie Kong on May 24, 2011 6:06 PM

  • How to make the same value be placed in many  variables.

    Hi all!
    I need help to make the values broght from ekpo-peinh: 1 2 3 4 5 etc...  get placed into many fields of internal table, for example:
    data: begin of it_size occurs 0.
            t90 like ekpo-peinh,
            t10 like ekpo-peinh,
            t11 like ekpo-peinh,
            t12.....
          end of it_size.
    And I need to make that all the values from ekpo-peinh be placed in order in it_size-t90 = 1, it_size-t10 = 2, it_size-t11 = 3, it_size-t12 = 4 and so on.
    So please if anyone can help me 'cause I don't know how to do that, I'll really appreciate it.
    Thanks for your time.

    Hi Guillermo.
    I'm not sure i understand completely, but here's part of a solution:
    data: l_comp type i,
          l_type.
    field-symbols: <f> type any.
    describe field it_size type l_type components l_comp.
    do l_comp times.
      assign component l_comp of structure it_size to <f>.
      if sy-subrc ne 0.
        exit.
      endif.
      move (value from EKPO) to <f>.
    enddo.
    This will populate, in order, your IT_SIZE structure with a value (EKPO-PEINH).  I'm not sure how this value is managed, but this should give you an idea.
    Regards,
    Jesse Thibodeau

  • How to make the change code result available on development system

    Dear Friends,
    I have done the source code changes after check out code from the SLD.
    In our SLD, the NWDI is installed on Development system and configured other systems are Training, Quality and Production.
    I would like to view the result of changes on development system.
    How can I do that?
    Do I need to activate the code? or Check in the code?
    I do not want to check in the code unless it is confirmed.
    Please help me.
    Early reply appreciated.
    Thanks in advance.
    Lakshmikanthaiah

    Hi Pascal,
    Thanks for ur prompt update.
    Well, in my practice I gone ahead with on more step.
    I check-in the code and asked for activation.
    Meanwhile generated Activation Request Number displayed.
    But even after that there is no changes resulting while executing the page.
    Can you help me further on this.
    Thanks in advance.
    Thanks and regards,
    Lakshmikanthaiah

  • How to make the JMX custom authentication work ?

    I am using the password and access file based authentication on JMX. When building my JMXConnectorServer, i use the property names and it works fine.
        Map<String, String> env = new HashMap<String, String>();
        env.put(ApplicationProperties.JMX_PWD_FILE_PROP, pwdFile);
        env.put(ApplicationProperties.JMX_ACCESS_FILE_PROP, accFile);
        connectorServer = JMXConnectorServerFactory.newJMXConnectorServer(jmxServiceURL, env, mBeanServer);However, now i want to use a custom authenticator and i implemented my own LoginModule to have a encrypted password in the password file. Thus the ideas is to have an encrypted password and plain text user name in the password file.
        public class ABCDJMXLoginModule implements LoginModule {
            private CallbackHandler callbackHandler;
            private Subject subject;
            private String u_username;
            private String u_password;
            private JMXPrincipal user;
            private Properties userCredentials;
            private String passwordFile;
            private String f_username;
            private String f_password;
            private static final Logger logger = LoggerFactory.getLogger(ABCDJMXLoginModule.class);
            public boolean abort() throws LoginException {
                // TODO Auto-generated method stub
                return false;
            public boolean commit() throws LoginException {
                // TODO Auto-generated method stub
                return true;
            public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState,
                    Map<String, ?> options) {
                this.subject = subject;
                this.callbackHandler = callbackHandler;
            public boolean login() throws LoginException {
                try {
                    attemptLogin();
                    loadPasswordFile();
                } catch (Exception e) {
                    logger.info("Exception, e");
                if (u_username == null || u_password == null) {
                    throw new LoginException("Either no username or no password specified");
                logger.info("Password from user and file : " + u_password + " :: " + f_password);
                if (u_password.equals(f_password)) {
                    return true;
                return false;
            public boolean logout() throws LoginException {
                // TODO Auto-generated method stub
                return true;
            private void attemptLogin() throws LoginException {
                Callback[] callbacks = new Callback[2];
                callbacks[0] = new NameCallback("u_username");
                callbacks[1] = new PasswordCallback("u_password", false);
                try {
                    callbackHandler.handle(callbacks);
                } catch (IOException e) {
                    logger.error("IOException", e);
                } catch (UnsupportedCallbackException e) {
                    logger.error("UnsupportedCallbackException", e);
                u_username = ((NameCallback) callbacks[0]).getName();
                user = new JMXPrincipal(u_username);
                char[] tmpPassword = ((PasswordCallback) callbacks[1]).getPassword();
                u_password = tmpPassword.toString();
                logger.info("UserName : " + u_username);
                logger.info("Password : " + u_password);
                System.arraycopy(tmpPassword, 0, u_password, 0, tmpPassword.length);
                ((PasswordCallback) callbacks[1]).clearPassword();
            private void loadPasswordFile() throws IOException {
                FileInputStream fis = null;
                passwordFile = "c:\\abcd.jmx.enc.password.file";
                try {
                    fis = new FileInputStream(passwordFile);
                } catch (SecurityException e) {
                    logger.error("Security Exception", e);
                BufferedInputStream bis = new BufferedInputStream(fis);
                userCredentials = new Properties();
                userCredentials.load(bis);
                bis.close();
                f_username = u_username;
                f_password = (String) userCredentials.get(f_username);
                logger.info("UserName before Decrypt : " + f_username);
                logger.info("Password from file before Decrypt : " + f_password);
                // decrypt the password from file and later compare it with user password from JConsole
                if (f_password != null) f_password = Cryptography.decrypt(f_password);
                logger.info("Password from file after Decrypt : " + f_password);
        }When i use the following code and try to connect via JConsole nothing happens.
        Map<String, String> env = new HashMap<String, String>();
        env.put(ApplicationProperties.JMX_PWD_FILE_PROP, pwdFile);
        env.put(ApplicationProperties.JMX_ACCESS_FILE_PROP, accFile);
        env.put("jmx.remote.x.login.config", "com.splwg.ejb.service.management.ABCDJMXLoginModule");
        connectorServer = JMXConnectorServerFactory.newJMXConnectorServer(jmxServiceURL, env, mBeanServer);Any ideas on why this happens ? For sure, i am also not coming into the ABCDJMXLoginModule class - I have some print statements there and none of them get printed. Any sort of ideas and solutions are appreciated. I tried with the property "com.sun.management.jmxremote.login.config" too. I was expecting that mentioning the property in the environment and passing it to the JMXCOnnectorServer would do all the trick.
    Am i missing something ?

    Hello dcloko_BR,
    I downloaded and installed Lenovo´s The Lenovo Solution Center and now the solution center starts after pressing the blue button. Perhaps give it a try.
    Edit: Upps sorry, only newer models are supported according to the readme.txt.
    Best regards
    Andreas
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • How to make the messages from ONE contact only sil...

    Hello,
    is there any way, even with paid 3rd party software, to make the messages that come only from one contact silent? That means that i want to have the profil to outdoor or general or whatever, when people call me or send me messages the phone to ring, when the contact X will call me to ring, but when this particular contact X send me messages the phone to be silent.
    I have the nokia E6-00

    http://www.apple.com/feedback/iphone.html

  • How to make the Access Gate SDK work with Web Gate

    When we want control the display of one area in one page, we can define this area as one resource then control the access of it. But when the user has been authenticated in the application, how can we get the user session and then call Access Gate SDK to check if the user is authorized? The following is one utility class to archive it.
    * $Id: CreateUserAction.java,v 1.1 2005/10/11 23:19:34 jason Exp $
    * $Revision: 1.1 $
    * $Date: 2005/10/11 23:19:34 $
    * Copyright (C) 1972 - 2005, Oracle Co. All Rights Reserved
    * The program(s) herein may be used and/or copied only with
    * the written permission of Oracle Co. or in accordance with
    * the terms and conditions stipulated in the agreement/contract
    * under which the program(s) have been supplied.
    package oblix.view;
    import com.oblix.access.ObAccessException;
    import com.oblix.access.ObConfig;
    import com.oblix.access.ObResourceRequest;
    import com.oblix.access.ObUserSession;
    import javax.servlet.http.Cookie;
    import javax.servlet.http.HttpServletRequest;
    * @author zhoujian
    public class OblixUtil {
    private static String ObSSOCookie = "ObSSOCookie";
    private OblixUtil() {
    * Check if the user is Authorized
    * @param request
    * @param rescourceUrl
    * @return
    public static boolean isAuthorized(HttpServletRequest request,
    String rescourceUrl) {
    return isAuthorized(request, "http", rescourceUrl, "GET");
    * Check if the user is Authorized
    * @param request
    * @param resourceType
    * @param rescourceUrl
    * @param resourceMethod
    * @return
    private static boolean isAuthorized(HttpServletRequest request,
    String resourceType, String rescourceUrl, String resourceMethod) {
    try {
    ObConfig.initialize();
    ObResourceRequest resource = new ObResourceRequest(resourceType,
    rescourceUrl, resourceMethod);
    ObUserSession session = getObUserSession(request);
    return session.isAuthorized(resource);
    } catch (ObAccessException oe) {
    oe.printStackTrace();
    ObConfig.shutdown();
    return false;
    * Get the Oblix user session from the request.
    * @param request
    * @return
    * @throws ObAccessException
    private static ObUserSession getObUserSession(HttpServletRequest request)
    throws ObAccessException {
    String token = getCookieValueByName(request.getCookies(), ObSSOCookie);
    if (token != null) {
    return new ObUserSession(token);
    return null;
    private static String getCookieValueByName(Cookie[] cookies, String name) {
    for (int i = 0; i < cookies.length; i++) {
    if (cookies[i].getName().equalsIgnoreCase(name)) {
    return cookies[i].getValue();
    return null;
    }

    Couple of options. You seem have to taken the Access Gate based approach. I will throw this in any way and you can make a call which one you want to use.
    If its a web application you can control authorization based on Resource by defining policy in the Access Manager.
    You mentioned aout display of one area in one page. That should be driven off of User attribute or custom logic. If it is driven off of User attribute then you can return header variable and you can check in the code as opposed to writing custom access gate.
    Now if you do want to write custom access gate when the resource is already protected by a Web gate,
    you can get the ObSSOCookie from the users browser session.
    You can pass the URL to the IsAuthorized method and call.
    Now here you have to install the Access Server SDK on the server, create custom access gate and then write the code and deploy it on that server.
    THanks
    Ram

  • How to make the Sony HDR-HC3 work w/ you Mac.

    So I bought this amazing camera yesterday only to find out that true to form, Sony does NOT include ANY cables to transfer video from the tape to a computer (windows or Mac). They only supply a usb cable which only transfers pics from the memory stick.
    It does work! NO you don't have to do anything special to the settings as I've read in other posts. All you need to do is go to your local electronics store and buy a 6 to 4 pin (Firewire to iLink (Ieee) cable. The iLink port on your camera is actually at the front of your camera next to the lens (there's a hard to see cover).
    Open iMovieHD plug in the firewire/iLink cable. iMovie will instantly recognize your camera. If you have it camera mode, it will record. If it's in VCR mode, it will import the video.
    Once the video is imported. SAVE your movie immediately because as soon as you do anything, it crashes. Open iMovie back up and the movie is there, edit, play, etc.
    However I'm getting FinalCut tomorrow. iMovieHD just isn't that great of a program after all.

    I have the MSI DVD DR-8A and i've already burnt over a dozen HD-burn CDs without any problem  
    My only road block was to find how to use it with nero (it is presented as a different type of disk), but after i read nero doc and chose the right option, it has been flying. I'll report on my media later (i dont have them here).
    Edit: I've used
     - FujiFilm CDR 80minutes 24x
     - Memorex CDR 80 mins 48x
    No problem with either, burnt at the maximum 24x HD burn speed.
    My only gripe with HD burn is that it does not allow any overburning. Not a bit over the 1400Meg limit. not a big problem, though.
    Also, be cautious on WHAT you burn. CD are not a very good archival method. They can degrade quite fast and i would bet that HD-burn, being more precise, is more sensitive to those degradations too.

  • How to Make the Win7 Enterprise ISO work with Boot Camp?

    Hey...
    So I've acquired a new MBA. I didn't really want to considering all the issues out there (of which so far the volume fluctuation issues applies to me as well), but on Friday I need to bring some kind of laptop with me on a trip to record a song for a wedding next month. And for that, to make it worse, I need Winblows.
    So I got the Windows 7 Enterprise evaluation ISO. I let Boot Camp modify it and write it to a USB stick.
    But when I boot into the thing, I never get to actually install Windows, because I get "Install Windows": "Windows Setup encountered an internal error while loading or searching for an unattend answer file."
    What to do??!?!!

    Hmmm... That's strange!
    Seems there are some differences between DVDs for Windows 7 that the Apple tool doesn't know how to handle?
    The image I used to install with was the "7600.16385.090713-1255_x64fre_client_en-us_OEM_Ultimate-GRMCULXFREO_EN_DVD.iso " one — I believe I downloaded this from Microsoft at some point when they had it up for developer trials or something?
    The MD5 sum of that image is dad9f7a0b4d5d928a6a67ba6cd896350. You can check yours in Terminal by writing "md5 <path to your image file>".
    Perhaps if yours is different, you can find that other image online somewhere.
    HTH

Maybe you are looking for

  • Best Practice for calling CFC

    Hi, In a web application, if I need to call a CFC method from a different CFC, what would be considered as the best way of doing it? For example, let's say I have two components: Customer and Product.  From a method functionA in Customer, I would lik

  • LAP 1142N "Radio disabled due to PoE" after upgrade to 7.6.120

    Recently, we upgraded our 5508 wireless controllers from 7.4.110.0 to 7.6.120.0. One AP (AIR-LAP1142N-E-K9) doesn't work now. Both radios are stuck in state 'reset': AP#sh int dot11Radio 0 | inc Dot11Radio0 Dot11Radio0 is reset, line protocol is down

  • Urgent!!! select methods problem!!!

    hi,all dose anybody have encounter such problem : if the xml nodes have prefix that the select methods can not work as well, the select result is null,but the xml nodes do not have prefix that the result will be right. i use the oracle xdk10.0 ,and p

  • IChat will not launch from my brand new iMac - What do i need to do?

    Just purchased a brand new iMac 24". Really nice machine except that iChat will not launch. I click on the icon but it just bounces once and does nothing. Any ideas what i need to do please?

  • Bookmarks/History not being kept in between sessions

    When I bookmark a new site, most of the time it doesn't appear in my bookmarks the next time I start Firefox. Also, the history of my browsing doesn't show any of the sites I had visited during the previous few hours. This doesn't happen every single