| How to code JavaScript events from HyperLinkColumn (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hi, I have defined a simple grid with a hyperlink column as follows: asp:HyperLinkColumn HeaderText "Description" DataNavigateUrlField "BillTypeID" DataNavigateUrlFormatString "BillTypeDetail.aspx?BillTypeID {0}" DataTextFormatString "{0:c}" DataTextField "Description" /asp:HyperLinkColumn Which shows the Description and navigates to the detail page by passing the id. Now, I want to tidy up the GU... |
|
| How to conditionally set focus to control in ASP.NET (VIP replies) |
| microsoft.public.dotnet.framework |
| I see several articles on using javascript to set focus to a control. I need to conditionally set focus to any of several controls, depending on what just happened on the server side. What can I do on the server side to send a message to to the javascript so it can set an appropriate focus? |
|
| How to connect Click-Event with a user-control? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| I have a previously selfcreated user control which contains a picturebox and some additional code. I place this user control on a new form and i want it to fire a Click Event when a user clicks it. But it doesnt fire anything on clicking! I read something about user controls being special with events but i dont get to the point yet... Thanks in advance for your help, Jan |
|
| how to convert object to Forms.Label type ? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I'm developping a windowsForms app in C# As i created a lot of labels programmaticaly in the form Load() ispecify the following to manage the event in the same way for all of my labels: So in this sub i wanted to call another form with a specific contructor which set specific values from with the settings of the caller (obviously a Label) My code is the following: private void ChangeSettings(objec... |
|
| How to create a context menu at design time for my own control? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Hi again, I want to create a context menu at design time for my own control. How can i do this? Thanks to all! Javier Álvarez. Madrid. SPAIN. |
|
| How to create a form instance at hidden state? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, In my VB.Net application I create a new instance of my form like : NewForm new MyNewForm() But with this line, this new form is automatically shown. I want it to be hidden at the start... Adding a line after this line like : NewForm.Hide() or NewForm.Visible false didn't help. Putting this line to this new form's load event didn't help either. Sub Form Load() Me.Hide() End Sub How can I ach... |
|
| How to create an event that is triggered by a prameter? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I am extending the datagrid by adding 3 parameters that can be set both during design time and run time. How can I develop an event that is executed at run time based on the value of the parameter? |
|
| How to create controls at runtime (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, i'm trying to create some htmlinputfile controls at runtime in my page, based on a integer variable (for example 5) This is simple for the html code, but i don't know how to manage them in the codebehind file, i've tryed to put them all in an array protected HtmlInputFile[] filesUp new HtmlInputFile[total]; but this doesn't work, so i can't get a reference to the controls in the code... Please... |
|
| How To Create Custom Aspx Error Reporting Page (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html error page. All six steps in the article work just fine. Then at the end of the article, there is a little comment about redirecting errors to an aspx page (instead of an html page): "Note The page that is specif... |
|
| How to create Dynamic Controls (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi Every one Having tuff time creating web controls Dynamically. All i am trying to do is read a table and generate a list of ASP TEXT Box. So how do i create this Control dynamically and where do i add the EventHandler to it. Thanks RSB |
|
| How to create metafile in ASP.NET? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| In .NET Windows forms I can create a metafile using this code: Graphics grph aControl.CreateGraphics(); IntPtr ipHDC grph.GetHdc(); Metafile mf new Metafile(aImgFilePath, ipHDC, EmfType.EmfOnly); grph.ReleaseHdc(ipHDC); grph.Dispose(); grph Graphics.FromImage(mf); grph.DrawRectangle(aPen, 10, 10, 100, 120); grph.Dispose(); But how to create metafile in ASP.NET, where are neither WinForms controls ... |
|
| How to create on/off rolloverimage button with non-image text (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| It's a pain to create each button with 2 images: button on.gif button off.gif I am looking for a control that have on/off two states, preferred as BACKGROUND images and with button text on it. Any hint? |
|
| how to create Thread? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have an mdi form and I am trying to call a procedure "myTest" in the parent from the childform. I am experimenting using a thread, but the thread is not releasing the childform. I place a breakpoint in "myTest" on the parent form and I have a msgbox("Done here!") on the childform. The program stops at the breakpoint in "myTest" but does not continue to the msgbox until after I have finished with... |
|
| How to debug System.MissingMethodException errors? (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| What is the process for debugging a System.MissingMethodException error? I am using vb.net in the Compact Framework. Mine appears in a Mousedown event, but if I wrap a Try/Catch in that code, a System.MissingMethodException error then appears at the Application.Run(New Form1) level., with a green triangle pointing to this line when debugging. There is no code that "triggers" the error in this case... |
|
| How to define an array of IPAddress-es (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Dear Readers, I am attempting to define an array of IPAddress es in C#. I wish to have a array of address so I can try in order to connect to them in a loop to handle unavailable hosts. Todate since I do not know how to define an array of IPAddress es. I have been defining variable like: IPAddress ipAddress1 IPAddress.Parse( "10.1.1.1" ); IPAddress ipAddress2 IPAddress.Parse( "11.1.1.1" ); Then de... |
|
| How to delete checked row/s in a datagrig (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I've got this code (see below) that lets me check rows in a datagrid. I want to delete the checked rows in the datagrid, not in the database. How can I delete the checked rows? I've also tried using e.Item.ItemIndex, but it deletes the whole datagrid instead of the selected row. using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using ... |
|
| how to detect if an assembly is running in winform/webform? (VIP replies) |
| microsoft.public.dotnet.framework |
| I am trying to create an assembly with general purpose function to use in all of my projects. One function should be called when an error is catch so that it can log the error, send an email and pop up a messagebox, but messagebox does nto work in web form. Is there any function that allows to check if an assembly is running in webform and is there something similar to the messagebox for webform (... |
|
| How to detect if changers to a form has been saved or not (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi, I have forms with multiple controls, I need to know if the changes have been Saved or not. So to prompt the user if s/he tries to close the form without saving. IS there an elegant approach to this problem? Thanks Al |
|
| How to determine single click vs. double click? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have a windows forms application that needs to do one thing for a single click and another thing for a double click event. However, the forms click event gets fired whenever a double click event occurs and I don't want to perform the single click event plus the double click whenever the user double clicks on the form. What is the best (standard) way to handle this? IMHO it seems like there shoul... |
|
| How to determine which cell was clicked in as ASP.NET DataGrid (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I created an ASP.NET Datagrid where a single row can be selected by clicking anywhere on the row (according to http://msdn.microsoft.com/library/default.asp?url /library/en us/dv vstechart/html/vbtchTopQuestionsAboutASPNETDataGridServerControl.asp, Selecting Rows by Clicking Anywhere). Private Sub DataGrid1 ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItem... |
|
| How to disable the second click (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hello I have the following problem: an app Win CE with many screens, each screen is a Control, only the Main screen is a Form. When I double click a button on the Main screen, it takes it like a click on the Main screen a click on the button on the second screen and it opens also a third screen (instead of remaining in the second one). I try to disable the button on the Main screen during loading ... |
|
| how to display data in textboxes ? (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| i'm trying to display the data into the textboxes when the user enters the appropriate id in the search textfield, however, it keeps on displaying an error message such as the following on my pocket pc An unhandled exception of type 'System.ArgumentNullException' occurred in System.Windows.Forms.dll Additional information: ArgumentNullException... My codes are such as below.My web services was ok.... |
|
| how to do AddHandler (VIP replies) |
| microsoft.public.dotnet.distributed_apps |
| hi, i am having a vb.net window form, that form is having a timer. in each interval the it reads data from sql server back end, continously. and display on it. some times the form may not respond, and after few seconds, responds.... i know i should go for multithreading in vb.net where to start, and how to write for asynchoronous programming inorder to slove my problem help me, thanks |
|
| How to do in UIP (VIP replies) |
| microsoft.public.dotnet.distributed_apps |
| If I have a form that shows a list view of vendors, user selects a vendor by double clicking. Now I have a vendor ID and want to navagate to a new form that has the vendor detail. Question is how do I get this vendor ID to the new form in the UIP. grs |
|
| How to do you updating properties on the design-time surface? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, I've just delving into the world of ASP.Net Web Custom Controls I have a firm grounding in Visual Basic and Active Server Pages. I am currently designing a simple Web Custom Control that will act as a Header for a page. So far I have manage to make the control work and render it at design time. However I want to make it re usable by attaching custom properties to it, such as; Header Title and ... |
|