| Handling Events from Controls Created at Run Time (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| I have a tab control whose tab pages are created as needed at run time. Each tab page has controls contained within it that are added to its control collection (..controls.add(...)). Now, of course, since they weren't placed on the tab page in the designer, there is no simple way to get at the events that are fired when they are raised from these controls. I know that I'm supposed to Addhandler so... |
|
| Handling Events in JScript.NET (VIP replies) |
| microsoft.public.dotnet.languages.jscript |
| I've searched high and low for answers to a couple of questions I have on JScript and event handling, but I have not been able to find much. I did dig up an old posting in this newsgroup that mentions the topic, but I crave more. ;) 1) Apparently, you cannot create new events in JScript.NET. Peter Torr wrote in this newsgroup a few months ago that this feature should "appear in the next release". ... |
|
| Handling Exceptions in WinForms (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Dear All, In ASP.Net we had... Sub Page Error(Source As Object, E As EventArgs) Dim message As String " font face verdana color red " & " h4 " & Request.Url.ToString() & " /h4 " & " pre font color 'red' " & Server.GetLastError().ToString() & " /pre " & " /font " Response.Write(message) End Sub where from Server.GetLastError we could get the error and display it neatly to the user...for all the err... |
|
| Handling Template's Button (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I added a template column to a grid. I have two buttons in this column but I can't seem to add code behind for them. Any ideas? Jim |
|
| Hashtable enumeration (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| How can I loop thru a hashtable changing the Value of each entry ? Whatever I try I always seem to get the error about modifying the collection within the loop. |
|
| Havin the username show in a label (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi Im trying to have a label on a page with some text and the user name Windows auth is on in web config Integrated security The username is a domain name dim uname uname user.identity.name Lbl1.text "Welcome" & uname& "Some other text" Please tell me what im doing wrong and secondly i dont want to retreive the domain name just the username. Thanks MP |
|
| Having problems displaying selected XML data using datarow (VIP replies) |
| microsoft.public.dotnet.xml |
| I'm working on what I though would be a simple display page to learn how to display XML on a page but I am having a lot of problems with it. The XML file that I'm working with is hosted on another site and can be viewed here: http://www.camelotherald.com/guilds/Iseult/403.xml I have been able to bring this data into a data grid without any problems. Now I'm working on individual detail pages and I... |
|
| Having problems setting control focus (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| I have a form with four buttons which is shown, hidden, and reused at a later time. Every time I show the form again, I want the same button (let's call it button1) to have the initial focus, regardless of which button was used to dismiss the form last time. I having a helluva time figuring out where to put the call to button1.Focus(). I tried the VisibleChanged event of the form. Nope. Then I tri... |
|
| Hello out there... (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| For days now I've been trying to figure out how to use the SendMessage API in VB.NET. I've searched the net, and posted all over the place. I have yet to talk to a person who can help me. I don't mean to sound short about this, but this is really an easy thing. In VB6, it was cake. So I'm going to try this once again... The Declares! Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA"... |
|
| Help .."The request failed with HTTP status 404: Not Found" (VIP replies) |
| ASPFriends.com 'aspngwebservices' list |
| Hi there guys! ..I'm not sure if you are the rite team i should ask this but this is the only adress I got :) ..if you have the rite adress can you give it to me or foward this email to them..?? .. ..I'm working with: Windows 2000 Profesional SP2 Visual Studio .NET Beta 2 Version 7.0.9254 Internet Explorer Version 6.00.2462.000 IIS 5.0 .. ..I'm try to do a Web Service with VB, in VS .NET, i just c... |
|
| Help calling function from DLL and processing returned value (Can not marshal return value) (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi again, I'm trying to call functions from a proprietary DLL but it's turned out to be more difficult than I thought. I have this W32.DLL which was written in C by USPS. They don't provide the code so I only have the documentation. I'm trying to call a function called z4date that, according to the docs, returns the date as "an 8 byte character string in the "YYYYMMDD" format". When I run it with ... |
|
| Help in array of array of classes needed (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I want to create class Matrix which contains array of class Rows and some additions. Class Rows contains array of Cells. Here is the declaration: public class Cells { public int value 0; public int color 0; public int background 0; } public class Rows { public Cells [] cell new Cells [10]; public int row num; } public class Matrix { public Rows []row new Rows [100]; public int new id; // Construct... |
|
| Help me clean up this code (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| 'create object array Dim jobnums(1000) Omitted: code that retrieves job numbers (integers) from sql server to put in a combobox I have a combobox (cbJob) that I want to put these values into. If I read them in from a SqlDataReader it takes an eternity, about 7 seconds to accomplish. But if I read them into an array, it takes no measurable time. Then I add the array items to the combobox all at onc... |
|
| Help me PLEASE. (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| I'm 14 and just started programming last week, so this is probably an easy question. How do I resolve this error: An unhandled exception of type 'System.NullReferenceException' occurred in Software Inventory (My Version).exe Additional information: Object reference not set to an instance of an object. I have a form called form1 with a mainmenu that has a button that shows a form called fmOpacity, ... |
|
| Help me.how to use "setparent"? (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| I have two form,frm1 and frm2. I use setparent function. frm1: Dim frm2 As frm2 Public Declare Function SetParent Lib "user32" Alias "SetParent" (ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As Integer Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If IsNothing(frm2) Then frm2 New FrmLeads inf SetParent(frm2.Handle, Me.Handl... |
|
| Help needed: Problem with dynamic generated TableRow and TableCell (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I have a page bill.aspx and its code behind bill.aspx.cs. On bill.aspx I have: Select a month: asp:dropdownlist runat "server" id "lstDate" autopostback "True" / br asp:table runat "server" id "tabBill" / br asp:button runat "server" id "btnSave" text "Save" cssclass "button" / On bill.aspx.cs I got: protected System.Web.UI.WebControls.Table tabBill; protected System.Web.UI.WebControls.DropDow... |
|
| Help on ASP.NET (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, I'm new to asp.net so this might be a simple question, in a web form, I have button1, when button1 is clicked, it should populate the Datalist, then I should be able to click any of the buttons in the Datalist which does somthing depending on which button is clicked. In the code behide file, how should I arrange things, when button1 is clicked, I can add an event handler to the button1's click... |
|
| Help on sppeding up a 15,000 line batch process (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| In my Windows app, I'm running a batch process that's composed of a FOR loop that'll run 15,000 times (datatable row count), copy cthe data of each row 3 fields to a struct, and send the strct to an external method (using DLLImport). The problem is that the processing speed is very inconsistent it may run very FAST during certain points but then it runs VERY slow at other moments (especially when ... |
|
| Help on Stored procedure (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| I have approx 7 routines like this that call a common exe the BindGrid() public void Submit7 ServerClick(object sender, System.EventArgs e) { SQLStatement.Text "Select * from dwKnowledgeBase where Category 'Articles'"; listMode On(); MyDataGrid.CurrentPageIndex 0; DataGridPanel.Visible true; SplashPanel.Visible false; BindGrid(); } public void BindGrid() { SqlConnection myConnection new SqlConnect... |
|
| Help please (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Dear newsgroup do not reply to this e mail address. I have just created it to avoid getting spam to my real address. Reply to the newsgroup. I am watching them all now so please reply now. How do I get a list of methods that my class supports? Here is my code. I want MsgBox(a.GetMethods, MsgBoxStyle.Information Or MsgBoxStyle.OKOnly, a.GetVersion) to display, if a is a "TanOperations", "getTan1, g... |
|
| Help please (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Dear newsgroup do not reply to this e mail address. I have just created it to avoid getting spam to my real address. Reply to the newsgroup. I am watching them all now so please reply now. How do I get a list of methods that my class supports? Here is my code. I want MsgBox(a.GetMethods, MsgBoxStyle.Information Or MsgBoxStyle.OKOnly, a.GetVersion) to display, if a is a "TanOperations", "getTan1, g... |
|
| Help please (VIP replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Dear newsgroup do not reply to this e mail address. I have just created it to avoid getting spam to my real address. Reply to the newsgroup. I am watching them all now so please reply now. How do I get a list of methods that my class supports? Here is my code. I want MsgBox(a.GetMethods, MsgBoxStyle.Information Or MsgBoxStyle.OKOnly, a.GetVersion) to display, if a is a "TanOperations", "getTan1, g... |
|
| help pls..urgent (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| i was trying to call a simple web service such as below..the webmethod actually runs successfully but then i can't consume it from my pocket pc..whats the problem?? WebMethod() Public Function GetJob() As DataSet Dim cn As New SqlConnection( "Server servername;Database DotNetCF;" & "uid sa;pwd sql") Dim da As SqlDataAdapter New SqlDataAdapter ("SELECT * from Jobs", cn) Dim ds As DataSet New DataSe... |
|
| Help re WndProc and DateTimePicker (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Hi, I am trying to create flat DateTimePicker control with the border of desired color. I have pretty much to finish it but have some problems. My DateTimePicker is flat with dark border as I wanted but the drop down button on its right side is still not appearing flat. (More preciselly, the button is flat only when the control has focus but it is not expanded) Also, how can I release DC and where... |
|
| help this n00b (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| This following piece of code wont work, i have no idea what i did wrong. Data.mdb is the database file Admin is the table username and password are fields oldpasstxt.Text and newpasstxt.Text are from input boxes. The error vs.net gives me is olecmd.ExecuteNonQuery() on the 3rd last line of what i pasted. any help would be deeply appreciated :{ code: Private Sub okchange btn Click(ByVal sender As S... |
|