Answer Questions
Aaron Oneal DataBinding Text to Object???
Can anyone tell me why my "new" data that i enter in my textbox controls will not commit to my Update or Insert statements When i run my app and enter "new" data i set the "CALL STACK" for a breakpoint....when the app switches to the break point if I enter new data in my form it goes to the "INSERT" and if i enter some data that i had already stored the "UPDATE" is highlighted.....It seems that my app knows which query to call but it sends nothing to them......here is my databindings... public void LoadFormToData() { try { txtCustomerCode.DataBindings.Add("Text", Customers, "CustomerCode"); txtAttention.DataBindings.Add("Text", Customers, ...Show All
Wendell G setting hotkeys for macro's in a vb.net
I found the below link and was able to create a blanke xls. http://support.microsoft.com/ id=303871 I created a import of a userform and created a macro openForm in the excel spread sheetI the users do not want a new button they want a hot key ctrl Q (will work) but I cant get it to work. here is my code why does it not work Dim oExcel As Microsoft.Office.Interop.Excel.Application Dim oBook As Microsoft.Office.Interop.Excel.Workbook Dim oModule As VBIDE.VBComponent Dim oformcomponent2 As VBIDE.VBComponent Dim sCode As String ' Create an instance of Excel, and show it to the user. oExcel = New Microsoft.Office.Interop.Excel.Application() ' Add a workbook. oBook = oExcel. ...Show All
rabbitoh Rich and Plain Text
Hi Does anyone knows how to code an Open Rich text or Plain Text file in childForm with RichTextBox thanks jbattat I trying to code close document events for close menu item but it did not work. can you help Thanks jbattat Hi Thanks for your replay. I have window form with RichTextBox. My menu open can open only file with plain text LikeThis code: childForm.richTextBox.LoadFile(openFileDialog1.FileName, RichTextBoxStreamType.PlainText); But if i would like to open a Rich Text file, I have to change the code to that: childForm.richTextBox.LoadFile(openFileDialog1.FileName, RichTextBoxStreamType.RichText); In either case if I try to open a file th ...Show All
Steve Jensen Culture of DatePicker
Hello Is it possible to change culture and language of DatePicker Thank you (Moderator: Thread moved to this forum for better responses) I need DatePicker in Hebrew language with available NULL value of date (in case user don't select any date). Switching between months and years is easy. Hello All. worldhello: Um, OK, never mind. The short version is that if you want a DateTimePicker to be displayed in Hebrew, then the user must have Hebrew selected as the language choice for date and time formatting in Control Panel -> Regional and Language Settings -> Regional Options. The longer version is that DateTimePicker (and MonthCalendar) are Windows Common Controls. They use the user setting in Cont ...Show All
PawanSingh Application hangs after changing display properties
Hi, I am working on a Windows Forms app. The main form has TabControls, Panes, TreeViews,...When it is running, if I change anything from Display Properties (screensaver, desktop, it does not matter.. just pressing OK) then my app gets freezed: cannot repaint, cannot be moved, it does not respond. According to Task Manager, the task is active and the CPU and memory use seem ok. Even if I do not change Display Properties, this behavior occurs randomly. But it does not happen when I am debugging. I am using Framework 2.0. Is anybody experiencing this kind of problems Is there anything I can test to get more details about what is going wrong Any help will be appreciated. Thanks. You said that it won't hap ...Show All
Swarna Capture the row information from a datagridview
Hi, Could someone please advise me of the simplest way to capture the row information from a datagridview using VS2005 Each row in my dataGridView consists of four columns from my sql database, and I would like to 'capture' the all the row info and input it into a datatable to display in another format further on. Can anyone please advise me of any pointers you can use the SelectedRows collection property in the DataGridView to get all the rows the user selected.... DataGridViewSelectedRowCollection theRowsSelected = this.theDataGridView.SelectedRows; then access the row you like for example from it and do whatever you want with it. Is this what you are after If I understand correctly, pl ...Show All
Suraj Guptha VS 2003 and framework2.0
Hi, How can I point VS2003 to framework 2.0 I have both 1.1 and 2.0 installed on my development machine and for some reason I cant install VS2005. How can I point VS 2003 to 2.0 framework. In this scenarion, will I be able use new features of 2.0 such as datagridview, enhancements in ADO.net and other new features Thanks, Short of kidnapping a few Microsoft engineers and nabbing the source code to both 2003 and 2005 you are out of luck on getting it to work in 2003. You may want to look into the Visual Studio Express Editions which are language specific free IDE’s that are simply slightly stripped down versions of the higher ones and target the exact same 2.0 Framework... otherwise you a ...Show All
Imran Hasware adding background image raises MissingManifestResourceException
I use VC++ 2005 express and tried to add a background image in a form. I modified the right property and in the designer the image is shown correctly. But when i run the program I get MissingManifestResourceException. I think it's because the image is not correctly added to the resource file. Am I right How can this problem be solved Did you also set the Localizable property to true No I didn't do it. I don't even know what it means. Anyway, setting it to true doesn't solve the problem. It's like the image wasn't added to the resources. ...Show All
Cammyr ClickOnce on VISTA - elevation is required
Hi, A full-trust ClickOnce app was working fine on XP and now it blows up on VISTA with the folowing error message: "ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://server.product.com/Applications/product.application resulted in exception. Following failure messages were detected: + The requested operation requires elevation. (Exception from HRESULT: 0x800702E4) " Questions: 1. How to find out what exactly requires elevation The only thing I can see in the Event Viewer\Applications and Services Logs\Miscrosoft\Windows\UAC is this: " The process failed to handle ERROR_ELEVATION_REQUIRED during the creation of a child process. &quo ...Show All
Liu Qiang How to prevent ComboBox auto DropDown
Hi, I'm writing a custom CheckedComboBox with a multiple item select future but when I select an item from the dropdown menu, the dropdown menu automatically closes. How can I keep it open to select more than one item thanks for any help. Hi, thanks for your help effort again. After a lot of search about the steps I need to take to complete my CheckedComboBox, I found out some codes in MFC but I could not convert some of the code to C#. I could do it importing the dll itself and forgetting the rest but I'm really interested in solving this code so that I can add some extra functionality to it. The original code is from http://www.codeproject.com/combobox/CheckComboBox2.asp Below is one of the difficult ...Show All
MaggieChan ComboBox SelectedIndex Crashes my program
Hi. ComboBox1 items = collection ... 1=IBM Flt32 2=Sign Int32 3=Sign Int16 4=Sign Int32 withGain 5=IEEE Flt32 6=Sign Int8 I am using the following code on formload. Running through debugger it crashes when I click "step into" on the following line of code. //Binary Header Settings this ->comboBox1->SelectedIndex = this ->SegyContainer->GetBINARY_Settings_no1DataType_TracesPerRec(); The return type for GetBINARY ... is int.Getting desperate I added //Binary Header Settings this ->comboBox1->BeginUpdate(); this ->comboBox1->SelectedIndex = this ->SegyContainer->GetBINARY_Settings_no1DataType_TracesPerRec(); this -& ...Show All
Cookman Setup and deployment project, resilient feature
Hi, I have created the setup which install the exe file in application folder and .gif files in the Image folder. If the user deletes the .gif files/icon files from the image folder and when the user tries to run the application, application starts repairing the installation. My question - i) Is this inherent feature in the deployment package ii) Is there a way to disable the resilient feature, so that even if the .gif files are deleted from the image folder, the application continues to run as it is without invoking a repair Kindly let me know if any one has the answer to this question! Thanks, Rajshekhar Hi Davi ...Show All
Dan Morris Different fonts for different stucture members
Hi guys! I have a structure with many member elements. There are also many charecter strings aswell. The problem is, i want to assign different fonts to different members (based on some properties), coz i want to load these members from this structure into a windows form where i want them to be displayed in different fonts. I know exactly which members must have what font and and how many members with one particular font. Can i somehow predetermine the font for the members of the structure Cheers! I find a thread the same to yours,what you should do is to make a little change "How do I color a individual cell depending upon its value or some external method " We give three different ...Show All
Kapalic How do I update the changes from my DataGridView into my SQL table?
Hi all, having a hard time to understand the relation among Dataset, tables, Dataviews,etc... I am trying to update my SQL table after I do some modifications in my DataviewGrid(or table ). See code below: ... string strConn = "Data Source=(local);user id=sa;password=xxx;Initial Catalog=UpgradeClient;"; da = new SqlDataAdapter("SELECT * FROM STBData", strConn); table = new DataTable("STBData"); da.FillSchema(table, SchemaType.Source); dataGridView1.DataSource = table.DefaultView; da.Fill(table); ... private void btnUpgrade_Click(object sender, EventArgs e) { string strAccountId, strSTBid, strSTBType = ""; Int32 selectedRowCount = dataGridView1.Rows.GetRowCount(DataGridViewEl ...Show All
toniSQL problem with installing over an existing installation...
hi, sometimes when i execute the installer over an existing installation the install detects the previous install and prompts to uninstall. but sometimes it just detects this and tells me i have to use "add remove programs" to do it. i have not determined why this happens does any one know the reason and how to fix this thanks. scott One explanation could be that there's a mismatch between the default installation mode and the installation mode of the already installed app. If it's intalled per-user/just me and your installer's default is per-machine/all users, then at startup Windows Installer won't detect the Upgrade Code. This is hard to solve after the fact, but if you have the oppor ...Show All
