Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. polocar

    How to manage the "No current record" situation after the Form.Requery

    Hi PHV, where would you test the Me.NewRecord property? Thanks
  2. polocar

    How to manage the "No current record" situation after the Form.Requery

    Hello, I'm preparing a simple mask in Access 2003. The RecordSource of this mask is a table named Persons, whose fields are "IDPerson" (counter field and primary key), "Name", "SecondName" and "Age". In the mask there are some textboxes linked to the fields above, and there are the classical...
  3. polocar

    How to create a custom dialog form and know the clicked closing button

    Hi, I'm writing a program using VBA 2003, I have a Form called "Form1" that has 1 "txtName" TextBox and 1 "btnOpen" CommandButton. I would like that, when the user clicks on "btnOpen", another modal form (called "Form2") opens, where the user can insert a text in a "txtNameInsert" TextBox and...
  4. polocar

    How to select the 1st item (the one at the top) of an ordered ListView

    Ok, I have discovered an interesting thing, the TopItem property functions, but only after you have loaded the form... If you add a button in the form and insert the following code in its click event handler, the item at the top of the ListView is selected. The problem is that it should happen...
  5. polocar

    How to select the 1st item (the one at the top) of an ordered ListView

    Hi Aptitude, I tried your suggestion (it seemed perfect for my case), but unfortunately it doesn't function... If you have time to spend, I have prepared two files with the code samples. The project creates a ListView object with 2 columns, the first one (column 0) with numbers from 1 to 10, the...
  6. polocar

    How to select the 1st item (the one at the top) of an ordered ListView

    Hi, I’m using Visual C# 2005 (part of Visual Studio 2005 Professional Edition), and I have the following problem: I populate a ListView object with several items, and at the end of this process I put a statement that orders the ListView by a certain column and in a certain order (ascending or...
  7. polocar

    How to insert a "wait for" window in Excel without stopping code

    You are right, I focused on your code, and didn't know that I can specify the modeless setting at design time... Sorry
  8. polocar

    How to insert a "wait for" window in Excel without stopping code

    Ok combo, thank you for your suggestion. This weekend a friend explained me also another way, that is: open the window in a modeless way (the default way is modal), and than repaint the form, so I can write Public Sub OpenWaitForForm() Load WaitForForm WaitForForm.Show vbModeless...
  9. polocar

    How to insert a "wait for" window in Excel without stopping code

    Hi, I'm developing some macro in an Excel file. As one of these macro (when the user clicks on a button) requires 20 - 30 seconds of execution, I would like to create a "wait for" window for the user... The window is loaded and shown at the beginning and is unloaded at the end of the process. In...
  10. polocar

    A banal idea on how to populate quickly a long (sorted) ListView in C#

    Hi guys, thanks for your answers. Chip, I have tried to add your two methods as you suggested me: cslvList.SuspendLayout(); PopulateList(); cslvList.ResumeLayout(); I have put my two statements cslvList.LooseSorting(); and cslvList.SortColumn(cslvList.LastColSorted...
  11. polocar

    A banal idea on how to populate quickly a long (sorted) ListView in C#

    Hi, I see bugs everywhere, but this time I think I’m right (probably most of you has already discovered the problem). I’m writing a C# program using Visual Studio 2005 Professional Edition, and I have prepared a class called ColumnSortedListView, that is a derivated class of ListView, with the...
  12. polocar

    How to remove the DOS window when I execute my C# project

    Ok, it is because, in the project properties, my project was set as Console Application. It is sufficient to go to Project -> Project Properties and, in the Application tab, change Output type from Console Application to Windows Application.
  13. polocar

    How to remove the DOS window when I execute my C# project

    Hi, I would like to know if there is a way to avoid the DOS window appearing when I execute my C# project (it appears in both cases: when I launch the project from Visual Studio, clicking on Debug -> Start Debug, and when I double click on the .exe file in the bin/Debug or bin/Release...
  14. polocar

    Possible C# bug in a definition and use of an event/eventhandler

    Hi, I have defined a class derived from Panel class (let’s call it MyPanel). It contains three buttons, called btn1, btn2 and btn3. I have defined an event called BtnClicked, and I have thrown it in the code of btn1_Click, btn2_Click and btn3_Click (in practise, it raises when the user clicks on...
  15. polocar

    How to enrich in C# the event handler of a class in an inherited class

    Ok, it is sufficient to define the event handler of the base class as virtual
  16. polocar

    How to enrich in C# the event handler of a class in an inherited class

    Hi, I’m writing a C# program (using Visual Studio 2005 Professional Edition). I have defined a class MyPanel in the following way: class MyPanel : Panel { ... } In this class I have put a btn Button control, and I have defined the event handler: btn.Click += new EventHandler(btn_Click)...
  17. polocar

    How to compare and control in VBA two numeric TextBoxes fields

    Thank you guys, in this way I solved my problem
  18. polocar

    How to compare and control in VBA two numeric TextBoxes fields

    Hi, I’m developing a form in Visual Basic Access (I use Access 2003). In the form I have two TextBox controls (lets call them txt1 and txt2) in which the user must insert integer values. The integer value in txt1 must be >= than the integer value in txt2. If the user doesn’t respect this rule, I...

Part and Inventory Search

Back
Top