How do you make a CustomUserControl to a movable and resizable one.

I have made an application where i am thinking i can implement a re-sizable and movable Usercontrol(Image) i tried the following codes but the code has to be also in the main form which will make re-sizing in runtime confusing. I just want to implement the
codes inside the custom UserControl.
Thanks in advance!

Sorry, My previous question was pretty unclear. I have made my own Usercontrol in MS blend4 and i also added dependency property to it as follows
IMAGECTRL.VB
Public Property Propx As Integer
Get
Return GetValue(PropxProperty)
End Get
Set(ByVal value As Integer)
SetValue(PropxProperty, value)
End Set
End Property
Public Shared PropxProperty As DependencyProperty = _
DependencyProperty.Register("Propx", _
GetType(Integer), GetType(New_Window), _
New PropertyMetadata(Nothing))
Public Property Propy As Integer
Get
Return GetValue(PropyProperty)
End Get
Set(ByVal value As Integer)
SetValue(PropyProperty, value)
End Set
End Property
Public Shared PropyProperty As DependencyProperty = _
DependencyProperty.Register("Propy", _
GetType(Integer), GetType(New_Window), _
New PropertyMetadata(Nothing))
Public Property imgsrc As String
Get
Return GetValue(imgsrcProperty)
End Get
Set(ByVal value As String)
SetValue(imgsrcProperty, value)
End Set
End Property
Public Shared imgsrcProperty As DependencyProperty = _
DependencyProperty.Register("imgsrc", _
GetType(String), GetType(New_Window), _
New PropertyMetadata(Nothing))
I wanted to bind these dependency property to the elements of the "MainWindow.vb" but i have no clue how to. Since i am a beginner in the vb.net realm :)
Hello,
It seems that this is another issue in this thread, I would recommend you separate it in another thread to get help.
Is there any update about your original issue?
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How do you make an array of image icons and then call them?

    How do you make an array of image icons and then call them, i have searched all over the internet for making an array of icons, but i have
    found nothing. Below is my attempt at making an array of icons, but i cant seem to make it work. Basically, i want the image to match the value of the roll of the dice (rollVal)
    Any help would be greatly appreciated, some code or link to tuturial, ect.
    /** DiceRoller.java
    * Roll, print, Gui
    import javax.swing.*;
    public class DiceRoller extends JFrame
         private ImageIcon[] image  ;
         public String[] images = { "empty", "dice1.jpg",
                   "dice2.jpg", "dice3.jpg", "dice4.jpg",
                   "dice5.jpg", "dice6.jpg" };
         public Dice die;
         private int rollVal;
         public int rollNum;
         private JLabel j1;
         public DiceRoller(){
              j1= new JLabel("");
           die =new Dice();
           int rollVal;
           rollVal = die.roll();     
           image = new  ImageIcon[images.length];
         for(int i = 0; i < images.length; i++){
          image[i] = new ImageIcon(images);
         if (image!=null){
              j1.setIcon(image[rollVal]);
         System.out.println("Roll = "+die.roll());

    Demo:
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class IconExample {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    launch();
        static void launch() {
            try {
                Icon[] icons = new Icon[6];
                for(int i=0; i<icons.length; ++i) {
                    String url = "http://www.eureka-puzzle.be/cast/images/dice" + (i + 1) + ".jpg";
                    icons[i] = new ImageIcon(new URL(url));
                display(icons);
            } catch (MalformedURLException e) {
                throw new RuntimeException(e);
        static void display(Icon[] icons) {
            JPanel cp = new JPanel();
            for(Icon icon : icons) {
                cp.add(new JLabel(icon));
            JFrame f = new JFrame();
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    I don't know which old version you're referring to but iPhoto 6's,  7's and 8's retouch tool works exactly the same as iPhoto 9's. The color of the enhance tool's area while applying is a light brown color but the retouch works on any color using the surrounding colors as a basis.
    During retouching:
    After retouching:
    OT

  • How do you make all outgoing mail on iPhone come from one default address?

    I have multiple Apple devices which include laptop, iPad, iPhone 4, iPhone 4s.  I use several email accounts for my business.  How do you make the default outgoing email address one the iPhones one email address like you can on the laptop?  I want the outgoing email address to be the same on all devices.

    Thank you.  I think I got it for the 4 but not for the 4S.  In mail, contacts, calendars, do you choose default account?  Also, there does not appear to be a choice like this for the icloud.  How do you change the default on it?  The best I can see is icloud to account to advanced to mail to icloud account information.  On that screen there is a box that says allow sending from and the only choices you have are the icloud account and me account.  I do not see how to add another account if that is the right section.  I don't want the icloud or the me to be a return address.
    Thanks in advance.

  • How do you make a spreadsheet or cells secure and private?

    In using numbers, I want to make a spreadsheet secure (limited access). How do you do this ..... Or how do you make the cells within it secure?

    Password protect the file (although there's some doubt as to the strength of that protection).
    save the file to an encrypted Disk Image. See Mac Help in the Finder's Help menu for details.
    There's no way to fully protect the cells of an open document. Numbers provides for locking "objects," but cells themselves are not objects. Tables are, objects, so you can lock a complete table. That prevents changes to the table until it is unlocked, but does not prevent changes to other tables in the document, nor does it prevent any used from unlocking the table then editing it.
    Jerry has offered a technique which may be used to guard against inadvertent changes to individual cells. You can read it in his responses in Hold Table Position in a Sheet.
    Regards,
    Barry

  • How do you make it print first page first and not the last page first?

    I have a HP Officejet Pro 8600. How do I make the first page print first and not the last page printing first?

    Hi,
    From the application used to print open the print dialog and click Oroperties or Preferences to access the Printing Preferences screen.
    From the Layout tab set Page Order as Back to Front, then the first page will be printed first.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How do you make a motion tween, mask effect and shape tween, with a flash website?

    More of less, I will have three seperate pages for the motion tween, mask effect and shape tween... would you make the seperately, in a different scene, as a symbol or on the same scene with the website.

    It's not clear what you are after since you start talking about separate pages for the three things, and then ask about how best to put them together.  If they are going to be separate they can't be together.
    If your intention is to have these three things in one Flash file, ut as separate parts of it, then I would have each within a symbol and have each symbol within the same scene (I don't use multiple scenes).

  • How do you make connection password use single username and password in P/S

    Hi
    I have installed OBIEE as a standalone on a Windows 2003 server using OC4J and AUTHENTICATION_TYPE = BYPASS_NQS.
    I have created a repository using an ODBC connection to a Netezza database. The implementation we have is that we use a single username and password (readonly) to the database.
    I have created the physical, business and presentation layers and the repository is consistent and loadas up into the Presentation Server.
    When I login into presentation server as say "Administrator", the PS passes the username/password of "Administrator" instead of the username and password setup in the connection pool.
    The error is;
    -------------------- Query Status: Query Failed: [nQSError: 16001] ODBC error state: HY000 code: 108 message: Password authentication failed for user 'ADMINISTRATOR'.
    When I create a user with the same username and password as the one used in the connection pool, the requests work. Although thisd lets me work at the moment, it is not a viable solution going forward.
    Please can you advise what I need to setup for this to work correctly for me ie., make PS substitute the correct username password when connecting to the ODBC defined in the connection pool?
    Thanks in advance.
    Danish.

    Apologies if I've misunderstood, but are you trying to implement anything than standard practise, namely:
    1) Using the OBIEE security model to authenticate and log in (i.e. when you log in to Answers you are entering a username as defined in the RPD)
    2) Using a fixed username & password as defined on the database to authenticate & authorise when you read data for your reports?
    If you use BYPASS_NQS then BI Server will take your login details when you login to Answers (Presentation Server) and pass them through to the database and see if they're valid. This is what's happening when you got the error that you initially posted. With setting at BYPASS_NQS try logging into Answers with the database username&password, I bet it will work.
    If you use NQS (the default) then it checks the Answers login against users defined in the RPD, so the reason you couldn't login when you changed it to NQS is that the user/pw you logged in with didn't match what's defined in the RPD.
    Try this:
    1. Create a new user & pw in the RPD, for argument's sake call it TestRPDUser with the same pw
    2. Set authentication to NQS and restart you BI Server
    3. Log in to Answers as TestRPDUser - does it work?

  • How do you make the whites of the eyes and teeth brighter?

    Would someone be able to offer advice on making the "whites" of the eyes and teeth brighter or whiter? Thanks!

    There are a few videos done on this by the Kelby group. Basically, Create a levels adjustment layer, and move the right slider to the left, which would make more of the image go towards white.
    Then create a mask for that adjustment layer. Use the selection tools to create a selection of the white areas of the eyes. When you are done, click on icon at the bottom of the layers panel that looks like a circle inside of a square. That  will convert your selection into a mask. Make sure the adjustment level is selected before clicking the mask icon, as that tells the layers panel which layer to apply the mask to.
    If for some reason the mask is backwards, the eyes are darker than the rest of the person. You can click on the mask thumbnail that was just created on the adjustment layer to make it active, then invert the mask. Invert can be found in the select menu .

  • How do you make 2 buttons that have different link in one form?

    <form name="form1" method="post" action="">
    <input name="cmdBtn" type="submit" id="cmdBtn" value="one">
    <input name="cmdBtn" type="submit" id="cmdBtn" value="two">
    </form>
    i want the link of button "one" to have different link with button "two". How can i do it using jsp?
    thanks

    i posed this question to the javascript forum but no reply, so i just post it here if in case there are jsp users here who knows the answer to my question. hope u guys understand. thanks
    I have 2 jsp files namely page1.jsp and page2.jsp.
    page1.jsp
    <%@ page contentType="text/html; charset=" language="java" import="java.sql.*" errorPage="" %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    function MM_openBrWindow(theURL,winName,features)
    { //v2.0
    window.open(theURL,winName,features);
    </script>
    </head>
    <body>
    <form name="form1" method="post" action="">
    <p>
    <input name="txtValue" type="text" id="txtValue" value="i want this value to be passed when i click the 'open new window' button" size="80">
    </p>
    <p>
    <input type="submit" name="Submit" onMouseDown="MM_openBrWindow('page2.jsp','','scrollbars=Yes,width=500,height=500')" style="TEXT-DECORATION:none" value="Open New Window">
    </p>
    </form>
    </body>
    </html>
    page2.jsp
    <%@ page contentType="text/html; charset=" language="java" import="java.sql.*" errorPage="" %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <%
    String value = request.getParameter("txtValue");
    %>
    <form name="form1" method="post" action="">
    <p> Value is <%=value%></p>
    </form>
    </body>
    </html>
    what the code does is it open a new window (page2.jsp) if you click the button in page1.jsp, my problem is, i can't pass the value of txtValue from page1.jsp to page2.jsp, How can i do it?
    thanks

  • How do you make all your icons on desktop and elsewhere show size etc?

    Hi,
    I can't remember how to show my disk size or how many items are in a folder. I have this feeling it's to do with Finder Preferences. You know how you have your hard drive listed and it will say 60GB in size or a folder in finder will say 14 items.
    S.

    Malcolm,
    Thanks, that's the tip I was trying to remember.
    S.

  • How do you make Mozilla listen to users and stop FFFFirefox Auto Updating despite being set to NOT auto update?

    I am spitting nails
    After all the STUPID problems outlined here
    https://support.mozilla.org/en-US/questions/999831?esab=a&s=&r=0&as=s
    I set Firefox to stop auto updating,
    Then the other day I installed a new user on my laptop, when they loaded Firefox it auto updated MY version of Firefox.
    Has NOTHING been learnt?
    STUPID STUPID STUPID STUPID STUPID
    So I have 2 questions
    How do you make Mozilla listen to users?
    and how do prevent what happened to me happening again?

    SuperSluether
    Not a millionth, you have only provided 150 answers and I doubt they were all this issue.
    If you don't like it, don't use it.
    If a business took this attitude they would soon be out of business
    Updates help KEEP YOU SAFE
    Sometimes, but in my experience FFirefox updates can really screw up your system, lose you data, mess up your user interface. I have run IT for one of the biggest intranets on the planet and we never allowed even Mictosoft updates until we did User Acceptance Testing and understood the impact of the upgrade. I am a grown up not a child, I have system where I test updates for performance, security and impact, I WILL DECIDE when I want to install it. If Mozilla wants to provide real security updates I would take them but if you look at the link in my OP you will see it said an update was security and it completely messed up.
    Updates add tons of great new features
    Actually with FFirefox in my experience they take more away than they add, things I did not ask them to take, they do not look at my config and leave my settings as they were and then tell me about new options, no they completely screw my productivity as it takes days to figure out how to undo the kwap they have added. Copying the AWFUL Chrome interface is not an improvement, Google has one of the worst UI's on the planet accross all their products.
    Firefox is designed to be customized PER USER, NOT CROSS-SYSTEM
    There are some things that benefit from being per user and some that are per machine, windows has group policies per machine and per user. My OP is telling Mozilla that this is another area where they have "designed" badly, I tell them this so that they improve it and in the vain hope that there is some config setting that will stop this nonsense.
    So SuperSluether you have not really helped, all you seem to say is FO if you do not like it. Good job you do not run a business. With that attitude probably best you do not contribute.

  • Hi Everyone, how do you make adjustments to many pics at once

    Hi Everyone, how do you make the same adjustment to many pics in one go? Tried select All, and then adjust, but that only does the original selected pic..

    First of all, make sure, tat the "Primary only" flag is not enabled. (Edit menu > Primary only).
    Then rotate, clip, keywords will be applied to all selected image versions.
    Only the adjustments applied from the Adjustment panel will still only be applied to the primary selection. But you can use the "Lift&Stamp" tool to transfer all adjustments from an edited image to all selected images at once.
    The "Lift&Stamp" tool to the left, the "primary Only" button to the right.
                     Keywords or ratings are applied only to one of the selected images - why?

  • How do you make a web browser?

    I would like to make a Web Browser of my own but how did you make FireFox?

    Read this:
    http://thepattysite.com/window_sizes1.cfm
    You don't want to try to launch your site to full screen,
    honest, as you'd
    drive your (potential) visitors away.
    Jo
    "Steve Zavodny" <[email protected]> wrote in
    message
    news:escrfa$s7$[email protected]..
    > How do you make a web browser launch your site to a
    specific size or even
    > full screen?
    > Thanks...

  • How do you make superscripts and mathematics in Preview's text annotation?

    When adding text annotations that include scientific notations, how do you make superscripts, e.g. "3.2 × 10^{-23}"?
    Searching Help for 'superscript' turns up nothing, suggesting the command does not exist, as it does under Baseline etc. in iWork. Please tell me this is not the case! If it is, has the situation been improved in the new operating system?
    A related issue: I wish to include other mathematics -- is there a way to include mathematics similar to LaTeX? Might Preview incorporate using latex code in the future, so I can easily type "\exp{-\lambda t}" etc and have the math appear?
    I'm adding text annotations to PDF lecture notes in Preview, basically filling in blanks the instructor has left so students will pay attention in class, and these annotations include superscripts; I wish to format properly.
    Thank you!

    Once you have the circle shape displayed, long press on the border of the circle. Once it is highlighted, drag horizontally or vertically. This should allow you to distort the circle into an ellipse (or the square into a rectangle).
    Hope that helps,
    Frank
    Sketch Engineering

Maybe you are looking for