-
- Adding,deleting -> datagridview
by thrinker
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hi!, im having trouble with the saving in my datagridview.
It shows data from my database and i have enabled adding,deleting. But
when i run the program trying to add some data it just dosnent add
anything into the db.
Thanks.
herman
-
- WebBrowser control shows HTML code
by Aussie
- 8 Replies
- Last post
by Figo Fei - MSFT
- Hello,
I've a project where i'm assigning a HTML string to the DocumentText
property of the WebBrower. On most PCs there's no problem with it, but
there are PCs which show the actual HTML code instead of the webpage.
Any idea's what's the reason and a possible solution :)
Regards,
Aussie
-
- How to add a custom control to Toolbox?
by mishazh
- 2 Replies
- Last post
by mishazh
- I think that should be simple but...I have an assembly with some controls (inherited from System.Windows.Forms.UserControl ). I created setup project where writed a registry value ( HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\Public Assemblies ) that makes my controls visible in Choose Toolbox Items dialog.
But what should I do to add my controls directly to Toolbox , for
-
- COM Registration: RegistrationServices in Custom Action works, "Registration" option with TLB does not
by Artie Sluka
- 3 Replies
- Last post
by Artie Sluka
- I've inherited an installation project that is an installer for a derivative of the 2.0 rendition of Pavel Zolinkov's Band Object library ( http://www.codeproject.com/csharp/BandObjects20.asp ). Previously, we used a custom action for our installer that first leveraged the Fusion API to call ComReg.FusionInstall.AddAssemblyToCache(path + "BandObjectsLib.dll"); and so on for our various libra
-
- How to show the caps lock is on balloon warning like Windows
by nbaker
- 11 Replies
- Last post
by nbaker
- Does anyone know how I can show that balloon that windows shows when you are trying to logon and your caps lock key is on There are some VB examples out there of how to show balloons, but I need to show one using C# not VB as a warning to users when their caps lock key is on and they are trying to logon to an internal system.
Anyone have any links to how to do this in C# or some C# code that w
-
- Can't draw to entire form measuring 1280 x 800, only 290 x 270
by BLeRg
- 1 Replies
- Last post
by ZW2
- I discovered that autosize had been set to true (last post), and I did use the sizeChangedEvent, ran into a dead end, so I looked through the designer again and finally found and fixed the problem. Thanks though. But as soon as I corrected that problem, I became tired of the pictureboxes slow update speeds, so I shrank it to 20 x 20 and quit using it. I started drawing to the form again, but now I
-
- Help! "Concurrency violation: the UpdateCommand affected 0 of the expected 1 records"
by Thomas82
- 13 Replies
- Last post
by Itzik Kramer
- Help! I have a Access 2003 Database that holds info like "customer name" "phone number" etc. When I enter that info and then click new record then go back to the previously created record and add some more information in the other text boxes ("address", "age", etc) I get the following error: Concurrency violation: the UpdateCommand affected 0 of the expected
-
- DataSource and DataGridView problems. Couldn't resolve by googling. plz help
by Thyscorpion
- 11 Replies
- Last post
by BabyFace Jay
- hi everyone,
I am a fairly new programmer to .NET and was having some problems with the connection of Datasource and my datagridview ...
I have a MS Access DB with a table which i want to show onto the DataGridView.
I got this code online and it works in showing up all the fields in the select query onto the DataGridView(ContactsDGV).
Now the problem being the TextBox1.Text inv
-
- Console and GUI app in one
by Ben Rinaca
- 8 Replies
- Last post
by Markus Essl
- I know there are possible solutions out there, but none that fit my exactly what I'm trying to do. Let me explain my situation and why the existing solutions aren't favorable:
I am writing an administrative tool that is primarily a Windows Forms interface, but allows a user to run it through command line arguments for batch processing, automation, etc. When the application is launched throu
-
- How to create an uncompressed setup.
by TechNetUser
- 2 Replies
- Last post
by TechNetUser
- Does anyone know how to create a setup that does not compress all files into a single .msi file
I'd like to be able to send this uncompressed setup to a customer admin, who will modify a text file based configuration file as needed for their site before the setup is deployed to the ultimate end-users for installation on their PCs.
I can do this with InstallShield by setting the Medi
-
- PrintDialog - Changed settings values not getting retained
by Am X
- 1 Replies
- Last post
by Raj Amb
- Hi,
I am printing some documents multiple times in a for loop. I have declared a printdialog box globally and inside the loop i am calling
prntDialog.ShowDialog();
Now when it came for the first time, i changed the settings of the printer (which is different from the default settings). But when the printdialog comes next time it is showing default settings only. I want it to show the
-
- Dataview error
by polachan
- 1 Replies
- Last post
by Luc Morin
- Dear all...
string getvalue
DataView dv = new DataView(dsCustomers.Tables["CSV"], "CustomerCode = getvalue",
"", DataViewRowState.CurrentRows);
While executing above statement an error will occure . How can I pass the string variable getvalue in the above statement
-
- Setting the icon for a form
by gridman
- 8 Replies
- Last post
by gridman
- I created an icon, then clicked on the form, then went to the form's properties and set the Icon property to point to the icon file. What I want is the icon to show up in the title bar of the form, and show up on the taskbar when the form is minimized. But, this isn't working. I'm puzzled because I thought that was what the Icon property was for.
Oh, the form's ShowIcon property is set to true.
-
- Shortcut to rename controls?
by RRRouter
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- Say I want to rename 40 controls. That will be a lot of clicking in the design window. Is there any shortcut for renaming controls. Something like: mark control + F2 + write new name Is there something like that
-
- Browse Component properties inside a Form
by andretorresan
- 4 Replies
- Last post
by beshaghy
- Is it possible to browse (Properties Window) through all properties and events of a component that was created (not dragged and dropped) inside a derived Form I want to expose those component props when this derived Form is selected in the designer.
-
- ShortcutKey in a toolstripmenu item (vb.net 2005)
by Dominique Gratpain
- 5 Replies
- Last post
by Dominique Gratpain
- Hi,
I like (and my users too) use the keyboard. Often it is easier and quicker than to use the mouse.
So I try to use shortcutkeys and esperluette (&) in a toolstrip menu in VB.NET 2005 but I have some problems:
1) if I put a shortcutkey on a toolstripmenuitem parent which has children, I never see the shortcutkey.
Menu1 Menu2
Menu11 M
-
- accessing remove files
by drorav
- 4 Replies
- Last post
by nobugz
- hi,
I need to add a feature to my application: i want to add a user & pass verification which verifies the details (user&pass) with a remore file. the file is located on a server (for example: http://www.compix.co.il/users/34582/files ), and it's a text file. I need help in defining the correct objects and classes for opening the text file for getting input from it.
thanks in
-
- ClickOnce installation with multiple executables (referenced projects)
by Nic Roche
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- Hi,
We have an application divided into several modules. The modules are evoked from a splash menu. For technical reasons we need to develop the modules as seperate WindowsApplications (not class libraries). When publishing using clickonce we get an error:
System.Deployment.Application.InvalidDeploymentException (RefDefValidation) - Reference in the manifest does not match the identi
-
- showing publish version/date on form
by Ljhopkins
- 4 Replies
- Last post
by nobugz
- in vb6 i used to show the version and date in the caption bar like this
strVer = "VERSION NUMBER:" & " " & App.Major & "." & App.Minor & "." & App.Revision & " " & App.Comments Me.Caption = Me.Caption & " (" & gtStation & ")" & " " & (gtArea) & " "
-
- 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
-
- Controls retain values after form close
by imranmp
- 5 Replies
- Last post
by EliGazit
- I am puzzled by this problem. I have two forms... I call one form from the other using NewForm .ShowDialog()
NewForm has a bunch of textboxes, comboboxes and radiobuttons. it also has two buttons, btnAdd and btnCancel;
btnCancel click event executes: Me .Close() and btnAdd runs an insert sql and then closes the form by Me .Close()
the problem is that when i call NewForm aga
-
- Setup Project Questions
by smehaffie
- 6 Replies
- Last post
by Anula
- I have created a setup project for an application I am writing and have a few questions.
1) I need to create an event log for my application and want to do this as part of the installation. How to I get the installer to run C# code I have written to do this I do not see anywhere that code can be entered for any of the forms (default forms or custom forms). I thought this was done through c
-
- Tab Control
by Nidal-Fouad-Hajj-Youssef
- 1 Replies
- Last post
by Nidal-Fouad-Hajj-Youssef
- Hi,
I have a problem with a Tab Control
Windows Form Application (visual Studio 2005, VB.net)
I have a Tab Control consists of some tabPages,each TabPage
consists of some controls for example (label,button,....)
Sometimes (In design view) the controls of a tabPage disappear
In this case I need to close the form contains this tab control and reopen it to review the controls that w
-
- ToolStripSpringTextBox in tool strip with 32 pixel images.
by Nick Gardner
- 4 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hi,
I'm using the ToolStripSpringTextBox taken from
http://msdn2.microsoft.com/en-us/library/ms404304.aspx
I'm using this in a tool strip with large (32x32) image buttons.
The http://msdn2.microsoft.com/en-us/library/ms404304.aspx . resizes correctly, but as it resizes the ToolStripSpringTextBox moves mometarily to the top of the tool strip (Y=0 in Bounds). This causes a
-
- Update new row bound datagridview Error :Value cannot be null. (Using vb 2005, mysql-connector-net-5.1.2, combobox, & CheckB
by lemune
- 2 Replies
- Last post
by lemune
- Hi, all. My problem is when updating data on new row without pressing Enter before it give error message :"Value cannot be null.Parameter name: dataTable". And if I pressing Enter before it work, so i check the changes if i didn't Enter the value is null and if I Enter first the changes has data This is my Code:
Code Snippet
Imports System Imports System.Data Imports Syste