16,005,120 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by fheyn (Top 25 by date)
fheyn
22-Feb-18 12:07pm
View
first of all thanks a lot for your response
when a set AllowUserToAddRows = false the dgv comes up empty and I can't add data at all (not the way I want to)
meanwhile I've replace the database-table with a local table that just contains the id-column (visible here).
I click the cell and get the same result : dgv shows three rows with the id in first row.
fheyn
22-Feb-18 4:40am
View
Deleted
@RickZeeland
private void DataGridLayout()
{
Item.DataSource = SourceTable;
Item.Columns["ID"].Visible = false;
}
DataTable SourceTable { get { return(Database.Datatable(ItemName); }}
fheyn
22-Feb-18 4:39am
View
@RickZeeland
private void DataGridLayout()
{
Item.DataSource = SourceTable;
Item.Columns["ID"].Visible = false;
}
DataTable SourceTable { get { return(Database.Datatable(ItemName); }}
Item is the dgvcontrol within the mdichild frmItem. Every form represents ONE
specific Item (i.e. a person, a car, a street...)
Database is a class that incorporates sqlserver and sqlite. (this project uses sqlite). Datatable is the table of the underlying tableadapter.
fheyn
12-Jan-18 18:05pm
View
if that's the only solution it's not applicable to my project.
the datagridview belongs to a baseform which subclasses several forms each using the dgv in a diffent way (columncount varies from 5 to 12)
using the solution shown leaves me with more work than I do have populating dgv
from each subform.
anyhow thanks for your answer
franz
fheyn
26-Jan-15 6:20am
View
frmSettings is the form where all the applicationdata can be edited.
frmSettings also saves and loads the applicationdata to the config-file.
I found a bit more precise exception description :
"rotatedImage.Palette" caused "System.Runtime.InteropServices.ExternalException"
ErrorCode = -2147467259
fheyn
25-Jan-15 10:20am
View
but isn't that what i do when i say
dicImage[i] = ByteArrayToImagebyMemoryStream(ba);
and later i say
m_Bitmap = (Bitmap)frmSettings.GetImage(0);
with GetImage() accessing the dictionary ?
fheyn
25-Jan-15 10:13am
View
it's method RotateFlip(rotateFlipType) (i pointed out that) in method resizeImage().
it only says gdi+ - exeception without any specification.
fheyn
3-Nov-14 10:59am
View
actually it's a dialog which tells you that it can't load the form (for edit) before
some problems have been resolved.
the existing problems can be displayed and then it displays these four lines (four each control)
that happens when in derived form a control is on the panel of baseform and
another control is removed in baseform from that panel.
derived form refrences not only the panel but all the controls it contains and
removing one of the controls creates a problem.
however i could not reproduce this problem.
thr initial problem i have 'resolved'. i've rebuilt the panel and the button and
now it works.
the result however is not what i expected it to be.
since the panel is placed below the datagridview, i wanted it to automatically resize when the datagrids size changes.
in case of my frmApp, i now get a dialog as wide as the defined panel whereas the
datagridview has only three columns.
maybe you could help with this. i tried autosize and autosizemode but the result is always the same.
fheyn
3-Nov-14 10:09am
View
vs 2008 express
fw 3.5
fheyn
3-Nov-14 9:04am
View
sorry, my first language isn't english and in vs-german 'bei' is 'by'
the four methods are displayed as error-message when i try to open derived form for
editing.
fheyn
3-Nov-14 8:58am
View
hi,
buttons properties are as the were before i used the panel
right now removing the buttons or the panel will not update the designer-files correctly
fheyn
3-Nov-14 8:49am
View
there's no secret to this, but the whole project is BIG, uses several DLLs and uses SQL server 2005 database.
this summer i tried to install it on a friends computer so he could do some testing for me but i could'nt get it going.
frmApp actually is a form which is called form an application which is called from the main program.
right now i'm really stuck
removing the buttons from the panel will give
bei System.Windows.Forms.Control.ControlCollection.GetChildIndex(Control child, Boolean throwException)
bei System.Windows.Forms.Control.ControlCollection.SetChildIndexInternal(Control child, Int32 newIndex)
bei System.Windows.Forms.Control.ControlCollection.SetChildIndex(Control child, Int32 newIndex)
bei System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.SetChildIndex(Control child, Int32 newIndex)
fheyn
3-Nov-14 8:12am
View
vs 2008 express
i think it's sommething with the buttons
put one of the buttons to the second panel and it wont't show either
put a radiobutton to the first panel and its displayed correctly.
fheyn
3-Nov-14 7:22am
View
thanks for your answer
1 : yes, 2 : yes, 3 : no
4 : when using instance of base form, form is display correctly
then i added another panel that holds three radio buttons that is display correctly too when using frmApp.
will it help to post designer-code of the two forms ?
fheyn
25-Dec-13 15:08pm
View
thanks for the hint
instead of datagridview.rows.clear() i had datagridview.columns.clear()
everything's working fine
fheyn
24-Dec-13 13:29pm
View
thanks for the response
i think the problem is mixed-up dotnet versions.
i have this code :
enum DI { INDEX=14}
double xmplfunc(DI index) { return(data[(int)index]); }
this was ok. right now the (int)-cast pops up an error message.
i had to install c#2008 on a new harddisk with already installed wxp plus dotnet3.5.
also installed with c# is dotnet2.0 (not very clever by the ms-folks)
that's the only explanation i have for the programs running before right now yielding errors.
fheyn
22-Nov-13 15:41pm
View
thanks a lot
you're right, I don't need DerivedClass to be generic.
thank you so much
fheyn
22-Nov-13 15:31pm
View
that's what I tried first and still get the same error-message
fheyn
12-Feb-13 16:27pm
View
i don't use dataAdapter
fheyn
10-Feb-13 7:12am
View
sorry, but this isn't very helpfull.
all that stuff seven or eight times before in the last ten days.
i built a new testproject from scratch this morning and it gets the same problem.
there is already some data in the db and i can retrieve it without any problem, but i can't neither insert nor update (delete i havn't tried, bet delete's gonna work).
fheyn
9-Jan-13 11:46am
View
thanks for the reply, sergey
to be honest, when I started out on this adventure I was thinking the same, but
a) I didn't find anything adequate.
the report is NOT visible and I didn't find anything that lets me format
RTB-text directly.
b) right now I've gone very far, so far that I even think of DLL
c) to me it's something new and it's VERY challenging
later on I'll look into the links you provided
franz
fheyn
31-Aug-12 7:02am
View
thanks for your suggestion
however :
a) when exiting management studio service (sql server express is the only one i found) is NOT stopped.
b) switching back to Visual Studio without exiting management studio does NOT work
fheyn
22-Aug-12 8:30am
View
hi,
up to now the application writes data to the database.
all's fine, the connection works and the table is filled as it should be.
Now i switch to sql server, start management studio and check the table.
i close ms and change back to vs.
i click the database icon and get an error-message :
Cannot open user default database. Login failed.
Login failed for user 'YELLOWMACHINE\M'
Only thing that helps is restarting the computer.
fheyn
10-Aug-12 8:23am
View
thanks for the quick reply,
as you suggested I added tblItemTableAdapter.Update
now I get a problem in Management Studio :
mydb now has no sub-tree (i.e. Tables, views, users) and trying to open the
properties brings this error message :
Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details.
the connection-string used is :
Data Source=.\SQLEXPRESS;AttachDbFilename=D:\_PRIVATE\DV\SQLE\MSSQL.1\MSSQL\Data\mydb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True
franz
fheyn
3-Dec-11 12:23pm
View
high,
thanks for the response.
as i pointed out above, executing the compiler and linker work fine.
however debug.exe doesn't. i've played around with RedirectStandardOutput and
RedirectStandardInput but debug's behavior stayes the same.
Show More