• 0

[C#] Label beside TabControl


Question

Hi all,

I am trying to place a label beside a tab control like the image(sample) below.

I placed the label but the label goes behind the tab control. These are the methods i tried to bring the control front but it is not getting displayed.

none worked


this.labelControl2.BringToFront();
[/CODE]

then i tried to invalidate for a repaint

[CODE]
this.labelControl2.Invalidate();
[/CODE]

I also tried to set the child index so that the label is the first control and will be displayed above all control like this

[CODE]
Parent.Controls[0].Controls[0].Controls[0].Controls.SetChildIndex(labelControl2, 0);
[/CODE]

A click on a hyperlink in one of the tab should invoke the label and display the name of the link on the label.

That's my requirement but i couldn't get the label displayed.

even tried to repaint the label manually.I am using dev express tabControl just an fyi.

post-312866-0-52615100-1328300508.jpg

Link to comment
https://www.neowin.net/forum/topic/1055880-c-label-beside-tabcontrol/
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I just did this myself... I added the Label control only after having added the TabControl. You can lay them on the canvas respectively; by default, they both render simultaneously as long as the tabs do not sit on top of the label.

EDIT: I now realize you're using the DevExpress TabControl. Why? That's the real problem, because it's basically a custom control. Try using the native controls first. That should have been highlighted FIRST as it's a separate control than the MSFT ones.

  • 0

Could you confirm whether thats WPF or WinForms.

Thanks

GE

Its winform build with devxpress controls.

I just did this myself... I added the Label control only after having added the TabControl. You can lay them on the canvas respectively; by default, they both render simultaneously as long as the tabs do not sit on top of the label.

EDIT: I now realize you're using the DevExpress TabControl. Why? That's the real problem, because it's basically a custom control. Try using the native controls first. That should have been highlighted FIRST as it's a separate control than the MSFT ones.

I cannot remove the devxpress tabcontrol to use native tab control. those module were already in there and i am trying to add some functionality to it.

The whole application is build on devexpress and has been here for few years now so removing them is not an option.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Well I've done a grand total of nothing, and it now clocks between 2010mhz and 1995mhz (stock is 1710mhz) and hovers around 80c, warmer than it used to, but tolerable clocks seem to have returned. Thanks for all the advice on this thread. Will review the evidence and make a choice.
    • Audacious 4.6.1 by Razvan Serea Audacious is a lightweight, open-source audio player that emphasizes simplicity, performance, and sound quality. Designed for Linux, Windows, and macOS, it supports a wide range of audio formats, internet radio streaming, and playlist management. Users can customize the interface with Winamp-style skins or modern themes, making it flexible for different preferences. Audacious also includes an equalizer, advanced audio effects, and a plugin system for extending functionality. Its low resource usage makes it especially suitable for older computers or users who value efficiency without sacrificing playback quality. Audacious key features: High audio quality – delivers clean, gapless playback with minimal distortion. Wide format support – plays MP3, FLAC, Ogg Vorbis, AAC, WAV, WMA, and more. Internet radio streaming – supports Shoutcast, Icecast, and other online streams. Winamp skin support – classic, nostalgic look for users who prefer the old-school style. Modern GTK-based interface – clean, simple UI with a more modern feel. Customizable themes – change appearance through skins and themes. Advanced playlist management – organize, save, and edit playlists with ease. Equalizer – fine-tune audio output with a built-in graphical equalizer. Audio effects – built-in DSP options like crossfade, replay gain, and more. Plugin system – extend functionality with additional components. File metadata support – displays and organizes music based on tags. Drag-and-drop support – quickly add songs or playlists. Global hotkey support – control playback without switching windows. Bit-perfect output modes – bypass system mixers for pure audio output. ReplayGain support – normalizes track loudness automatically. Cue sheet support – play entire albums from a single audio file with .cue. MPRIS2 integration – integrates with Linux desktop environments for media controls. Advanced resampling options – adjust playback quality with different resampler settings. Gapless playback – seamless transition between tracks encoded properly. Crossfade plugin – blend one song into the next smoothly. Last.fm scrobbling plugin – track listening history online. Remote control support – control Audacious via command-line or scripts. Lyrics plugin – display song lyrics if available. Alarm / timer plugin – start or stop playback at set times. SOX resampler plugin – high-quality resampling for audiophiles. Spectrum analyzer / visualization plugins – visual feedback while playing music. Headphone crossfeed effect – simulates speaker listening for headphones. Customizable buffer size – tweak latency and playback smoothness. Audacious 4.6.1 changelog: Use XDG cache dir to store temporary files (#1817) Accept embedded lyrics in more cases (#1818) Bump .so and plugin ABI versions retrospectively (#1819) Include Georgian translation (#1820) Fix build on systems using musl instead of glibc (#1823) Download: Audacious 4.6.1 | 48.2 MB (Open Source) Download: Portable Audacious 4.6.1 | 69.8 MB View: Audacious Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I really wonder if this has to do with the built in VPN or "private DNS" of browsers that trip up legal requirements like cookie consent and Cloudflare (to avoid all the botnet attacks we get). And BTW some botnets still manage to get past Cloudflare, we are constantly having to tweak it to block malicious traffic that ultimately cause a DDoS.
  • Recent Achievements

    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      +Edouard
      197
    3. 3
      PsYcHoKiLLa
      142
    4. 4
      ATLien_0
      89
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!