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 bkrike 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: *

  • Users: polocar
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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)...
  9. 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...
  10. polocar

    Handle the form closing when the user clicks on the “X” form button

    Hi, suppose that you have a C# form with two buttons, that are the classical “btnOk” and “btnCancel” (besides them, of course in the form there can be many other controls). When the user clicks on btnOk, the program makes some confirm operations and closes the form. When the user clicks on...
  11. polocar

    Press Esc key to close a form with many controls

    Hi, I would like to find a way in C# so that, when the user presses the “Esc” key, the form closes; the problem is that I have a lot of controls in the form. At the beginning I have tried with the following form event handler: protected override void OnKeyPress(KeyPressEventArgs e) {...
  12. polocar

    How to raise by code the click event of a button in C#

    Hi all, I'm writing a C# program, and I was wondering: is there a way to raise by code the click event of a Button control, as if it was the user to have clicked on it? Thank you very much
  13. polocar

    C# ListViewItems lose their BackColor settings when I run the exe file

    Hello, I’m developing a C# program using Visual Studio 2005 Professional Edition. In the main form I have inserted a ListView control that is populated in a different way depending on the item selected in a ComboBox. I have written a procedure that reads the ComboBox selected item and populates...
  14. polocar

    Check if the database must be saved when you close a C# form

    Hi, I’m writing a C# program that interfaces with a SQL Server 2005 database (I use Visual Studio 2005 Professional Edition as compiler). I have defined the classical ADO.NET SqlDataAdapter, DataSet and DataTable objects so that, once the database has been loaded with the SqlDataAdapter Fill...
  15. polocar

    C# insertion of a record with CurrencyManager AddNew() method

    Hi, I have noticed a strange behaviour of CurrencyManager objects in C# (I use Visual Studio 2005 Professional Edition). Suppose that you have a SQL Server database with 2 tables called “Cities” and “Persons”, and that: “Cities” has 2 fields called “IDCity” and “NameCity” “Persons” has 3 fields...
  16. polocar

    Delete records whose couple of values not present in another table

    Hi, I have two Access tables (we can call them Table1 and Table2) with the same structure, that is 4 fields: IDRecord, num1, num2, num3. I would like to delete from Table2 the records whose couples of values num1, num2 are not present in any record of Table1. For example, suppose that Table1...
  17. polocar

    How to search for a file in Windows CE 5.0

    Hi all, I have a DataLogic BlackJet PDA with Windows CE 5.0 installed, and I would like to know if is there a way to search for a file in the device (I didn't find any function to do that) Thank you very much
  18. polocar

    How to del a SQLServer record relationed with onother one in same tabl

    Hi, I’m writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called “Generations” (in which there is only one table, called “Generations”), and it allows the user to add, edit and delete the various records of the table. “Generations”...
  19. polocar

    Multiple MainMenu objects with some MenuItem objects shared

    Hi, I'm writing a program using Visual C# 2005 Professional Edition, and I was trying to assign multiple MainMenu objects (one by one, of course) to the same Form (let's suppose 2 MainMenu objects). It is possible (and it's my case) that these 2 MainMenu objects use some different MenuItem...
  20. polocar

    ComboBox height is unsettable and changes from 20 to 21

    Hi all, before writing this thread I have noticed that many other people have my problem… If I use a ComboBox in a C# form, there is no way to change its height (unfortunately it hasn’t an “AutoSize” property settable to “false” as the TextBox). Perhaps, changing the font size, one can change...

Part and Inventory Search

Back
Top