Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7530359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:53:25+00:00 2026-05-30T04:53:25+00:00

I am creating an usercontrol contains a Tao.Platform.Windows.SimpleOpenGlControl. In my control’s constructor, I have

  • 0

I am creating an usercontrol contains a “Tao.Platform.Windows.SimpleOpenGlControl”.
In my control’s constructor, I have

{
    InitializeComponent();
    simpleOpenGlControl1.InitializeContexts();
}

My problem:
When I use the control on a “Windows Forms Application” it’s ok, but if I put the computer at hibernate or sleep mode, when visual studio is open and form that contains the control, is in design mode, the next time I turn it on this error comes up:

Fatal Error
can not activate the gl rendering context

and visual studio is not responding!
What’s wrong here? I am doing something wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:53:27+00:00Added an answer on May 30, 2026 at 4:53 am

    I solved my problem in this way:
    In control’s InitializeComponent(); I removed simpleOpenGlControl1 Initialization and then in control’s Load() function, I have

    isDesignMode = LicenseManager.UsageMode == LicenseUsageMode.Designtime;
    if (!isDesignMode)
    {
        // init simpleOpenGlControl1
    }
    

    Now when my control is used in a project, there is no simpleOpenGlControl1 in design mode to make problem!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a UserControl for a series of controls shared by several windows.
I am creating a Windows forms user control. This control has a textbox and
I'm creating a usercontrol that will have a series of LinkButtons. I've declared all
Anyone faced a problem while creating a UserControl in a library then drop it
I have UserControl that holds Infragistics Graph control. On the TreeView sub node's right
I am creating a User Control where I have a property called Items. Items
I'm creating usercontrol. This control use javascript <script src='js/my.js' type='text/javascript'></script> My web directory location
In VS2010, targeting Framework 4.0, I have a UserControl which contains a TableLayoutPanel with
I'm creating a custom control derived from UserControl that I would like to set
I have a user control that is pretty basic. It contains several TextBox controls,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.