-
- Need Help With SendKey Function
by Nitsua
- 2 Replies
- Last post
by Nitsua
- Hi All, I am a new Visual Studios user and new C# programmer. Currently I am trying to figure out a way to automate a program install (hitting Next buttons, and then Finish basically) by the way of SendKeys, but I am running into problems.
Right the program brings the install window to the foreground and sometimes sends the Enter key correctly. Not really sure why it only works sometimes, o
-
- Control.Focus & Control.Select
by Alex-MyRpg
- 5 Replies
- Last post
by nobugz
- Hi - quick question here: what's the difference between Control.Focus and Control.Select (is there any or are there just two different methods on some controls for readability purposes e.g. you "select" a textbox when you want to input text rather than "focus" it ). If someone could clarify the difference and/or an example of where to use each, that'd be great. Thanks in advanc
-
- Designer can't find my class?
by Flecko1
- 0 Replies
- Last post
by Flecko1
- EDIT: I installed VCSE SP1 and haven't had any trouble since, it looks like this might have been an old bug because there was a hotfix (presumably included in the service pack) whose description sounded like my problem. Hello, I'm working on a windows forms app using the designer in VCSE. Everything was working fine for a while, but then one time I tried to build+run and got a MethodNotFoundExcept
-
- Multiple install of the same web project
by Oquendo
- 2 Replies
- Last post
by avinashraj
- I've seen a couple of threads regarding to make more then one deployment of web application, this thread doesn't have this purpose.
I need to be able to deploy multiple versions of the same web project to the same server throught web setup projects.
Is this possible My first fought was to change the unique identifier of the project, but i felt hacky...
Any ideas
Best re
-
- How to write a textbox can type text, copy and paste image like creating new in Outlook on my form?
by pvphuc
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I want to create a textbox on my form which can input text, copy and paste images like creating new in Outlook but I do not know how to start that. If you have writte that please give me the suggestion. Thanks in advance!
-
- GetPositionFromCharIndex(int index) in RichTextBox v.s. TextBox
by James S. Jan
- 6 Replies
- Last post
by James S. Jan
- Dear all, I found the GetPositionFromCharIndex(int index) is a little different from that in TextBox. And I have a question. Explain: If the length of TextBox & RichTextBox are both 2. textBox1.GetPositionFromCharIndex(2) -> invalid, return 0. textBox1.GetPositionFromCharIndex(1) -> valid, return the left bound position of the last character. richTextBox1.GetPositionFromCharIn
-
- how create an user control to behave like a panel?
by Ruppel
- 4 Replies
- Last post
by Rong-Chun Zhang - MSFT
- hi all, I wanted to create a Collapsible Panel. So I started creating a new user control and I added a groupbox and a picture (plus and minus symbol, to expand or close the panel). But then, when I add my collapsible panel to the Form and if I try to add a button inside my panel the button (or anything else) is added to the Form and not to my panel (if I move my collapsible panel to another place
-
- Windows Form Problem
by AshishKukreja
- 6 Replies
- Last post
by Gavin Jin - MSFT
- Sir
I have two Dataset naming Employee and Salary
Employee Dataset have three colomns coloumns ------------- Emp_id, Name, Address,
Salary Dataset have three more coloumns -------------------- Sal_id, Salary, Emp_id
in Employee Dataset Emp_id is parimary Key
in Salary Dataset Emp_id is Foreign Key
Now I want that both the dataset in Windows Form Employee Dataset i
-
- Form disappears
by AlicanC
- 2 Replies
- Last post
by AlicanC
- Code Block
#include "stdafx.h" #include <urlmon.h> #include <windows.h> #include "Main.h" using namespace CFToolbox_Updater; using namespace System; using namespace System::IO; [STAThreadAttribute] int main(array<System::String ^> ^args) { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); if(!File::Exists(&quo
-
- Inserting records not working...2 DGVs, Master/Detail, ForeignKeyConstraint, bound to 1 dataset (2 tables)
by Andeezle
- 2 Replies
- Last post
by Mike Wilson
- Hi All,
I have 1 dataset with 2 tables with one foreign key constraint relation defined between the tables. I have a form w/ two DGVs (a master and a child). The DGVs are bound with binding sources to the dataset.
Everything works EXCEPT, if I add a record to the parent DGV, then add related records to the child prior to committing the parent to the data store.
i.e.
* add a
-
- DataGridView Row Header Mouse Double Click Event, Visual Studio 2005
by Reza Bemanian
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi, This is a bit strange, as the mouse double click events for the row headers on this data grid view control do not generate the event. Despite the Click events for both row and column headers working fine, as well as the double click events for the header columns. Before digging any further, is there any previous occurence or experience for others regarding this event. Best Regards, Reza Bemani
-
- How can I create rounded curve label in Winforms?
by Vivekanandan
- 4 Replies
- Last post
by Vivekanandan
- Hello,
How can I create Label control with rounded curve in my Winforms . Could you please give me the steps.
Thanks,
K.R.Vivekanandan
-
- How to show AutoComplete drop-down programmatically?
by Vitaliy Biliyenko
- 3 Replies
- Last post
by Karthikeya Pavan Kumar .B
- Hello I'm using a textbox with autocomplete feature turned on (CustomSource, Suggest mode). When I start typing into the box, it suggests me possible endings of my text, like in browser. What I want to do is show all present variants without typing, like you do with browsers that remember data entered into web forms - you can simply doubleclick on that field and view everything you have entered ea
-
- Database does not open with first record
by MurrayS
- 5 Replies
- Last post
by MurrayS
- When I open a database using "Add new data Source" I then copy the supplied text box accross to the form.
When I run the project the first record is not displayed.
All the records are there, but all out of order.
What am i doing wrong
-
- Databind + Event + Usercontrol = problem?
by Dries Robeyns
- 5 Replies
- Last post
by Dries Robeyns
- Hello,
I have the following situation. I have a usercontrol with a few textboxes that are databound to a business object. The business object has custom events & eventhandler. Now when I try to load the usercontrol into a form I get the following error:
Object of type 'System.EventHandler' cannot be converted to type 'Classes.User+MyEventHandler'.
When I use a form inst
-
- Moving and copying windows form in visual studio 2005
by .net sukbir
- 0 Replies
- Last post
by .net sukbir
- Dear All,
I have a question say I have done a windows form then I want to make another new form which is similar to my earlier form with slight changes. So I want to copy my original form and make changes to it. How can I do it in visual studio 2005. This because when I copy and paste my original name of my class remains there. So how to do this type of copy My another question is that I
-
- Concurrency violation with deleted records
by Argenta
- 7 Replies
- Last post
by Rory (Clissold Solutions)
- I'm having problems updating data in a database.
This code is in my save option:-
Code Snippet
this .Validate();
this .sort_Resource_TypesBindingSource.EndEdit();
this .sort_Resource_TypesTableAdapter.ResetNewResourceTypes();
foreach ( DataRow srRow in this .linehaulDataSet.Sort_Resource_Types)
{
if (srRow.RowState == DataRowState .Added)
{
-
- How to package Clickonce installs and how to update it later.
by Rod Yager
- 6 Replies
- Last post
by AnthonyHunter
- We have an WPF standallone app that need to be shipped to client and deployed from there. Each client site will have there own app.config settings that include connection info. How can we deploy a ClickOnce deployment that can manage the updates at each client site an not in-house
-
- Windows Service Installation question
by TOANDO
- 4 Replies
- Last post
by TOANDO
- I have a windows service that runs on a little over 100 locations. Every time I upgrade the service and do a re-install, we have about 5% of the locations get a logon failure message. The account that the service is trying to run under is a domain account that has the credentials setup in the project installer class of the service. All I have to do to fix the problem is to manually go into the ser
-
- Master Detail problems.
by kurt_jackson19
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- Hi everyone,
I'm a newbie in .net, i have a problem in my application and I hope some could help or gave me an example code regarding with my problem.
My problem is I have two datagrids , the first one is for my Parent/Master data while the second one is for my Child/Detail data. And I have one datasource with an XML file, I could fill the two datagrids , in my Parent/Master datagrid is ther
-
- set delay between moves in ListView
by Tcherun
- 3 Replies
- Last post
by Yu Guo ¨C MSFT
- Is it possible to set delay between cursor's moves in ListView in List mode.
Then cursor is set to some element, and we begin press (and not release) arrow keys, it seems to be some delay between moves. Is it exists some method to control delay
-
- Zooming a group of controls(EDIT2)
by w0lfshad3
- 4 Replies
- Last post
by w0lfshad3
- EDIT: the panel logic must be before the child controls logic, fixed in the source or download
EDIT2: added on complete method that processes panel1 and its childs)
I just use ControlsBuffer[...Index] instead of panel1.Controls[...Index]
Code Block
Control [] ControlsBuffer = new Control [panel1.Controls.Count];
panel1.Controls.Cop
-
- Default values in combo box at form load
by coolarian
- 2 Replies
- Last post
by coolarian
- I have a scenario in which a combo box needs to be in a kind of freezed state with a default value shown but it should become workable or enabled when a user click the Edit button. I have two data tables, Table A and Table B. Table A contains all the required information of a book in one box, Table B contains two column Book_ID and Book_Name. Table A also contains the Book_ID of all the books avai
-
- Application.Run vs Form.Show?
by Patrick8
- 6 Replies
- Last post
by Patrick8
- I'm writing a program that launches another application (among other things), and it was doing fine until the developers of the other application changed Application.Run(ParentForm) to ParentForm.Show() . After reading quite a bit of documentation on these two functions, I'm still at a loss as to why it would cause my program to break. However, it breaks quite dramatically, with a LoderLock erro
-
- Automatic update works when turned off
by Demchuk
- 9 Replies
- Last post
by Anonymousgeeser
- Hi,
I'd like to check for and download updates programmatically. I've turned automatic updates off, and everything works as expected besides one scenario. If I check for updates manually (call CheckForUpdateAsync), find that there is new version available, but do nothing, next time user starts the application, automatic update occurs. This is the only case when disabled automatic update kicks i