Answer Questions
Dave--C Messagebox
hi Is there anyway so my "messagebox.show" buttons will be in different language meaning instead of "Yes/No" Hmmm, there isn't a direct way to do that, however, you can create your own MessageBox simply! Even if i changes settings in OS No! Its dependent on OS, if you need to customize them yourself you can create your own with a Form. Best Regards, I tried it now it didnt work Where I can do that Im using vb.net 2003 Thank you Thank you for your reply but it didnt work Public Sub main() Dim ci As New System.global ...Show All
RichLeyshon Permanent Cropped Image In Picture Box....
Hi everybody, Do you have idea how to make a cropped image permanent inside a picturebox control I have a first image loaded into a picturebox control then I crop(cut/get) part of that image, but when the form lost focus and then return to focus, the first image is seen in the picturebox which should be the cropped image. Please provide codes. Thanks in advanced. [code] private void CropImage() { //bCrop = true; if (cRect != Rectangle.Empty) { Rectangle sRect = new Rectangle(); sRect.Location = pictureBox1.Location; sRect.Size = pictureBox1.Size; pictureBox1.CreateGraphics().DrawImage(pictureBox1.Image, sRect, cRect, GraphicsUnit.Pixel); // ...Show All
Grant Holliday Controls Gone Again!
I have a VB project in VS 2005 with a menustrip. I added several menu items and added code to handle them. Came into work today, open the project look at the form and all the menu items are gone... The code to handle the click events are still there and the code in the designer file is still there, why do they not appear in design mode or when the application runs This is the second time this has happened, the first time I had to delete the control, manually clean up lots of autogenerated code, then rebuild then entire thing. This is really killing me, I cant waste time rebuilding things over and over, I have real work to do. How do I get the controls back without manually cleaning it up and re-designing it all found a solution ...Show All
Digo21 Problem reordering items in ListBox bound to DataView
I am creating an application that contains a ListBox control databound to a DataSet. The user should be able to click on a button to move list items either up or down in the order that they appear in the ListBox. This is proving somewhat difficult to do. I have currently implemented this using a DataView with a column "OrderPosition" corresponding to the order the item should appear in the list and the DataView sorted by this column. When the user clicks up or down buttons the code changes values in the OrderPosition column to reflect the new positioning. The code below is for the down event and the error is shown in the comments: If Not Me .componentsListBox.SelectedIndex = 0 And _ Not Me .componentsListBox.SelectedIn ...Show All
Andy 01264 moving rows in datagriview
Is there a way to move a row in a datagridview up or down Thanks. Jim... all that code does is remove the selected row. How about something along these lines (the first row becomes the second row .. just be careful to ensure your row remains in bounds) Dim view As DataGridView, row As DataGridViewRow = view.Rows.Item(0) view.Rows.Remove(row) : view.Rows.Insert(1, row) Hope this is what you were looking for Richard This text will give you an answer if u r binding the grid to a table in database simply keep a colum in the table of priority and give all the rows a priority when displaying the data in the grid keep that column hidden keep the selectio ...Show All
Roughknite EditingControlShowing and DataGridViews with >1 ComboBoxes
Hello fellow programmers, I have a dataGridView with 2 comboBoxColumns amongst simple textboxColumns. When I click on the combo in column 4 everything is good grid_EditingControlShowing is called and rawComboChanged is called after it. But when i then click on column 11, rawComboChanged is called immediately, skipping the call to grid_EditingControlShowing that should point the code towards currencyChanged method. I think i found the problem: "The DataGridView reuses editing controls across cells if the type is the same"... But i dont have a solution... Can anyone help public void grid_EditingControlShowing(object sender, System.Windows.Forms.DataGridViewEditingControlShowingEventArgs e) { DataGridView dataGridView = ...Show All
Coleby Changing NoNullAllowedException when editing via a DataGridView ?
Hi, does anyone know how I can gain a little extra control over the message associated with an NoNullAllowedException when editing via a DataGridView Basically, the situation is this. I have a DataGridView bound to a (designer built) DataTable. One of the columns in my table is set to disallow nulls and, sure enough, when I blank the grid cell value (and move off the row) , I get the "NoNullAllowedException". All fair and well so far... except... My DataTable has "Caption" values for each of the DataColumns (and those captions are used to display the column headers in the grid) . The problem comes from the fact that the exception message uses the column name and not the caption. This might not be anything l ...Show All
ToToX How to automaticly start second setup after first setup
My problem is next: I want to setup some win application and after that setup i want to automaticly start setup of some web service. can someone help, thanx Hi, I wanted to do the same thing in a setup project that I created. My solution was to use a custom action to spawn the new setup. This required me to include the second setup executable in the file structure of the new app. I used System.Diagnostics.Process.Start() to spawn the new process. This is a messy solution and there may be a better one out there. I would love to hear about it if there is! ...Show All
eldiener Prevent the child control is deleted at usercontrol
I'm making a usercontrol. it has a child as tabcontrol has tabpage. the diffencies between tabcontrol and my usercontrol are 1. my usercontrol has only a child. (this child is also usercontrol and its designer is inherited from ParentControlDesigner) 2. the child must not be deleted. in order to prevent the child from being deleted, I tried to add a logic into IComponentChangeService.ComponentRomoving event like below * in Designer of the usercontrol IComponentChangeService c = (IComponentChangeService)GetService(typeof(IComponentChangeService)); c.ComponentRemoving += new ComponentEventHandler(c_ComponentRemoving); ... void c_ComponentRemoving(object sender, ComponentEventArgs e) { if (e.Component.Ge ...Show All
Madhur Bhardwaj openFileDialog (help with Declaratoin) Thxs
ok first off here is the C# Code i have: private void button14_Click(object sender, EventArgs e) Stream myStream = null; OpenFileDialog openFileDialog1 = new OpenFileDialog (); openFileDialog1.InitialDirectory = "c:\\" ; openFileDialog1.Filter = "txt files (*.txt)|*.txt|All Files (*.*) | *.*" ; openFileDialog1.FilterIndex = 2; openFileDialog1.RestoreDirectory = true ; openFileDialog1.Title = "Load Client List" ; openFileDialog1.FileName = "" ; if (openFileDialog1.ShowDialog() == DialogResult .OK) { try { if ((myStream = openFileDialog1.OpenFile()) != null ) { using (myStream) { //insert code to read the stream here } } } catch ( Exception e ...Show All
DigitalPenguin CD deploy did not install the program after installing the prerequisites!
I had a friend try installing my app from a CD. After installing the prerequisites, he said that it did not install the program! He had to eject the CD and reinsert it, then it installed correctly. The CD has on it: autorun.inf setup.exe Setup1.msi dotnetfx (folder) SqlExpress (folder) WindowsInstaller3_1 (folder) Here is what is in autorun.inf: [autorun] open = setup.exe icon = setup.exe,0 ...Show All
Kevjs How do I specify an Icon file from args of Mage.exe and how do I create 2 entries in the start menu?
Hi everybody, I am attempting to automate a little bit our usage of the ClickOnce technology. Using MageUI.exe, I was able to successfully build a ClickOnce application that installs itself on the user's workstation, with the Icon File specified like if I did everything using Visual Studio 2005's publishing wizard (shortcut in the start/programs menus and all). Here in our project, it is not an option to use Visual Studio's wizards and msbuild to automate deployment of iterative builds. I am trying to do the same as I did with MageUI.exe but at the command line, using Mage.exe . In MageUI.exe I could specify an EntryPoint, and an IconFile, in the Files section of the application manifest tab. I see no documentation and n ...Show All
howard dierking - MSFT menu item and AddHandler?
Ok, new problem. I can not find where I did this before. Dyamically adding menu items: string sql = "Select * From myTable"; OleDbConnection conn = getDb(); conn.Open(); OleDbCommand myCommand = new OleDbCommand(sql, conn); OleDbDataReader myReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection); while (myReader.Read()) { mnuView.MenuItems.Add(myReader[0].ToString()); } myReader.Close(); I need to add a handler to each menu item for a click event. Check/uncheck and other actions I already have written. It's like right on the tip of my mind, but just can't see it... must be late. Thanks, Zath Excellent! Thanks. I didn't have the Men ...Show All
Billy Porter binding filtered datatable to datagrid using framework 1.1
Hi, I am using framework 1.1. I want to bind a datagrid with a datatable but only after applying a filter over the datatable. Alternatively, I can also apply filter on the dtagrid, but I think there is no datagrid.filter property. How can I do that such that it does'nt effect performance a lot DataViews are usually very slow, so I would rather not use datafilters.. Again, I am using framework 1.1. Thanks, You never really bind to a datatable. You are actually binding to a DataView the datatables default view. ...Show All
dragoncells Converting a file to an UNKNOWN APPLICATION HELLP!!
I was recently tweaking my video game, but in the middle of this I opened a .cfg file with notepad. Now that I have done this, all .cfg files are thought to be used with notepad. So, when I attempt to play the game, it shows an error in reading one of it's .cfg files. I want to know after choosing a program to open a file with, could you make that file back into an unreconizible file I really believe this is the problem. All .cfg files are now notepad, and this goes for other games too. I would have to remove them all in order to start the comp's idea of the file over. HELLP!! I guess this question is totally out of place. If you know anything about computers your answer lies in the regist ...Show All
