Is it possible to create a custom control class and insert its instance in a form?

I have several controls that will work togheter and in a similar way in several forms.
For example, a GroupOption with two ButtonOptions. Clicking on one button option the frame willl  became higher and a TextBox will appear; clicking on the other the TextBox will disappear and the frame will shrink again.
I need them in different size or few other propieties but the basic funcionality are the same.
I was thinking to create a Class with all the built in Controls and the relevant methods and propieties to keep my code clearer, simpler and reusable.
But I don't know if my idea viable.
After creating a simpler version of the class; I was trying to put it at work in a test form but I could not find the way to insert it.
I've only find a Application.CreateControl with a required parameter
ControlType which ranges only over built in controls not custom one.
I'm working in VBA with Access 2007 and later.
Thanks for your advice.

That is not really practical with Access. For example CreateControl does not work with compiled applications, which is how you should deploy them. Also the level of modularization you desire just is not available. Maybe a subform would come close to this,
but I would HATE to work on one of your apps if you build each form with a collection of subforms.
While you can and should re-use code using modules or class modules, not so much for UI elements. More advanced development environments like WPF can do this.
-Tom. Microsoft Access MVP

Similar Messages

  • Is it possible to create a customized TV schedule and have it e-mailed to oneself

    I don't subscribe all channels, of course, but I do have 3-month access
    to some movie channels.
    Is it possible to create a sort of customized daily grid (program guide) of the premium channels to which I have
    access by specifying the channels and have it e-mailed to me daily?
    (As far as I know Verizon doesn't publish a program guide)

    I am not aware of any capability to do what you want. Interesting idea though.....
    What I do when they have a free preview of some channels is put them into Favorites 2 on the STB; since I don't normally use a Favorites 2, when I want to watch one of those channels, or surf them, all I have to do is switch the Guide to display Favorites 2 and take a look. And when the free preview is over, it only takes a few button pushes to go into the Menu on the STB and delete the entire contents of Favorites 2.
    Not what you asked for, but if you don't normally use your Favorites 2 for anything it might help a little.
    Justin
    Verizon FiOS TV, Internet, and phone
    QIP6416-P1, IMG 1.8, Build 02.54
    Keller, TX 76248

  • Is it possible to create web services for classes and bol objects?

    i am new to crm web channel,can any one  please ,help me....
    thank u in advance,
    kiran.

    Hi Kiran,
    Here, when you are talking about classes and BOL objects together, I assume you are talking about the BOL layer for CRM. If that is the case, and you have no dependency on WCEM for these objects, I would suggest you use the NW gateway to expose Odata web services from the CRM box itself. If you would like to expose the Odata web services from WCEM, please have a look at Ch 7 Dev & Extension Guide available in help.sap.com/wec301.
    Good luck!
    Regards
    Pranshu

  • How do you Create a Custom Control

    Is it possible to create a custom control under LabWindows ?
    I want to creat a control that represents a mobile phone.
    It will be a rectangle with about 4 lines of text displayed in it witch needs to be programmatically entered and the back ground colour needs to be able to be change to represent different states also programmatically.

    I don't know if it's possible to create custom controls under CVI. I can suggest you some hint to help solve your problem.
    As for the second part of your question, you could use a picture ring with different pictures (with different background color) associated with the different states in your program. When program state changes you will only have to SetCtrlVal (panel, control, state) to have the picture ring display the desired colour. I guess this is a simple indicator, so you can put Control mode to indicator and hide inc/dec arrow in order to exclude operator's managing of the control.
    As a workaround about the four line of text to be displayed, what about putting on top of the picture ring a simple text box or text message with transparent backgroud col
    our and frame colour? At the cost of managing two different controls, the matter should work...
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How do you create a custom control which has several buttons?

    Can you do this in LabView?
    I want to make it so that one button will disable or switch the value/state of another. (Think minesweeper). I can create the logic in a subVI, but only if I have access to the property nodes of each of the buttons.
    I want the front panel of the main VI to have the buttons on it, and I don't want the buttons to appear in a separate window.
    If I place all of the buttons individually on the front panel of the main VI and pass their references to the subVI, I end up with tons and tons of variables in the main VI block diagram. It works but is very very messy.
    I tried to create a custom control with a cluster of buttons in it, but I can't seem to get at the individual property nodes. Is it possible?
    (*sighs* I wanna Class!)
    Thanks in advance
    jen

    Hi Jen
    Yes it is possible to get the individual property nodes of controls that are in a cluster.
    You have a property Controls[] in the property node of the cluster, so you get an array of control references. You just have to extract the single references to access the controls.
    I attached a screen-shot, which shows this possibility.
    Hope it helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    Cluster.jpg ‏11 KB

  • How can i create a custom control, indicator

    This is FredFred,
    How can i create a custom control switch with 3 or more options,
    OFF
    ON
    STANDBY
    Other than rocker, slide, or toggle switch, are there other switches that we can use, hence, the question of creating a custom switch.
    Also, is there a way to create an indicator with two options. Enclosed is a jpeg with an example of what i need
    Thanks in Advance
    Attachments:
    sample switches_displays.bmp ‏720 KB

    Hello.
    Boolean controls can only have 2 possible values, true or false, and there is no way to add more values to them.
    If you need more values, then you must use a numeric control (or a string, but I tend to like numerics better, although strings could be just as useful).
    There are several types of numeric controls you could use to provide 3 or more options. Attached is a VI which shows a ring, a knob, and a slide each with 3 possible values. In your code, you would then perform different actions depending on the numeric value of your control.
    Hope this helps,
    Alejandro
    Attachments:
    NumericsWith3Options.vi ‏14 KB

  • Is it possible to create a customized survey with our organizations logo at the top?

    Is it possible to create a customized survey with our organizations logo at the top? I'm trying to create a survey for our members but instead of using a template we would like to use something simple with our logo included at the top.

    Just create a blank form and click Add Header at the top of the form page:

  • Is it possible to create a custom IDOC status?

    Is it possible to create a custom idoc status on table TEDS1?
    I have looked through customising and cannot seem to find a way to create a new idoc status.
    Has anybody done this?

    Hello Chester..
    hope this link will be helpful,
    Re: IDOC status
    *********Please reward points ,if found useful

  • Is it possible to create a custom photo layout when creating a photo book in iphoto?

    Is it possible to create a custom photo layout when creating a photobook in iphoto? How about adding text boxes?

    Yes and no
    You can not make a custom template nor can you modify one
    You can do a page in other software and then print to PDF using the send PDF to iPhoto option and place the resulting image as a full page photo - See Old Toad's tutorial No.19 for more information.
    LN

  • Is it possible to create a customer master with different address

    Hi Gurus,
    Is it possible to create a customer master with different address as we maintain in SAP CRM.
    Kindly help me onthis issue \
    Regards
    Kannan

    Hi Kannan,
    There are no multiple addresses but you can use multiple unloading ponts for the same address for the ship to Party.
    So when you create a Sales order the system will give a pop up with the unloading points allowing you to select the desired one.
    I hope I understand your query correctly.
    Regards
    Yogesh

  • Is it possible to create a custom E-mail Notification?

    Dear all,
    We have a requirement where the customer would like an additional email notification in the RFx process which is not available in the E-Sourcing system.
    What they want to do is send an email to Vendors who did not get awarded in the RFx Process and let them know.
    Is it possible to create a custom email notification in any way, perhaps using the javax.mail classes?
    import javax.mail.*;
    import javax.mail.internet.*;
    If anyone has prior experience with this, please let me know. I would appreciate pointers on this.
    Thanks & Regards,
    Reshma

    Hi Thashin,
    I understand you have done custom jar email notification for Transnet. I need to do this now for another component, Task Escalation. please contact me regarding correct way to do this. I have developed the custom java code to access Task info. What I need to know is that, does e-sourcing use its own queing mechanism to send out emails, if so what packages in IAPI does this use, or does it use normal java mail api to send out mails?
    Assistance will be highly appreciated.
    Thanks
    Tebogo

  • Possible to create a custom renderer for rendering standard component ?

    This is in context for creating dynamic Data tables. Is it possible to create a custom Renderer for rendering component (standard) without creating a custom component?
    namanc

    Let's assume you want to create a custom renderer which will be used to render the error-messages (the h:messages tag). The component-family in this case is: javax.faces.Messages, the renderer-type javax.faces.Messages.
    Therefor in your application's faces-config.xml add this renderer-statement (inside a render-kit, obviuosly):
    <faces-config>
      <!-- other stuff like components, managed beans, navigation-rules,... -->
      <render-kit>
        <renderer>
          <component-family>javax.faces.Messages</component-family>
          <renderer-type>javax.faces.Messages</renderer-type>
          <renderer-class>my.very.special.MessagesRenderer</renderer-class>
        </renderer>
      </render-kit>
      <!-- other renderers... -->
    </faces-config>The code for MessagesRenderer is very dependent on your needs, therefor I will not post something here. Basically you need to extend javax.faces.render.Renderer. For help in that camp, surf to the online tutorials or get yourself a book (I learned a lot from Kito Mann's "JSF in Action"). Additionally grab the source for Sun's RI AND Myfaces and dig into that java-code. There is a huge learning potential looking at that source-material.
    hth
    Alexander

  • Is it possible to create a custom web app for online quotes?

    is it possible to create a custom web app for online quotes?
    Any advise greatly appreciated.

    Hi there,
    You really need to expand a lot more on what you want to achieve. That really is nothing to go on there .

  • I need create a custom control for visualization HTML

    Hi guys,
      I need create a custom control for HTML files visualization on SAPGUI JAVA. I created a sample program and perfectly run on SAPGUI Windows.
    Thanks.
    Regards.
    Jose Antonio Campos.

    Hi,
    Just as a quick start
    http://gumbo.flashhub.net/sizer/  (view source enabled).
    this uses a skin to make a titlewindow resizable, its not about the skin as much as giving you a starting point for resizing code.
    if you look into the skin you will see these functions
    protected function sizer_mouseDownHandler(event:MouseEvent):void
    OldX=event.stageX;
    OldY=event.stageY;
    systemManager.addEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.addEventListener(MouseEvent.MOUSE_UP,endResize);
    protected function endResize(event:MouseEvent):void
    systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.removeEventListener(MouseEvent.MOUSE_UP,endResize);
    private function startResize(event:MouseEvent): void
    hostComponent.width -= OldX-event.stageX;
    hostComponent.height -= OldY-event.stageY;
    OldX=event.stageX;
    OldY=event.stageY;
    The idea is to have a hit area on your custom component (a corner, or all corners). You capture the mouseposition when you mousedown then in the mouse move eventlistener you update the object size with the difference between current X and Y from initial X and Y.
    Hope this gets you started.
    David

  • Is it possible to create a single texbox? and how to delete a button on a form? please asap, badly n

    Is it possible to create a single texbox? and how to delete a button on a form? please asap, badly needed it right now. thx -regards gustavo

    Hello Gustavo,
    You can create a single textbox using the textbox option here (This is for you to enter text - not for the visitor): http://jingsite.businesscatalyst.com/jing/2013-09-30_2212.png
    If you want to create a textbox for the visitors to enter text, then you need to enter a form, and you can delete the "message" field from the "simple contact" form, but not the name and the email fields (those are mandatory and can't be deleted).
    You may want to check external forms in case you want to have the form rather customized, to check if you can have forms with single textbox. An example would be "Jotform".
    Hope this helps.
    Cheers
    Parikshit

Maybe you are looking for

  • Driver Issue on Vista x32

    Since I have upgraded to Vista from XP I am having trouble accessing my phone. My phone model is a 7250i and I connected through CA-42 I downloaded the new Nokia PC Suite which is compatible with Windows Vista. I followed instructions to install PC S

  • Check value once swf is loaded

    There are 50 movies loaded sequentially. From Q1 thru Q29 I want to attach a particular title (mc) to the main movie and then for Q30 thru Q40 another and so on. The file is on an Learning Management Sytem so I'm using SCORM code. A movie is loaded i

  • Workflow not sending email to first reviewer but sends to everyone else

    I have a criteria workflow that is working fine except for one small problem. The first person in the workflow does not get notified. If they login and approve, the content continues through the workflow and everyone else is notified. I can even reje

  • What are the new 10g features that are heavily used by SAP products?

    Please help list them.  Because we think that we have not exploered 10g to what we should have explored. Thanks!

  • IPhoto and dropbox conflict

    I have saved my photo collections in iPhoto for a few years.  I have replaced my Macbook Pro twice and every time I simply migrate everything without a problem.  Thus, my iPhoto Library contained photos from several years (6 or 8).  Recently my wife'