| add item to listbox (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Ok, here's the deal. I tried to do this and it didn't work: [Child Form "Form2"] Event OK (ByVal item as Object) 'I cast it as Object simply because that's the type of a Listbox Item. Private Sub Button1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Raiseevent OK(Lisbox1.selecteditem) End Sub [Parent Form "Form1"] Private Sub Form2 OK(ByVal item as Object) Handl... |
|
| Add label to cell next to Pager (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hi I'm trying to add a cell in the ItemCreated event which appears next to the Pager cell and contains a label. At the moment I'm getting a 'Multiple controls with the same ID' exception. I guess this is do to with the Pager appearing twice, i.e. top and bottom? What's the best way to get around this problem please? Here's my code so far: Private Sub DataGrid ItemCreated(ByVal sender As System.Obj... |
|
| Add multiple buttons on the fly? (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Hi All, I am trying to figure out how to Add multiple buttons on the fly onto a form. Long story short... I want to dynamically provide buttons for a number of functions and associate them to an Event. For instance: I may want the following buttons created: Button 1 Button 2 Button 3 or MyButton YourButton TheirButton etc.. I can do this but my problem is that I can't seem to attach an existing ev... |
|
| Add onSubmit To Form? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I want to write something in the codebehind that will modify the form tag to add onSubmit "javascript:return CheckStuff();" But I don't want to write anything in the page template at all. I guess I need to get the attributes collection on the form, but I am not sure how to do that in the Page Load event of the codebehind. Thanks. |
|
| Add Row Manually to DataGrid (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I have a DataGrid to which I want the program add from time to time a new row, without redrawing the whole DataGrid. So I don't want to add the new Row to the DataSource and than do a Refresh, but I want it kind of directly add it to the DataGrid so it only adds the new row. Does anybody knows how to do this? Or what I'd better use for this? The reason I want it is that repainting the (Custom)... |
|
| Add Row Manually to DataGrid (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, I have a DataGrid to which I want the program add from time to time a new row, without redrawing the whole DataGrid. So I don't want to add the new Row to the DataSource and than do a Refresh, but I want it kind of directly add it to the DataGrid so it only adds the new row. Does anybody knows how to do this? Or what I'd better use for this? The reason I want it is that repainting the (Custom)... |
|
| Add Row Manually to DataGrid (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| Hi, I have a DataGrid to which I want the program add from time to time a new row, without redrawing the whole DataGrid. So I don't want to add the new Row to the DataSource and than do a Refresh, but I want it kind of directly add it to the DataGrid so it only adds the new row. Does anybody knows how to do this? Or what I'd better use for this? The reason I want it is that repainting the (Custom)... |
|
| Add row to DataGrid (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| I have a DataGrid bound to a DataView. If I add a new row by calling DataView.AddNew the row is added at the end and the grid is not positioned to the new row. I can position the grid to the new row by calling CurrencyManager.Postion CurrencyManager.Count 1; 1) Is that the best way to add a new row? 2) Is there any way to add a new row at the current position instead of at the end? Bill |
|
| Add Textboxes Dynamically WithEvents (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Hi I have code that dynamically adds 1 to 10 textboxes to a form. The user is asked how many boxes he/she needs. Problem is, I can't get to the events of each box that is added EXCEPT for the last one. I need to do a running total of the text boxes as the user enters a value and moves onto the next textbox I've tryed everything and cn't seem to get it. I've tried Addhandler. MY CODE **************... |
|
| Adding a record to a Microsoft Jet database (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| I m a beginner. I want to add a new record to my table; however I get an error: An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll Additional information: Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information. Here is my code: Private m cnADONetConnection As New OleDb.OleDbConnection Private m daDa... |
|
| Adding an item to a Checked List Box (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hello, I am trying to add an item to a checked list box, like: clbList.Items.add("Hello",true) I get an error back: Run time exception thrown: System.ArgumentOutOfRangeException Specified argument was out of the range of valid values. Parameter name: ' 1' is not a valid value for index. This doesn't make a lot of sense? Any ideas why this happens? Regards Simon Jefferies Tools Programmer, Headfirs... |
|
| Adding buttons programmatically in visual basic .net (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi, I have a form and I add buttons programmatically in de form Load function. Anybody know how implements de function button click if in the designer mode the button doesn't exists? I write in visual basic .net: mybutton.Click New EventHandler (AddressOf DetectedAClick) private Sub DetectedAClick(ByVal sender as object, ByVal e as EventArgs) I produced an erron in executing mode, its say: An unha... |
|
| Adding check list box inside master detail web grid (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello all, I have nested a datagrid within a datagrid to display detail records. It kinda works but what I need to do is draw out a check list box I think as this is a dataentry application and I may need to trap what is selected and I need to do that by row. As I think when the user presses the submit button I will need to iterate through the grid, determine if the user selected details and if th... |
|
| Adding control & Event Handler at run-time (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| hello, For some reason I am having difficulty doing what i thought would be simple. i want to loop thru a short list of categories, and for each one programmatically add new LinkButton control. i think want to be able to detect which new LinkButton was clicked. so like so: LinkButton myLKB; while (myDR.Read()) { myLKB new LinkButton(); myLKB.Text myDR.GetString(1); //category description myLKB.Com... |
|
| Adding Controls at Runtine (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Does anyone have any idea how I can add controls at runtime including event handlers using C#. I would very much appreciate some sample code. The biggest concern I have is that I cannot give a control a name using Control.Name "XXXX" |
|
| Adding Data to a DataGrid Form (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, I have tyhis button Which is supposed to add data to a table. It is telling me Heel is not in the table. Below is a list of the table and Button. Thanks, Leo Private Sub btnADDTrussItem Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnADDTrussItem.Click Private Sub Page Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not (P... |
|
| Adding event handler at run time (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, I'm trying to make facade for DataAdapters. At desing time i don't know what adapter will be used at run time (SQL or Oracle). Everything is fine but I can't subscribe to RowUpdating and RowApdated events. I tryed to use Reflection to get eventinfo from dataadapter type and then use addEventHandler. But this method expects delegate of a special type like SqlRowUpdatedEventHandler and for Oracl... |
|
| Adding eventhandler to control (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, How can I add an even handler to a control that is not situated on the main page (it's situated in the repeater). How do I rewrite this to make it work ? Thanx, Neven this.btnSearch.Click new System.EventHandler(this.btnSearch Click); |
|
| adding Flow Layout Panel at runtime? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| A few questions. Is it possible to add a Flow Layout Panel dynamically at runtime using Page.Controls.Add()? Can you add HtmlInputRadioButtons dynamically so they appear within that DIV? I'm able to add them to the page but can't figure out how to put them inside a particular DIV. Is such a DIV treated as a control in the controls collection of the page? If so, is there a way to its index if you k... |
|
| Adding Handlers to controls programmatically (event handler not firing) (VIP replies) |
| ASPFriends.com 'aspngvb' list |
| I have added a control programmatically to a page and have added an event handler. This particular event handler is for clicking a button. However when I step through the code, the click event does not fire. Any ideas why? (below is the code: Dim oSubmitButton As New System.Web.UI.WebControls.Button() oSubmitButton.Text 3D "View Report" AddHandler oSubmitButton.Click, AddressOf PCRMButtonClicked P... |
|
| Adding HTMLAnchor (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello all, I would like to add links dynamically as well as capture their ServerClick event deriving them from a table. How can I do that? Here is what it would look like if I were to hard code it: tr td bgcolor "#ffffff" height "17" img height "7" src "../ReportsImages/navlink.gif" width "5" a class "Normal" id "BankDetail" href "MainMenu.aspx" runat "server" Bank Detail /a /td /tr tr td bgcolor ... |
|
| Adding item in runtime in a Combo Box (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| How do you allow the user to enter an item in the text field of a drop down list during runtime, WIHTOUT using a button? The example in the textbook shows how to do it in the click event of a button, but our instructor is telling us we can't use a button. TYIA Andrea Garcia University of Phoenix BSIT |
|
| Adding Items to ListView through another form (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi Everyone, I have this program I wrote in VB6 for family use. It's a DVD Database just for me to keep track of them cause I have so many lol. In VB6, I could add items to the ListView in 'frmMain' from 'frmAdd' with the following code: Private Function AddEntry(Title As String, Rating As String, Genre As String, OnLoan As Boolean, ToWho As String) Dim x As ListItem Set x frmMain.lvwDVD.ListItems... |
|
| Adding MSChart to VB.NET (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I am a novice at VB.NET and am trying to get the following code, downloaded from MSDN to run. Private Sub Form1 Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim arrData(2, 2) arrData(1, 1) "Jan" ' Set the labels in the first series. arrData(2, 1) "Feb" arrData(3, 1) "Mar" arrData(1, 2) 8 arrData(2, 2) 4 arrData(3, 2) 0.3 arrData(1, 3) 0.2 arrData(2, 3) 3 arr... |
|
| adding record to sql db (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| hello all... im trying to add a record to an sql db on ms sql server 2000, using vb.net. seems to be working.. except for one thing, one of the columns in the database is a bit datatype, and though i get no syntax errors when compiling, i get an error indicated that the data would be truncated. the field is login status. ive tried in quotes and not, giving it an integer variable with the number 1 ... |
|