-
- SqlException: Error converting data type numeric to decimal
by Ravi Santha
- 2 Replies
- Last post
by RaviSantha
- Hi, I have a table field which is decimal and defined as decimal(8, 7). When I am inserting values it accepts values less than 10 and when I start entering values 10 and above throwing me an error "Error converting data type numeric to decimal". I am really confused with this.. please help me.
-
- RichTextBox.LoadFile exception, file is being used by another process
by sriesch
- 8 Replies
- Last post
by nobugz
- I was attempting to use RichTextBox.LoadFile() to load a file, however when mousing the file in and out of the folder which forces my application to re-read the file, I occasionally get the error " The process cannot access the file 'C:\temp\eraseme.txt becuase it is being used by another process." Is there a better method of reading the file I should be using instead that will work even
-
- RowFilter property of the RelatedDataView
by bheybi
- 1 Replies
- Last post
by hrubesh
- Hi! Good day Why is it that the RowFilter property of the RelatedDataView class does not filter the records Is this a bug or not Here is my code snippet: CType(Ctype(Me.BindingContext(Me.GridView.DataSource,"MyRelation"),CurrencyManager).List,DataView).RowFilter="Amount>100" It does not filter anything on the RelatedDataView. Hoping for a positive response. :-)
-
- Do I need a Binding Source? Why?
by Yeshia
- 3 Replies
- Last post
by Bob zhu - MSFT
- This has always kind of confused me. usualy, when I want to bind a DataTable to a DataGridView, I just say:
somDataGridView.DataSource = dtSomeDataTable;
that's it... works great. So my question is, why would I want to complicate things and bind my Datatable to a BindingSource, then Bind that to the DataGridView Thanks...
-
- New Tab With Exact Layout Than Previous
by Fred FR
- 7 Replies
- Last post
by Fred FR
- Hy, I have a a question here, that is driving me crazy and I wonder if anyone can help me. I have managed to create a "add new tab" button to my app, but what I want the the tab to have is exacly the same layout that the main tab (the front page). In my app I want the user to choose how many tabs he wants to have open, but, I want to make every tab to have the same behavior and the same
-
- How can i zoomin/out the image in pictureBox?
by gikgapoo
- 6 Replies
- Last post
by JohnWein
- hi i'm newbie. i want to ask everyone for the basic C# Syntax of zooming in/out the image in picturebox.
first i type this code in event btnZoomin_Click
pbMap.Height = pbMap.Image.Height;
pbMap.Width = pbMap.Image.Width;
*pbMap is my pictureBox's name.
but when i run this code in my PPC. it shows the VScrollbar and HScrollbar in my form1(that shown in this lin
-
- Does GDI+ allow my application to go full-screen?
by sofakng
- 7 Replies
- Last post
by nobugz
- I'd like to create a Nethack or Dwarf Fortress clone and I'm wondering if I can get use GDI+ for my project. Does GDI+ allow me to display my game in full-screen (eg. just like a regular full-screen game, except mine will be done with text only) Also, can I use the Windows Forms controls (eg. list-boxes, menus, etc) with GDI+ Will they work in full-screen mode (if that is available) Also, is MO
-
- The ConnectionString property has not been initialized.
by hrubesh
- 4 Replies
- Last post
by hrubesh
- Hi,
I started getting this error when I started using transactions.
Basically this is the code:
public virtual void SaveInvoice_Charges()
{
using (TAInvoice.Connection)
{
TAInvoice.Connection.Open();
TAInvoiceCharge.Connection = TAInvoice.Connection;
SqlTransaction transac = TAInvoice.Connection.BeginTransaction( IsolationLevel .ReadCommitted);
-
- Problem using ErrorProvider
by AjayB
- 5 Replies
- Last post
by nobugz
- Hi,
I am having a single error provider on my form. when i set error, it displays the error text properly in Tooptip properly but when i click on the error provider after that we are not able to see the error in tooltip is there any way to forcefully show the tooltip error
Thanks & Regards
Ajay
-
- Format text in data grid view
by szsz
- 4 Replies
- Last post
by szsz
- HI I have the folloing code in my datagrid view EditingControlShowing event.. private void dataEditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { DataGridView D = sender as DataGridView; if (D.CurrentCell.ColumnIndex == 1) { TextBox txt = (TextBox)(e.Control); if (txt != null) { txt.KeyPress += new System.
-
- Getting information out of a Datagridview
by xlordt
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- How would I go by getting all inserted information in a datagridview If you guys don't mind me asking.. or a tutorial would be great.. because each row will go on different location points. --- edit -- I mean how do I retrieve user inputted info out of the datagridview.
-
- disabled control w/o enable = false?
by w0lfshad3
- 2 Replies
- Last post
by w0lfshad3
- I need a control to be able to let messages fall through it as if it were disabled. How can i do that If i set enable = false it also disables its children and i don't want that.
EDIT:
Visually when i click on the control i want its parent to get the message or any control that has been overlapped by this one(and hold coords that have been clicked - messages not to be sent just to the pa
-
- VB2005 - how do you get rows to delete from a datagridview?
by AshleyC-UK
- 3 Replies
- Last post
by Supes
- Ok ive got a datagridview thats bound to a collection. Ive set allowedits and allowdeletes and ive set the selection mode to RowHeaderSelect.
I can edit cells and the changes are reflected in the collection. So thats ok, but whats not happening is when you press Delete, rows arent deleteing from the grid. Am i missing something here
-
- How to press a button in another application's dialog (OK Button)?
by Azurewrath
- 7 Replies
- Last post
by Azurewrath
- Hi,
I am automating some stuff via COM, but for some reason one action brings up a dialog with OK, and Cancel buttons. Is there a way to press that OK button in my code
Thanks,
aw
-
- how to change the code when i covert file from asp.net 1.0 to 2.0
by michiko
- 1 Replies
- Last post
by Ken Tucker
- Public Class clsDBConn Private Shared connStr As String = "Data Source=(local); Initial Catalog=OSTS_DB; user id=sa; pwd=;" Private Shared intTime As Integer Private Shared strURL As String = "Timeout.aspx" Public Shared Function GetConn() As SqlConnection GetConn = New SqlConnection(connStr) End Function Public Shared Function OpenConn() As SqlConnection Op
-
- DGV w/ CalendarControl
by Mark Tompkins
- 3 Replies
- Last post
by theRule
- I have a DGV with a calendar control. The calendar control works fine for those rows that have an entry in the field.
When clicking on the DGV to enter a new (line) entry, the default value which was in the calendar cell from the code is replaced to a NULL value. This change causes an understandable "InvalidCastException" in trying to convert the (Null) value to a date.
The default
-
- restricting datagridview column to numeric value
by no-cool
- 10 Replies
- Last post
by rajeev_learning_vb2005
- hi there i am new to c#.net and i have been trying to restrict my column to accept the numeric value only. I have tired using columns>DefaultCellStyle>Format and then numeric. But when i run the application it accept the character also (with parsing error).
But i want only numeric value (retrun true else return false).How could i do this.
-
- Making the Cell in the datagrid Read only
by Prabakars
- 2 Replies
- Last post
by Prabakars
- Hi,
Topic : Windows Forms Datagrid
Problem:
I need to make the particular cell value read only based on the another cell value.
for example if i have 2 columns i want to make the second columns cell read only based on the 1'st columns cell value.
Kindly help me .
Thanks in advance
Regards
praba
-
- Publishing a windows project.
by Mohamed Saleh
- 3 Replies
- Last post
by Peter Ritchie
- Greatings,
I finished a Visual Studio 2005 pro project and went to the project property page to Publish it.
It worked for the first time. But when I tried to republish it the same way
the problem started. with error messages as " An unhandeld problem happened" or " the project can not be started".
I noticed that in the successful try, there was a file called 'Publis
-
- Color shading
by sirithvasa
- 4 Replies
- Last post
by S.Guhan
- Hi there,
I have a problem to shade colors with PInvoke. I have to release a printing software, which uses System.Drawing Namespace, itextDotNet and PInvoke.
With System.Drawing is was easy to shade, because I only set the alpha-value of the color. The same for itextDotNet, there it is the tint-value.
How can I set this value in PInvoke E.q. for the color black, the shading should look
-
- Datagrid View
by RueSam
- 1 Replies
- Last post
by Andrea Montanari
- Hello-
If I write the following code to omit threading, the datagrid view will display the grid; but the code as shown below won't show the grid except occasionally if stepping through the program.
I know the data is there in the DataSource member of the datagrid object of acctSummGridView.
Would someone please explain what's going on...
Ruel
namespace ClntMgmt
{
public pa
-
- Adding a ComboBox to a bound DataGridView
by ForEverLearning
- 9 Replies
- Last post
by Darren Gulliver
- Hi,
How can you add a ComboBox to a bound DataGridView
I know how to add a ComboBox if the DataGridView is NOT bound using something like:
cbo = new DataGridViewComboBoxCell ();
and then populating the ComboBox, construct other row columns and finally perfrom a
dataGridViewx . Rows . Add ( dataGridRow );
This does not work if the DataGrid is bound - Hence my question.
Th
-
- Referencing a Hidden Column in DataGridView
by Ben Stopforth
- 5 Replies
- Last post
by Gavin Jin - MSFT
- Hi,
We are trying to format a datagrid view based on a date field. The grid is built programmatically and the DateArchived column is created and made invisible. In the cell formatting function the following code is run :-
If dgvCampaignPerson.Columns(e.ColumnIndex).Name.Equals( "DateArchived" ) Then
If CDate (e.Value) = frmMainMenu.clsGlobals.NullDate Then
'TODO: C
-
- ClickOnce vs Setup project
by Jarodtweiss
- 6 Replies
- Last post
by IanInSpokane
- Hello All,
I have a simple application and I wanted it to be auto-updatable. So I was looking a bit to ClickOnce deployment which seem to work nice but as it will install the software will be installed in "Local Settings" folder, my application will not work properly.
It want to ba able to deploy it in the "program files" folder.
So I was looking for a normal s
-
- Text box only accept certain charachters
by szsz
- 1 Replies
- Last post
by Chris Langsenkamp
- Hi how can I make a text box only accept certain characters for example only numbers 0-9 or any character set thanks szsz