Answer Questions
lwfoon Error: System.ArgumentException: Culture ID 2155 (0x086B) is not a supported culture.
I run a small program to show all installed win32 cultures on my PC. After running this, program shows me exception like “ System.ArgumentException: Culture ID 2155 (0x086B) is not a supported culture. Parameter name: culture ” Anyone having idea of fixing this problem I want to ger rid of this error and because of this, I am started getting some other errors. I have Dot Net Framework 2.0 installed on my PC. Is this because of some installation problem of Dot Net Framework To fix this up, I tried uninstalling and Reinstalling Dot_Net_Framework_2_0 but still it did not work. It sounds like the function using the "culture " parameter is not referencing the correct .dll or is not fully qualified. ...Show All
SynergyNT Load an image using windows form
Hi, I'm trying to load an image from a file using a pictureBox and a button in the windows form. I want it to open a file dialog when the button is pressed and when the image is selected i want it to be displayed in the pictureBox. I've looked through the help file but it only has information on actually setting the filename of the picture before run time. I really don't know where to start as i'm new to this, can anybody help Cheers All above code samples are in C#. If you are/were a Java developer, you might want to look into it: http://msdn.microsoft.com/vstudio/express/visualcsharp/ I have heard it is relatively easy to migrate from Java to C#. In my opinion it is easier to master C# t ...Show All
Nfrf ClickOnce manifest issue
I have run into an problem that has me a bit confused. The issue is a deployment error message which bascially is --> the manifest may not be valid or the file could not be opened. I had read a lot of internet materile on this but have yet to solve the problem....there is a twist..... On my primary computer I am running Visual Studio 2005 PRO. I wrote a very basic application in vb.net that consisted of a single button and a label, when you click on the button the label displays some text. Now when I deploy this program using ClickOnce I get the above error message BUT when I hand my flashdrive to my partner who is running Visual Studio 2005 Standard he opens the project and deploys it without any difficulty. ...Show All
Suman Ghosh Dynamically choosing a UI library
Hello All. I'm working on an educational app that is targeted for ages 6 and up. I've got two versions of the UI library, simple (for the youngsters) and normal (for the not-so-youngsters). Both libraries are self-contained and localized, so UI upgrade is simply a matter of file replacement. The user can switch between normal and simple at runtime simply by selecting a menu command. The way that I'm doing it now is by maintaining a persistent UIState variable and checking it each time I need to open a form. That's the problem. I'm wondering (can't find anything on the forums or in MSDN) if there isn't a way to make the check once, initially, and responding to the user changing the option, and not having to check again. Basically, ...Show All
Ofir Epstein Binding to Multiple Datatables in a Dataset
Please Help: I have 2 tables in my dataset: T1{Key, Value1} - loaded from SQL database T2{Key, Value2} - created by calculations in VB. I need to display a DataGrid showing {Key, Value1, Value2}. How do I do this In crude terms I wish to Bind my control to an 'SQL statement' opperating on the 2 tables in my Dataset. Is this possible I have looked everywhere and can't find the answer. Thank you. By the way, if your table2 was created manually, why did not not just dump value from table A in there you would have key value1 value2 one time and yep done: okay this is just another way if it is possible .. yep I have a similar issue, and i use stored procedure, i promise you it is not the easiest way around ...Show All
Wheeldo How to build a windows application project into dll?
Hello everyone, Maybe you understand while you're reading my subject. I'd like to build different projects into dlls and integrate them into a main project. For example: In the main project "ABC", I have a main form which has 3 buttons: "A", "B", and "C". When I click on button "A", the project "A", which was built into dll, will be displayed on such Main Form. And I'll do the same way for "B" and "C" buttons. Thank you very much in advance. Regards, Thanks a lot, I solved the problem Hi, create a Visual C#->Windows Control Library project and design your control (which can ...Show All
xdzgor How to pass the combobox value as a parameter to a database?
I have 3 comboboxes and one textbox. How do I pass the chosen values from the three comboboxes and the information on the textbox as parameters to a stored procedure Thanks for the help. Where does the term "SelectedValue" come from I know it must have to do with the combobox, but its just a string object. That made sense..Thanks. If you look at what Intellisense shows when you type "MyCombo.DataBindings.Add(", the second overload shows three parameters, the first being "string PropertyName" ... IOW, what property of the ComboBox you're binding to. And that would be "SelectedValue" ... when the u ...Show All
Andrew Buyan something broke between 1.1 and 2.0 here
I have an old control I wrote, that worked in 1.1 but doesnt anymore (actually it does, but marshals some interop stuff wrong). its the SysIpAddress wrapped into .net, and one of the events isnt comming out right. in my WndProc: protected override void WndProc(ref Message m) { if(m.Msg == (WM_REFLECT + WM_NOTIFY)) { NmIPAddress ipInfo = (NmIPAddress)Marshal.PtrToStructure(m.LParam, typeof(NmIPAddress)); if(ipInfo.Hdr.Code == -860) { if(values[ipInfo.Field] != ipInfo.Value) { values[ipInfo.Field] = ipI ...Show All
PCSQL66 include vfpoledb.dll into .net build (VB.NET 2005 windows forms)
Hi, I need to distribute vfpoledb.dll along with my application, the dll needs to be placed into C:\Program Files\Common Files\System\Ole DB (create if doesn't exists) and register it using regsvr32 How can I do that Thanks, Igor Or, better yet, use Bootstrapper Manifest Generator to create a bootstrapper package for this .exe and use the bootstrapper (setup.exe) to run this install before you install your application. Works with either ClickOnce or Windows Installer. If you do this, you can post your FoxPro OLE provider bootstrapper package on GotDotNet for others! :-) I made my own bootstrapper for this: here is the package.xml within the 'en' directory for my bootstrapper (vfpoledb.e ...Show All
Billr17 Make form run in full sceen
Hi, I'm making an application what will run on a touchscreen, and the application needs to cover the whole screen, Could somebody please tell me if there is a way to do this, I would also appreciate it if you have any advise on developing touchscreen application since this would be my first one. Thank you in advance! It worked, thank you so much for your help. Not much. I'm setting the Bounds to Screen.Bounds just to make sure that the form covers the task bar. Add the following to your form: protected override void OnLoad(EventArgs e) { base .OnLoad(e); FormBorderStyle = FormBorderStyle .None; // hi ...Show All
Sixto Concurrency violation at update
Hi I had a working vs 2003 application with access backend. I added a couple fields in a table in access db and then to allow user to have access to these fields via app I did the following; 1. Regenerated the data adapter sqls by running the data adapter wizard and pasting the resulting code into my app. 2. Deleted the data adapter correspond to the relevant access table from the dataset and re-dragged the table to dataset to have the new fields included in the resulting data adapter. 3. Used below code to bind the windows form field to the underlying table field; db = New System.Windows.Forms.Binding("Text", ds, "tblClients.MyField") txtMyField.DataBindings.Add(db) Now when I run the app I can view t ...Show All
R Raghu Merging arrays
Hi All, I am trying to find answer for this for the past 5 days and I didn't come across a reasonable solution. What I am looking for is ... I am getting no.of two dimentional arrays from one part of the program. And I need to write these array data to Excel. If I get say 50 arrays, then I need to call the Excel writing function 50 times, which opens, writes and closes excel object each time when it get called. This results poor performance. So I am looking for better alternative. I came across with two solutions a) Keep the target excel open and close only at lost b) Merge all the arrays into a single array and call excel only once. I feel option b) is more suitable for me as in case of a) I need to open multiple exce ...Show All
berndS Tab through Tree nodes
Hi, How to tab through tree nodes in window forms Thanks Balamurugan Add a new class to your project and paste this code: using System; using System.Windows.Forms; public class TabTreeView : TreeView { protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { // Trap Tab and Shift+Tab to tab to node if (keyData == Keys.Tab) TabForward(false); else if (keyData == (Keys.Tab | Keys.Shift)) TabBackward(false); else return base.ProcessCmdKey(ref msg, keyData); return true; // No further processing on Tab keys } public void TabForward(bool collapse) { // Select next node in tree TreeNode node = this.SelectedNode; if (node == null) return; if (node.Nodes.Count &g ...Show All
Mateusz Rajca How to add new row from dataGridView
I bind dataGridView1 with bookBindingSource, now i wanted to add a new record from dataGridView to dataBase book table, how can i will do so. Thanks I am not sure I understand the question. Are you looking for bookBindingSource.AddNew I think I'm having a similar issue. I have a DataGridView that is bound to a Strongly Typed Dataset. The dataset is a simple Single Table collection of records. I GetData() to fill the dataset, but when I try to Add a new row Dim thisDataGrid As DataGridView = RevisionEntities.PkgGrouper.Controls.Item( "PackagesDataGridView" ) Dim thisDataRow As Integer = thisDataGrid.Rows.Add() I get an error stating "System.InvalidOperationException: Rows cannot be programmatically adde ...Show All
niallhannon DataGridViewCheckBoxCell problem
Hello I am using DataGridViewCheckBoxCell in datagridview. When i check and uncheck the particular column, the column is marked as checked. The code used is as foreach ( DataGridViewRow row in dgOrders.Rows) { DataGridViewCheckBoxCell include = ( DataGridViewCheckBoxCell )row.Cells[ "Select" ]; if (include != null && include.Value != null ) //if checked { Do processing } } what will be the problem I am sorry to say that the problem still persists. I have set the truevalue of the checkboxcell to true before binding to gridview as DataGridViewCheckBoxColumn chk = new DataGridViewCheckBoxColumn (); chk.HeaderText = " ...Show All
