-
- :: I have never succeeded in hiding a property ::
by assassin316
- 4 Replies
- Last post
by assassin316
- Here is my situation:
I have a control inherited from MaskedTextBox . I added a property called Value . I want the users of this new control to use the Value property and not use the Text property when setting a new value to this control. Therefore my intention is to hide the Text property from external use. I tried making the property Private but that doesn't work.
Anyone h
-
- Trying to deploy the program
by puffzotty
- 6 Replies
- Last post
by donkang
- I am trying to publish my program using Visual Studio .NET 2005 by going through Build -> Publish "Project"..
When I run my project either by building the project and go to bin/Release folder and run the exe file, or just by pressing "F5", it works fine. But if I publish the project and install it on a system, it won't find the access to database file.
So I tried to un
-
- Creating a color chooser
by cygnusx
- 3 Replies
- Last post
by Bob zhu - MSFT
- How to create control like the one in MS Office,from which the user choose a color Or how to fill a combobox with different colors
-
- Embed a Java applet in a C# windows form.
by r3gan
- 4 Replies
- Last post
by r3gan
- Hello,
I have (what I think is) a rather difficult question here. I am working with an existing Java applet that was designed to run in part with an application framework built for MSHTA (.hta) files. If you're unaware, .hta files are simply .html files but can only run locally and security constraints are lifted so that they can interact with Windows scripts for file system manipulation, e
-
- Problem with GDI+
by modmans2ndcoming
- 5 Replies
- Last post
by nobugz
- Hi, I am new to C#. I am attempting to convert a Java applet I wrote into C# and have gotten almost all the way to the end. The application drawn chord in a circle based on relationships in modular groups. The chords draw fine and it is working as expected except that every so often, when I draw a new set after having previously drawn 1-3 sets, the new set will disappear. It seems that the graphic
-
- CalendarEditingControl : DateTimePicker for DataGridView how to retain date previously in cell
by Mutex Spinlock
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hi, I'm using the CalendarColumn that comes from the MSDN example on a DataGridView and setting it up as a strictly time spinner by setting Style.Format to custom and CustomFormat to "HH:mm: ss" in the constructor. The problem I'm running across is when I click the timespinner to change the time I pulled from the database and store the new time,the time itself is being stored properly b
-
- how to add such checkbox column?
by Jassim Rahma
- 3 Replies
- Last post
by Yu Guo ¨C MSFT
- Hi,
I am using this code to populate data into datagridview and i want to add a simple checkbox column which is not related to any field in the database but it will be used for the staffto select the visit and make the payments for the selected visits only.
how can i do that
public void get_visits() { this.Cursor = Cursors.WaitCursor;
data_table = new DataTa
-
- how to pass searching for updates if the publishing location is down
by Syri
- 2 Replies
- Last post
by Syri
-
when starting published application, it tries to get the updates from the publishing location, if he can't find the location then error message will appear and user can't start the application.
how can i force the application to start using the previous version of the application if the location is down
thankfully waiting for reply ASAP.
-
- DataGridView - Put an icon at header cell
by Oric.CQ
- 4 Replies
- Last post
by Oric.CQ
- Hi,
Using VB is there a way to use an icon, instead of text, as a column header (the content of this column is text or checkbox)
My DataGridView Application must have the following lay-out:
____________________________________
header ! Text ! Icon ! Icon !
------------------------------------------------------------------
Row 1 !
-
- How to display Explorer.exe in a Form?
by Mister T554781
- 2 Replies
- Last post
by Mister T
- Hello,
VS2005 does not seem to include any controls like Windows Explorer (explorer.exe). Is there a way to display explorer.exe in a Form
Thanks for any ideas.
-
- Stored procedure vs Query in VB.Net and backend - SQL Server 2000?
by Harsh585762
- 3 Replies
- Last post
by Kev at PwC
- I am developing a windows application in VB.Net 2005 and Database is SQl Server 2000. I want to insert, update and delete records from a master table which has 8 columns. So should I write a stored procedure for this or write three queries and execute them in code. I haven't used stored procedure before. What will be advantages of using stored procedures And tell me how to write stored procedure t
-
- Opposite of PropertyInfo.GetGetMethod()?
by coconut113651
- 0 Replies
- Last post
by coconut113651
- Hi,
Does anyone know if Reflection provides a way of querying the MethodSemantics table (ECMA p.II, pg. 149) I'm looking for the opposites of PropertyInfo.GetGetMethod(), PropertyInfo.GetSetMethod(), EventInfo.GetRemoveMethod(), etc., in other words i want to find out what Property or Event a particular method is associated with.
I think MethodBase.IsSpecialName() tells me whether it is this
-
- Get text from combo box using API
by michael447887
- 5 Replies
- Last post
by deodorant2
- Can anyone tell me what Windows API I should use to get the text of the selected item in a combo box I looked on pinvoke.net and couldn't find anything too useful on there. I tried using G etComboBoxInfo and GetWindowText but neither of them worked. Does anyone have any other ideas Thanks.
-
- Stronly typed datasets question.
by Sabrecat
- 3 Replies
- Last post
by Sabrecat
- I have a strongly typed dataset that I am using in a Web application. I initially created the dataset by creating a Windows Application and letting the dataadapter generate the dataset for me. Once I migrated the dataset files from the windows app to the Web app I went through the designer.cs file for the dataset and changed the default way for handling null values in the database. Baiscally I cha
-
- Business object's BindingList property, interaction with default constructor
by Anjo Gasa
- 2 Replies
- Last post
by Anjo Gasa
- I have business objects roughly equal in design to the following. I don't show code for the parent class BusObject, which simply handles implementing the INotifyProperty interface for all my derived business objects, such as the NotifyPropertyChanged method, which fires the appropriate event.
[XmlRoot("Person")]
public ref class Person : public BusObject { public: Person(voi
-
- Question on Copying selected items from a ListBox to a text file in Vb.net
by nbk5533
- 0 Replies
- Last post
by nbk5533
- I'm looking for some assistance on copying items I select (Selected Items) from within a ListBox control, to a file somehow. Once I can get it into a file, I will have an array to collect this information and read these items in to run a query against a Database.
The below sub will allow me to populate a list of applications into the ListBox.
Private Sub ListBox1_SelectedIndexChan
-
- newbie: binded data for date and change the datetime format
by adel james
- 5 Replies
- Last post
by adel james
- Elo...
i have a column in dataset with format mm/dd/yyyy 12:00AM (hmm from wat i've read so far mayb this is US format). When i do this...
DateTime date = Convert.ToDateTime(dataset.Tables["master_table"].Rows[CurrentRowIndex].ItemArray[15].ToString);
xrBill_Date.Text = date.Day + "/" + date.Month + "/" + date.Year;
The output is what i wanted ---> eg.
-
- Dialog results
by Chardiot
- 3 Replies
- Last post
by Peter Ritchie
- Having come from Delphi I am trying to figure out how to use dialog boxes in VS C#. I have created a form MySearchForm containing a listBox but this is a private field. In the main form I wish to call the dialog as such
MySearchForm searchForm = new My SearchFoodForm() ;
searchForm.listBox.Items = // but this is not exposed as it is private
if {searchForm.ShowDialog() = Dial
-
- How to make currently selected row invisible ?
by UnKnown Nick
- 4 Replies
- Last post
by wekelly
- This the message I get when I try to make currently Selected Row invisible. "row associated with the currency manager's position cannot be made invisible". I want to make all the rows in the dataviewgrid to be invisible.Any help My Code: if (dataGridMain.SelectedRows.Count > 0) { dataGridMain.Rows[0].Selected = false; } for (int nIndex = 0; nIndex < dataGridMain.Se
-
- Non-English Warnings
by Tile
- 1 Replies
- Last post
by nobugz
- When I use OpenFileDialog.ShowDialog(), the dialog is in Dutch (which is fine for the moment). It says 'Bestandsnaam' for Filename, 'Bestandstypen' for File Types etc. But when I select a non-existing file, the warning is in English. How can I change the warnings to Dutch (or to any other language)
-
- Duplicate text in 2 textbox concurrently
by shevo
- 5 Replies
- Last post
by Karthik Krishnaswami
- Does anyone know whether is it possible for a input into a textbox1 to be duplicated in another textbox at the same time E.g I type in apple in textbox1, 1 character at a time then textbox2 will also input the same character as I type
-
- Allow only ONE (1) checked item on CheckedListBox Control
by Nick_Dev
- 3 Replies
- Last post
by nobugz
- I have multiple items on windows CheckedListBox Control form and need to allow only one (1) value to be checked at a time. How can this be accomplished
Thanks,
-
- ShowDialog() Method
by holy_spirit
- 8 Replies
- Last post
by holy_spirit
- hay all .... I have a form and when I display that form on the screen I use ShowDialog() method now.. when I display a Message using MessageBox.Show() method and once I click on the ok btn for that message the parent form gose to hide ... what i have do to prevent that thank you
-
- How to get all the opened form.
by arish
- 1 Replies
- Last post
by nobugz
- How will I get all the opened form in a system I want to store it in a List of System.Windows.Forms.Form, so I dont need handle of the form. How will I get all the running application in a system
-
- Picture box and Background Image problem in VB
by Firebat
- 2 Replies
- Last post
by Firebat
- First of all, hi everyone, Im new to the community, I've been working with Visual Basic for around 2 years now. Recently I changed my laptop and got a widescreen display (running vista). So most of the apps I made had a splash screens which was basically a borderless form with a background image. When running these apps in the new laptop I noticed that even when the form is technically 300x200 p