-
- How do I reference a control's properties?
by Vhradice
- 8 Replies
- Last post
by Vhrasice
- I am new to VC++ but not to programming.
I am trying to change the Text property off a textbox when I click a button. However I cannot determine the proper syntax to reference the text field.
Form name - Form1
Textbox name - Textbox1
Button name - Button1
In Button1.Click I tried the following - all of which fail compile
Form1::Textbox1->Text = "Hello World" ; /* er
-
- ClickOnce: Error "Application cannot be started. Contact the application vendor"
by Sung M Kim
- 3 Replies
- Last post
by Sung M Kim
- .NET Version : 2.0 Visual Studio: 2005 I have run across an error after finishing deploying ClickOnce application to a shared network folder. It's avaiable "Online" only. When clicking "Run", application is installed and is present in application cache but displays "Application cannot be started. Contact application vendor". I have cleared cache using "mage -cc&q
-
- tableadapter.insert not working
by genius15
- 8 Replies
- Last post
by BonnieB
- I created the table adapter with the wizard, and it created the insert, update, etc methods. When i run the tableadapter.insert method, i will insert the record into the dataset, but it is not inserting the record in my MS access database, and yes I have the tableadapter.update coded under the tableadapter.insert line. What is happennig. Its this a bug
-
- auto tab proeprty for alll controls in a windowsform
by chaitu
- 3 Replies
- Last post
by Rong-Chun Zhang - MSFT
- i want the cursor to move the focus from one control to to other in the windows form when it reaches the maximum sieze of text box or like tht and to toehr control it should be liek that can any one help me wit hcode please
it should loop through alll the controls in the form
-
- Developing custom control in vs.net 1.1 win forms app
by dotnet crazy
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi, In visual c++, I have developed several custom controls (actually active-X controls) and also registered them so that they can be seen on the tool box, so that they can be dragged and dropped on forms. One of them is an alarm control which is simply a circle with color filled in to it. Alarm control has two events on and off state, so when it is in on state brighter color will be displayed whe
-
- How to create a control similar to that of option dialogs in windows
by dseknat
- 1 Replies
- Last post
by nobugz
- Hi All, Is it possible to create a form similar to that of open file dialog box with some options on the left side. On selecting a particular option, the controls on the right side changes. Is there is any control already there, to do it easier. Please any one help me. regards dseknat
-
- how to set parent of a form?
by Flip597
- 1 Replies
- Last post
by nobugz
- I'm trying to create a Windows screen saver (lots of tutorials, have a working version, very cool IMHO :>), but the one thing I would LOVE to do (and none of the tutorials I found have it) is to be able to use the preview window (/p:1234 argument) in the Screen Saver Settings window.
I'm able to get the window handle from the /p argument, and I think I need to "set the parent of my
-
- Databinding a listbox gives error when switching between Dataset and DataRow()
by Mark B .
- 2 Replies
- Last post
by Mark B..
- Hello,
I am binding a listbox to a dataset ... (_msgCompany is a dataset)
Code Snippet
....
' bind to the listbox
With lbCompany
.ValueMember = "CompanyID"
.DisplayMember = "CompanyName"
.DataSource = _msgCompany
End With
Then when a user types in a textbox, I want to filter the results ....
-
- Pulling Data From 2 Tables On One Page
by Caddyjoe77
- 12 Replies
- Last post
by EliGazit
- Hi,
I have 2 tables. tbl3215 and tbllog. I created stored procedures in SQL that access these stored procedures. What i am wanting to do is pull data into 1 datagrid view(tbl3215) and with the other datagrid pull results for that specific entry in the other table(tbllog). I didnt create this database, only migrating it from PHP 5.
Here is a little background:
I have a databas
-
- Run a program in admin context while logged on as a normal user
by ViolaIT
- 2 Replies
- Last post
by windfinder
- Hi experts
This is my situation, I am so appreciated if anyone can help me out
I am a system admin at my company. I have installed an application for my colleagues (logon as an admin to do this install), it works fine if I am in the admin login. However, my colleague can't execuate this application if he logon as a normal user (Error: Access denied).
I understand I can use the fu
-
- Count Gridview rows...
by Tom T.
- 10 Replies
- Last post
by Tom T.
- How can I get a count of the rows within a gridview
-
- Setting the Listbox index
by Kevey
- 2 Replies
- Last post
by Kevey
- Hey there,
I'm new to C# so pleasebear with me. I'm creating a listbox and adding items to it just fine. Obviouly this creates an index starting from zero but what I'd like to set the index myself.
For example I have a list of names I want to display, I'm adding them to a listbox:
listboxName.Items.Add(Name);
Is there a way to set a different value to what is displayed in the l
-
- WebBrowser Control and background-image
by stige
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hey there,
I am using the webBrowser control and i want it to have an image background.
so basically all i'm doing in initalize it's HTML content with CSS :
background-image=url(¡°a.jpg¡±);
the html is fine. the problem is that the background image refers to the XPath of the html page, and since my html is on memory and not a real file i'm not sure how it can refer to a l
-
- Using ErrorProvider w/ Business Object in Winform
by jrsearles
- 2 Replies
- Last post
by jrsearles
- I have a custom object that implements IDataErrorInfo to provide validation checks. This works great in datagridview - i can bind the grid to my object and validation errors are shown with no extra code. I thought perhaps i could just throw an ErrorProvider on a winform and that bound controls, such as textboxes, etc, would also use the validation rules, but this isn't happening. Does anyone have
-
- Deployment Files location
by edi.Y
- 4 Replies
- Last post
by edi.Y
- Hi, I'm deploying my application and the files which are located In the Documents and Settings\USER1\Local Settings\Apps\2.0\M1JJ4A6P\... has some strange directory behavior, the deployment creates a folder for each 3rd party dll I'm using... my code which have around 15 dlls in in one location and click once creates a directory for each of the 3rd party dlls, why is this behavior i also found th
-
- NativeWindow problem
by Asyrk
- 5 Replies
- Last post
by Asyrk
- Hello,
I need to create module with ClassName " UOASSIST-TP-MSG-WND ", but it throws "System.ComponentModel.Win32Exception: Window class name is not valid." Anyone please know how to fix that or what i'm doing wrong Code Snippet nativeWindow = new NativeWindow(); CreateParams cp = new CreateParams(); cp.ClassName = "UOASSIST-TP-MSG-WND" ; cp.Caption = "
-
- render DB images as thumbnails in read-only Datagridview...
by mbsJFT
- 2 Replies
- Last post
by mbsJFT
- .net 2.0 framework, vb.net, vs 2005, SQL 2005 compact edition.
-------
successfully adding and displaying BMP, JPG and PNG images to and from SQLCE 2005 database. Datagridview is populated with a dataset (changing to SQLCEdataadapter soon) and is bound read only. Image shows but is usually MUCH larger than the cell.
I want to use the equivalent of a picturebox with ZOOM in order t
-
- How can I get the Datetimepicker's selected part
by Joky
- 4 Replies
- Last post
by Yu Guo ¨C MSFT
- Datetimepicker has three part "day,month,year", how can i know which part is selected
-
- copy file from a server using internet
by KRISTER
- 1 Replies
- Last post
by KRISTER
- Hi
I need a program that copys x number of files from a server using internet. files that need to bee copyed is in a list and the program are going tru the list one by one.
program is checking if a file is local if found -> do not copy.
if file not found locally do copy from a server.
Where can I get some more information for this problem.
-
- Binding Radio Buttons to data
by SiN!
- 2 Replies
- Last post
by Kiavash
- Hi all,
Until now, I've been manually assigning radio buttons with their checked value. Then on checked changed event, I write the value to the TA. This all follows me over from VB6 days and the fact that I can't seem to figure the binding out with radio buttons.
Can anyone confirm that I'm doing the right thing Is there a better way
-
- DataGridView: how to stop / cancel sorting
by tonn
- 6 Replies
- Last post
by tonn
- Hi, Asked before but quite surprisingly not answered. Allow me to try again.
I have a DataGridView bound to a DataTable. I want my users to be able to sort a column by clicking the header. I don't want the DataGridViewRows to rearrange themselves while a user is editing cells, as this is perceived as annoying. However, once a sort has been invoked the DataGridView keeps on sorting.
How do I
-
- Grid Scroll
by danych
- 3 Replies
- Last post
by danych
- Hi all
how is it possible to move the scroll bars of a datagridview control programmaticaly
Thank you
-
- attaching an icon to a shortcut
by miscal
- 2 Replies
- Last post
by Stephen Bialobok
- hi,
I created a setup & deployment project for my application - all works fine. Only when I attach an icon to the shortcut I've created to the user's desktop - I keep get an error message when trying to build the setup project - "invalid icon file". I tried to first add the icon file to the application folder and only then associate the icon to the short cut, and I've tried to cre
-
- How to Show same controls on multiple tabpages
by Coreysan
- 1 Replies
- Last post
by H. (¶¬) Tony
- I'm new to C#, and I have a tabcontrol with two tabpages.
When I click on the 2nd tab, I'd like to have one of my
groupboxes from the 1st tabpage show up on the 2nd
tabpage. Can this be done
If so, how can I code for that I know that in VB 6.0 you
can simply code "groupbox1.visible = true" once I've tested
the selectedindex, but in my C# application, that doesn't
-
- C# double clicks (half don't respond)
by GregFilis
- 3 Replies
- Last post
by Zamial
- Hi all,
I have two tab pages in a tabControl with 16 PictureBox controls on each page. Each PictureBox control has a double click event tied to the same handler. All 16 on tabPage1 respond to the double click. None of the 16 on tabPage2 respond. Any ideas on what might cause this
Thanks,
Greg