| How to dynamic add controls (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi, Can anybody tell me how to add controls (dropdown list or textbox) to a form? Thanks in advance. dd |
|
| how to dynamically set BODY bgcolor? (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| How can I dynamically set the bgcolor for the BODY tag? I tried the following but it doesn't work: theBody.BgColor theBackgroundColor; ... body id "theBody" runat "server" Thanks, Edward Tanguay, edward@net language.com Now Reading: The Curve of Binding Energy http://www.net language.com/readingclub |
|
| How to email a datagrid (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| how to you email a datagrid as a html email message. this is what i have Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create MailMessage instance, set properties, and send Dim Mail As New MailMessage Dim sw As New System.IO.StringWriter Dim hw As New System.Web.UI.HtmlTextWriter(sw) Dim body As String 'Render DataGrid output as Html E... |
|
| How to evaluate the variable colvalue into the folllowing input text box (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| does anyone know how to evaluate the variable colvalue into the folllowing input text box it should read Dennis West input type "text" id "Author" value ' % " ColValue " % ' runat "server" size "30" style "BORDER LEFT COLOR: red; BORDER BOTTOM COLOR: red; FONT: 700 8pt verdana; COLOR: blue; BORDER TOP COLOR: red; BACKGROUND COLOR: white; BORDER RIGHT COLOR: red" NAME "Author" Dennis H. West West D... |
|
| How to execute operations on dynamic objects? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Dear friends, I've created a new label and a new Button on my form using the above code. Dim myLabel As Label myLabel New Label myLabel.ID "label1" myLabel.Text "Dynamic button test" myLabel.Attributes("style") "position:absolute;top:150px;left:100px" PlaceHolder1.Controls.Add(myLabel) Dim myButton As Button myButton New Button myButton.ID "Button1" myButton.Text "OK" myButton.Attributes("style") ... |
|
| How to fill DataSet using Async. Delegates (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.databinding |
| Hello. I have a Windows Forms application which consists of business classes and data classes partitioned like this: User Forms Business Object Data Object All of the classes are located on the same machine in separate assemblies such that the User layer only references the business layer, etc. The layers communicate using well defined Interfaces and pass types datasets between one another. This w... |
|
| How to find a MenuItem's name, or, there's no more Tag property (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have an application where I need to set certain menu items invisible based on a user privilege. We did a sinmlar thing in VB6 and used the menu item's tag property to assign an identifier to each menu entry, then used that identifier as an index into a collection populated at user login in order to determine the item's visibility. Now, for some reason there's no tag property for .NET MenuItems, ... |
|
| How to find control from Page_Error event ? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, I would like to show an error message in a user control when an exception is thrown. This message should be built in Page error or Application error event and i don't manage to reach a label contained in a user control from these events : "lbl error" is the ID of my label : private void Page Error(object sender, System.EventArgs e) { Exception objErr Server.GetLastError().GetBaseException()... |
|
| How to Fix Columns width? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hi all, I am facing some strange problem. I am creating a datagrid dynamically. i have set the width to the grid and to each column also(Sum of all columns widths is equals to grid width). I am doing paging on the grid. When ever i go to 2nd page the column widhts are changing. please give me some solution which will fix the width of the columns. This is urgent. Thanks in advance Anjan |
|
| how to generate a list a alphabet using csharp? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| greetings, i am just wondering if some expert here can either show me how to do this or point me to the right direction (url...) i want to use c# to generate a list of alphabet e.g. A B C ... AA AB AC AD ... AAB ... ZZZZY ... ZZZZZ any suggestion will be greatly appreciated. thank you one |
|
| How to get Auth_USER? (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| How can I get the traditional asp equivalent of Request.ServerVariables("AUTH USER") in ASP.NET using c#? I have tried the following code and it doesn't work: String s Request.ServerVariables[ "AUTH USER" ] ; This always comes in empty. I have made sure to disable anonymous access to the site, and the page. Any ideas? Am I accessing it incorrectly? Thanks for any help. Jim Wiesen Web Applications ... |
|
| How to get caller's "this"? (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| Given this code class A { void Foo() { B b new B(); b.Bar(); } } class B { void Bar() { ... } } In the body of the Bar() method, how can it get a reference to the instance of the "A" object that called it? I am not interested in the method information or type information of the object... I need a reference to the actual instance of "A". It must be possible with reflection or diagnostics, but I can... |
|
| How to get checkbox text in javascript? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi all, I have an asp:checkbox on a form, and i added onclick attribute to it. When the checkbox is clicked I want to add its text to a textbox. But I can't get its text. The checkbox is rendered in html separately, followed by the label for tag that's where the text is. But how to access it? Any help is appreciated. |
|
| How to get information form one Form to another (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| hi everybody. I'm developping windowsform application. From a specific form i want to open a new form on which i'm able to set colors, fonts, ... properties using commondialog objects (fontdialog, color dialog). As a result i want to provide to the calling form all properties which were set. I'm trying to do this : private void lblNotYet DoubleClick(object sender, System.EventArgs e) { Form1 f new... |
|
| How to get the data display value in Datagrid? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hi all My datagrid design Item no, Item name, Size 1 ABC S 2 BCD M *Item no is Button Column I want to get the size value in specific row when i click the item no button on same row, for example, i click the "item no" "2", this will return the value "M". Is this possible in Datagrid? If yes, how can do it in coding? Thanks for everybody |
|
| How to get the MDIForm client area handle (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi all, I'm desperately trying to figure out how to retrieve the handle of the MDIForm's client area. I need this for the .NET version of our free MDI TaskBar control. The control needs to get to the MDIForm's client area handle in order to receive windows messages on the creation and destruction of MDIChild forms. I wrote a subclassing class according to MS's knowledge base article #311317, and I... |
|
| how to get the type of a textbox (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, how can I get the type of what was entered into a textbox? I want to validate the user inputs, so I would like to know if what the user entered was a number or not. thanks, Stefan |
|
| How to globally trigger function whenever form's controls lose focus? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, We migrated an old VB6 app to .NET. It's an order entry application, and whenever a control loses focus we call a function to recalcuate the totals. This works fine, but the same function is called from within nearly 100 controls!. Does anyone know how to do this at the form level in .NET.. psuedo code if control type textbox (listbox, checkbox)...etc loses focus. then call function end if Tha... |
|
| How to handle scroll bar move event in Panel with winform (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi all, My Panel have a lot of button controls (by adding in runtime). so I use Panel autoscroll ture. when I move the scrollbar, I need to scroll the other panel. I didn't find the scroll event in panel. How to handle scroll event? Thanks in advanced. |
|
| how to handle scroll bar valuechanged event of a panel with autoscroll = true (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| thanks |
|
| how to have two controls resize equally? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Say I have two panels (or any control for that matter) on a form. When the form is resized, I want the panels to resize equally, so that they always each occupy 50% of the available area of the form. I've messed around with docking and anchoring but can't seem to find a combination that works. Andrew |
|
| How to hide and unhide tabs (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| How do I hide and unhide Tabs in the TabControl at the runtime? Peter Thanks czupet@wsinc.com |
|
| How to hide the DOS window? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I am relativly new to vb.net ..... heck I'm new to VB in any version. So I apologize if this is overly dumb. I am trying to start and stop a particular file using the process.start() and process.kill(). These are working but the DOS window is always appearing. What am I missing to hide the DOS window? I have tried .hidden, .minimized, removed the window style completeley. I haven't found a way to ... |
|
| How to hide the taskbar in WinCe? (not pocket pc) (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| I'm using Windows CE 4.2 (not Pocket Pc) and i need to know how to hide the task bar completly. I figured out how to set the task bar to Auto Hide, but a small portion of it still shows and users are able to click the task bar and get it to popup. I need to be able to hide it completly so users can't get to it. |
|
| How to implement a GetSafeXXX-like function in C#? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| MFC implements a lot of GetSafeXXX functions, which come really handy. For example, CWnd::GetSafeHWnd(). Looking at the C code, you'll find (more or less): HWND CWnd::GetSafeHwnd() const { return (this NULL)? NULL : m hWnd; } With this code, the following works "as expected" CWnd *wnd; wnd NULL; if (wnd GetSafeHWnd() NULL) ... How can I achieve this kind of code in C#? After many years using C , I... |
|