Topics
-
- 1 reply
- 740 views
Hi, I have an ArrayList of structures and I want to sort the array on different members of the structure so that I can give a rank each element of the array. So I thought I would sort it for each member in turn add add a rank member to the structure for each member i want to sort Confusing I bet. How else would you do this? I want to step through a database fill an array then sort by differen members and then rank each member in the array so that I can create a table with the member values and there rank next to it Thanks for any help given Malcolm
Last reply by HJB417, -
- 1 reply
- 3.3k views
I want to know about this too. Help! I have a group of zip codes. I want to make a report that lists all the information from the store table for stores that have the zip codes that are checked. When the user checks 71111, 71006, 71497, I want the report to get only those stores/rows from the table and put those in the report. I only know how to make the crystal report wizard display all rows from a table or querie. How can I do this? Thanks, Chris Gregory christopherleegregory@hotmail.com
Last reply by kcwallace, -
- 1 reply
- 1.5k views
Can someone help with the correct syntax for overriding the Keydown event of a textbox control? I'm having a heck of time getting it to compile. (Yup,..it's friday.) Thanks in advance. PePe public class cTextBox: System.Windows.Forms.TextBox { public cTextBox() { base.KeyDown += new System.EventHandler(OnKeyDown); } protected override void OnKeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { //trap escape key here. } }
Last reply by PePe, -
-
- Moderators
- 2 replies
- 965 views
I am trying to transfer data from a SQLserver to an Access DB through code. The code below contains my method. It has to be dynamic enough to accept any SQL statement. I gets real slow filling the dataset. Is there a better way? Private Sub UpdateDB() Label7.Visible = True ResetLbl(Label7, "Looking up data in SQL Server Database") ProgressBar1.Visible = True Dim Cnn As SqlConnection Dim Cnnstr As String = "Data Source=" & TextBox1.Text & ";Initial Catalog=" & TextBox5.Text & ";Integrated Security=SSPI;" Dim SQL = TextBox2.Text & "" Cnn = SetCnn(Cnnstr) Dim Cmd As SqlCommand …
Last reply by kcwallace, -
-
-
- Moderators
- 1 reply
- 3k views
I have a table control that I am dynamicaly adding rows to - which I am building off a session variable that is a datatable. At the end of each row I am adding an imagebutton that will delete the row from both the table and the session datatable. I have it working the first time a user clicks on any of the imagebuttons, but on a second imagebutton click my event is not fired, but I do get a postback. If I click a third time it works as expected, and a fourth click will not raise the event again. In my page_load event I am simply building the table (not checking for postback). In my img_click event I am finding the corresponding row in my session datatable, deleting…
Last reply by Robby, -
-
-
- Moderators
- 3 replies
- 2.3k views
Hi. I have an add new or edit current customer form. It is opened via another form, where I select a current customer and click add/edit button. My update works, but I'm trying to make my program add a new row/customer to the customer database. It hasn't been working and I don't know anyone that knows how to do this. I've got a lot of commented out code, but toward the bottom is what I'm currently working with. Please let me know how I can get this to work. The Form loads, and the dataset is filled. The position is determined by a value held in a class (so it can load the information for the customer selected on the previous form). When you press add, it is supposed…
Last reply by Robby, -
-
-
- Leaders
- 5 replies
- 1.1k views
hello, i have a question of threads, im making some tests, and i want to get a value of a variable inside a thread, but i want to retrieve from outside of it.. was it clear? 'when i clic the button its start the thread. completes a variable in the class, and starts. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Class1 As New TPruebas Dim myT As New Threading.Thread(AddressOf Class1.myThread) Class1.myInt = 100 myT.Start() End Sub Public Class TPruebas Public myInt As Double Public incInt As Double Public Sub myThread() For in…
Last reply by Rothariger, -
-
-
- Leaders
- 2 replies
- 857 views
Hi First, sorry if this is a crosspost, I posted at xtremevbtalk.com too. I'm new to the forums and .net in general but I've spent the past two days looking for an answer to my question and hopefully someone here will have one. I'm trying to make the text of the tabs wordwrap. I know this is easily doable in 6.0 using the SSTAB control but I'm in .net now and cant seem to figure it out. Ive tried using the SSTAB control in .net and that wraps just fine but it seems to be busted for use as an actual container. ie, I cant figure out how to add controls to each individual tab without them appearing on top of the SSTab control instead of in the appropriate tab page. …
Last reply by BobThePenguin, -
-
- 3 replies
- 725 views
I'm trying to get the mac address of another machine.. one that I'm not running this app from. I have code that is working for getting my own.. but how do I tell it to run this against another computer. Anyone have a code synp i can use to help me along. thanks
Last reply by jvcoach23, -
-
- Administrators
- 7 replies
- 4.5k views
What is the difference between putting your using statements outside vs inside of a namespace? I guess the issue is this, when a class is created by visual studio it looks similiar to this: using System; //using system on the outside of the namespace namespace super { //examples always seem to put their using statements here... /// <summary> /// put summary here /// </summary> public class duper { public duper() { // TODO: put initialize code here } } } Looking through example code, though, shows the using statements on the inside of the namespace. What is the difference? Does the placement of the using state…
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 11 replies
- 1.5k views
I'm just starting work on a new vb.net Windows forms project, that demands we have a textbox with alot of functionality in it. The main requirements are: - Bold and italics - Bullet points and numbered lists - Indenting I have a couple of ideas that I know must be possible, but I just can't find what I'm looking for. A couple of possible ideas I had were 1. To somehow use embed a word document into my application. (but I can't find any MS Word components or references?) 2. To somehow embed an HTML page with functionality very simliar to THIS VERY edit window - except that this application has to run locally on the users machines, and they won't have IIS instal…
Last reply by Taneth, -
-
-
- *Experts*
- Leaders
- 5 replies
- 3.9k views
I have a control that I want to be hidden when the user clicks outside of it. How can I detect such a mouse click?
Last reply by snarfblam, -
-
-
- *Experts*
- 5 replies
- 3.4k views
How about a VS Bug forum with possible work arounds?
Last reply by DiverDan, -
-
- 0 replies
- 1.8k views
Hi All, I got a basic MDI app. The MDIParent has control buttons instead of using a menu. Hence, There is no menu created in the app and the MDIParent upon loading does not display the menu bar. However, when I click one the these command buttons, the child form loads (I already disabled the FormBorderStyle, and removed the control boxes), I still get the menu bar (with nothing in it) even though I did not create one. How do I eliminate it completely? Thanks in advance
Last reply by laredo512, -
- 0 replies
- 1.3k views
I have a main form that displays data by loading various datasets. I then want to display a modal form from the main form. I have set the bindings to the combo boxes on the modal form from inside the main form and all of the combo boxes are correctly poplulated. My problem is that I now want to do some row filtering on the dataset based on a combobox.selectedindexchanged on the modal form. How would I go about this? So far I have tried passing the dataset to the modal form but not too sure if this is the correct method....
Last reply by Roey, -
-
- Moderators
- 4 replies
- 1.1k views
Hi I am doing a select statement on a table via a stored procedure. One of the rows selected is of type datetime. I need to trim the date time in such a way that the date time is only in the format dd/mm/yyyy not dd/mm/yyyy hh:mm:ss. When I select the data I insert it into a dataset table, which is then binded to a datagrid. Any suggestions?? Mike55
Last reply by Mister E, -
-
- 1 reply
- 818 views
How do I at runtime determine the number of fields within a sqlcommand? THe SQL statement driving the command is dynamic, and I need to determine how many fields their are.
Last reply by kcwallace, -
- 1 reply
- 1.3k views
Hi Gurus: I have a problem triying to install a .Net Service on a Win 2K computer, with a seput program created with VS. When I install the Service on a XP computer it installs fine. But when I try to install it on Win 2K the installer crush and tell me I have no privileges to install it, or the user/ password is wrong and i can't finish the installation. Of course, I have all Service Packs for win 2k and .Net Framework 1.1 and S.P 1 for .net framework in this computer Please Help!!!
Last reply by Lord Cyberon, -
- 0 replies
- 944 views
Hi all: i have created the setup using visual studio.net(2002) but i am struggling to create following feature for my setup: 1)How to create the uninstalltion option in the users program menu. 2)How to run the application after finished my installtion. Plz any give me the solution or give the good link for the related article. Thanks in advance. :rolleyes:
Last reply by thiya, -
-
- Leaders
- 8 replies
- 2k views
I have a VB.NET application with a string variable that contains a mix of text and numbers. The text is always at the beginning of the string, however it is possible that the string can be of different lengths. I want to remove the text only portion on the string leaving me with only the numbers. Not quite sure how to accomplish this. Any help would be greatly appreciated.
Last reply by HJB417, -
-
Who's Online 0 Members, 0 Anonymous, 80 Guests (See full list)
- There are no registered users currently online