---
title: "c# windows forms tab control"  
description: "c# windows forms tab control"  
author: "Anonymous User"  
published: 2013-09-24  
updated: 2013-09-24  
canonical: https://www.mindstick.com/forum/1510/c-sharp-windows-forms-tab-control  
category: "c#"  
tags: ["tab control", "c#", "mindstick", "c# windows forms", "c# tab control", "c# windows forms tab control"]  
reading_time: 1 minute  

---

# c# windows forms tab control

Can any one help me with a [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) for displaying vowels from a [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) entered in a [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) and text should be displayed in a lable ..

I used tab [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) for placing textbox and lable i place textbox in one tab and lable in another..

Ex if the text entered in text box is David

then if i [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) lable in another tab a [msg](https://yourviews.mindstick.com/story/3698/why-is-msg-sphere-so-famous-worldwide) should be displayed inside the lable Vowels are : a,i

plz help me with the code.

## Replies

### Reply by Pravesh Singh

Hi John,you can try this,

```
public static string ExtractVowels(string text){    // Note that this
won't find upper-case vowels...    var vowelArray =text.Where(c => "aeiou".Contains(c))                        
.ToArray();    // Upper-case it
if you want, of course.    return new string(vowelArray);}
```

call this method on Button click

label1.Text=ExtractVowels(textbox1.text);


---

Original Source: https://www.mindstick.com/forum/1510/c-sharp-windows-forms-tab-control

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
