Topics
-
-
- *Experts*
- 2 replies
- 1.4k views
How can I refer to an form in array of forms? Hi, How can I refer to an form in array of forms? In my project, I have created an array of forms in a module like this: Module FormsArray Public ArrayOfForms(25) As clsDummyForm Public Sub CreateFormsArray(ByVal i As Integer) ArrayOfForms(i) = New clsDummyForm End Sub Public Sub CloseForms(ByVal i As Integer) ArrayOfForms(i).Close() End Sub End Module (clsDummyForm in the code above is a class in which I am inheriting System.Windows.Forms.Form) The problem occurs when I try to use the CloseForms() sub from another form like this: Public Class Form1 Private Sub CloseAllForms() …
Last reply by cementboot, -
-
word count and length
by Guest noname-
- *Experts*
- 3 replies
- 1.7k views
Hi, this is my first post and for those who are wondering, I'm a newbie...so I shouldn't crack your head up at the beginning... I am trying to develop a little application to count words and their length I have tried several ways but haven't found an efficient way to do so... I want to count the total amount of words in a textbox and also the amount of 1 character, 2 characters, 3 characters and +3 character words.... could anybody help me out on this!? it would be greatly appreciated... thanks!
Last reply by IceAzul, -
-
- 0 replies
- 1.1k views
Hi, I m trying to create the spreadsheet pretty much similar to google spreadsheet having multiple number of textboxes(as cells)in matrix form where we can do all excel operations... Can you give some ideas like how to get mulitple number of textboxes in grid, navigation between the textboxes, and mathematical operations between the datas in cells... Regards, Basky
Last reply by r8step, -
- 3 replies
- 1.1k views
I have a simple database app, tab 1 has a datagrid on which is filled simply with SELECT * FROM Customers into a dataset/datatable which is then bound to the grid. Then if I double click a row it moves to tab 2, looks up cell 1 on the selected row of the datagrid (which is the primary key) and then does "SELECT * FROM Customers WHERE ID=id" into a datareader. On tab 2 I have loads of text boxes and I simply do txtname.text = rdr.item(0).tostring txtcompany. text = rdr.item(1).tostring And so on. Could someone explain the correct and accepted way of doing this task, i.e. using databinding etc. Should I create a customer class first with properties for my da…
Last reply by georgepatotk, -
-
- Administrators
- 1 reply
- 997 views
I am working on an asp.net project that has a usercontrol that is being used for the page heading. There are three buttons for navigation. There are four aspx pages that use the usercontrol. On one of the pages, I need to check to see if changes have been made when any of the buttons are clicked and ask the user if they want to save changes. - I got this to work by adding an eventhandler to the page and doing a raiseevent when a button is clicked. The other pages do not need to check for changes when the buttons are clicked. - I have tried adding an eventhandler and doing a raiseevent when a button is clicked, but it doesn't do anything. How would you r…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 871 views
I'm getting a System.InvalidCastException: Query Interface for interface CapacityPricing._Login failed. CapacityPricing._Login is a TLB created through Microsoft Component Services. This is running as a Web Service; however, when I run the EXACT same code as a WinForms application it works as I expect it to. I'm using asp.net 1.1, I can post the code for the function if it'll help, but the same code does work as WinForms app, it just doesn't work when Invoked through the web browser as a WebService. Thanks In Advance.
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 6 replies
- 2.2k views
I am working on an application that has a webbrowser control and a textbox. The particular page that the browser points to is a blog that has a submit form on it to post a reply to the particular thread. Replys are submitted via post, but the text editor on the page is sorely lacking in features. The application I am making needs to be able to take text from the custom editor in my application and submit it through the webbrowser via a POST command. IS there a way to accomplish this?
Last reply by mooman_fl, -
-
- 3 replies
- 1.6k views
Hi everybody i just want to know is it possible to play iTunes Protected audio (AAC, M4P) outside of iTunes? E.g a program i create that plays music files? Thanks for your help in advance.
Last reply by Allen G, -
- 2 replies
- 1.6k views
I want to access some form controls (like a textbox and buttons) and read some properties for those controls; for the textbox I also want to be able to write some text on it... The thing is, I don't want to do this on my windows forms, the application I'm coding, but some other running application. How can I have access to these stuff?
Last reply by Nazgulled, -
- 9 replies
- 4k views
Background information - I have a main form (fBoard) that creates & starts a listener thread (thTcpListener) which is responsible for receiving incoming network data from the server. So, my question is pretty much two-fold: - How do I pass the data that was recieved from the Thread (thTcpListener) to the main form (fBoard)? - How do I then notify the main form (fBoard) that data is ready and waiting to be used? Specifically - the data recieved in a custom object (objCustom) and fBoard has a "private ObjCustom objCustom" member that needs to be updated with this incoming data when it arrives. The main form (fBoard) will create & start the listener thread (…
Last reply by MrPaul, -
- 0 replies
- 2.8k views
Hi all, Currenlty i am using asp .net 2.0 and oracle 10g. My current arhitechture look like this Server A - Oracle database 10g Server B - Web application and Oracle 10 g client I am using System.Data.OracleClient for database connection. It work fine when i doing development. But after i published and deployed in IIS. i get System.Data.OracleClient requires Oracle client software version 8.1.7 or greater. I also try to search from the internet through that error message but the solution that i get seems like not work. I am stucks, Please help Thanks a million Help
Last reply by ym21, -
- 1 reply
- 1.1k views
I'm using MS SQL 2000 with enterprise manager I have a customers table called high_customer, it has a primary key called ID I have an invoices table called high_invoices, it has no primary keys but it does have a column for customer ID. I want to set it so if a customer is deleted from the customers table, any invoices with that customerID are deleted from the invoices table. Do I need to specify a constraint? If so how do I do it in enterprise manager. Thanks
Last reply by MrPaul, -
-
- Leaders
- 4 replies
- 1.4k views
Is anyone aware of a .net component that can 1. Take a jpeg of say 400x300 2. Return another new jpeg of smaller dimensions say 200 x 150 3. Most importantly the new file is lower resolution and hence a smaller file size Thanks
Last reply by snarfblam, -
-
I like to try programming challenges to keep the skills up and the mind sharp. One I tried recently was coding a prime number generator in C#. It works well and timing with a basic Tickcount timer it will generate primes to 1000 in about 16 milliseconds. 10000 in 125 milliseconds and 100000 in 10047 milliseconds (on my slowly helpful machine). Since the algorithm uses 2 for loops the execution time is a logarithmic function, if I remember right from algorithm theory. So here is what I came up with as the fastest method I could devise. Any tips to try and make it faster. I tried it up to 1000000 and broke execution since I got tired of waiting. static vo…
Last reply by MTSkull, -
- 1 reply
- 1.3k views
Wondering if you could help... say I have an object. public class Product { private int _id = 0; private string _name = string.Empty; private string _desc = string.Empty; private double _cost = 0; public int Id { set { _id = value; } get { return _id; } } public string Name { set { _name = value; } get { return _name; } } public string Desc { set { _desc = value; } get { return _desc; } } public double Cost { set { _cost = value; } get { return _cost; } } public Product() { } public Product(int Id, string Name, string Desc, double Cost) { _id = Id; _name = Nam…
Last reply by headkaze, -
- 0 replies
- 1.6k views
I decided to blaze the trail on 7.0 I have found that, using it with Visual Studio.Net 2005, the Panel control tends to want to adjust itself smaller, and then has to be manually resized, even when it contains controls I noticed that controls with variable sized datagrids and buttons were cutting off the bottoms I ran the same code in IE 6 and IE 7, and in the older version it didn't do this. Anyone else seen it?
Last reply by TheWizardofInt, -
- 16 replies
- 1.8k views
I have a basic HTML page (the host doesn't support ASP or .NET) I have a simple mail form <form name="form1" method="post" action=http://remotesite/sendmail.asmx> <input type="text" name="name" width="180"> <input type="text" name="phone" width="180"> <input type="text" name="email" width="180"> <textarea name="comments" rows="3"></textarea> <input type="submit" name="Submit" value="Submit"> </form> I want to use the sendmail service to send mail on behalf of this page, can it be done? How does sendmail.asmx access the form values of this page? It also needs either the URL of the first page or its IP addre…
Last reply by Mondeo, -
- 1 reply
- 1.2k views
I've put a label on a form and i need to know when someone clicks on it. But it has no click event? Does anyone know if I can add a click event handler or suggest a different control to use, I only need to display the text BACK> and have it clickable Thanks UPDATE: I've sorted it, I used a hyperlink control with javascript:history.go(-1) in its NavigateURL property Works fine!
Last reply by Agent707, -
-
- Leaders
- 3 replies
- 3.5k views
Lets say I want to find out the Type of an Object - I often use tags. In order to do this do I really have to instantiate another new object to compare the tag object to? for instance 'Lets say obj is a Tag object imported into the function Private Function IsObjMyClass(obj as Object) as boolean Dim MC1 As New MyClass1 'Do I really need to create an object here? If Object.ReferenceEquals(obj.GetType(), MC1.GetType()) Then Return True Else Return False End If End Function
Last reply by snarfblam, -
-
- 3 replies
- 13.2k views
Hi, I have an ASP.NET 1.1 form It contains the following controls 1. Quantity (textbox) 2. ETD (textbox) 3. Customer (dropdown) I have a TextChanged for the Quantity control that runs a Server procedure "RUNCHECKS" The ETD is a Date field. The user cannot enter the date into this field manually . I have an image on the form that when the user clicks on opens up a pop-up calender and he selects the date from the calendar. When a date is selected it is automatically assigned to the ETD textbox.This is all done using Javascript How can I fire the TextChanged event for the ETD textbox control that will run the "RUNCHECKS" method. Thanks
Last reply by MrPaul,
-
Who's Online 0 Members, 0 Anonymous, 49 Guests (See full list)
- There are no registered users currently online