|
Dave Kreskowiak wrote: Martin# wrote:
Because the project needs it!
No, it doesn't.
Yes, it does
Dave Kreskowiak wrote: Martin# wrote:
I know that it's "a bad designed GUI"
Yeah, it is. And this doesn't excuse it.
Dave Kreskowiak wrote: Martin# wrote:
Apart from that it has to do some graphical output, charts, ...
So what?? A single cached bitmap that you do your drawing on, then that gets repainted to the screen.
So nothing! Just wanted to say that apart from >6000 output and input boxes and labels, there are other controls handling some tasks. In fact we are using ZedGraph Control (about 20-30).
Dave Kreskowiak wrote: Martin# wrote:
And the bad thing is, that the pages (UserControl with TabPages) allways have to stay in memory, because of fast reaction time at page change.
So you're telling me that you're storing your apps data in all the controls??
No, not even when I reread my sentence I would come to that idea!
I have the feeling you have are lacking of sleep!
We just hold the pages in memory, couse the instanciating of the page during runtime (page change) would take too much time.
All the best,
Martin
|
|
|
|
|
Martin# wrote: I have the feeling you have are lacking of sleep!
Guy, you have no idea how true this is.
I used to work for a major automaker, and I've seen and supported some huge plant floor control systems that blew my mind in their complexity. But in no case, have I ever seen anything approaching a couple thousand handles, let alone 10's of thousands.
There is no reason to have a page full of label controls to show data when your code can be rewritten to paint all the data itself on a single page.
|
|
|
|
|
Hello Dave,
Dave Kreskowiak wrote: Guy, you have no idea how true this is.
I'm happy, that you keeped your humor.
Dave Kreskowiak wrote: I used to work for a major automaker, and I've seen and supported some huge plant floor control systems that blew my mind in their complexity.
And thats the point:
You are talking of an application for one task (also if it's a very hughe task).
My project needs to fit with all machines our company produces (about 500 per year).
They are not all different of course but they differe in some points, sometimes more sometimes less.
That means we need a high dynamic GUI, which has to be handled from about 15 people from all over the world.
Dave Kreskowiak wrote: There is no reason to have a page full of label controls to show data when your code can be rewritten to paint all the data itself on a single page.
This is simply not possible for our project!
As the controls provide some userdefined Binding mechanism (sometimes a control is binded to 5 - 10) different PV's, which tells the control for example if an option is set or not.
An other reason is that there is a feature where a user of the GUI is able to build his own page by "grapping" controls (plus all bindings) from existing pages, and insert it in his own page.
All the best,
Martin
|
|
|
|
|
All I can do is smile. Have fun with it!
|
|
|
|
|
Hi Martin!
Great, fine you got it to work.
You could make an article out of this, so that the information can be found more easily. I guess it could be useful for many developers...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello mav,
Thanks for youre nice words!
mav.northwind wrote: You could make an article out of this, so that the information can be found more easily. I guess it could be useful for many developers...
Good idea!
Hmm, maybe when I do some more research.
All the best,
Martin
|
|
|
|
|
Hi,
I have 5 rows in my datagridview1. but how to remove any particular row?
when I use => "dataGridview1.Rows.RemoveAt(4)" then error comes "Uncommited new row cannot be deleted".
Thank you in advance
-- modified at 3:22 Wednesday 19th September, 2007
|
|
|
|
|
hello dear,
try it
string dgvstr="";
SqlDataAdapter da = new SqlDataAdapter("select (enter all columan_name in table) from table_name", con);
dgvstr = da.SelectCommand.CommandText.Replace(",enter remove columan_name", "");
DataSet ds = new DataSet();
da.Fill(ds, "table_name");
datagridview.DataSource = ds.Tables[0];
datagridview.Columns[enter remove column_index(ex-0)].Visible = false;
datagridview.Rows[0].Selected = true;
|
|
|
|
|
datagridview1.currentrow.cell(0).value
this will work and give the connection
|
|
|
|
|
Hi
I've to transmit live video 4m Server to multiClients and I m working in C# and using UDP. Now plz tell me what steps I should follow 4 transmission of live video?
How would I stream the video.I m not getting help in this matter from net so plz help me out.
Shanzay
|
|
|
|
|
How we will create usercontrol for tablelayoutpanel in c#windows application?
for other controls like button,label i creatd but i am not able to create for container controls like tabcontrol,tablelayoutpanel.i want usercontrol not customcontrol
|
|
|
|
|
Hey
I am not sure I fully understand you question here but I will answer what I think you mean.
All you do is drag the control (eg tab contronl) onto a windows form then place you components onto with the relevant tab selected.
Hope this helps
Dan
|
|
|
|
|
Thanks for ur Reply
can u make usercontrol using tablelayoytpanel?
and how do we make row,columns in table lay out
|
|
|
|
|
Hey
It sounds like a typical grid control might offer what you are looking for?
If not explain exactly what it is you need and I will have a look around for you. Remember Google is your friend.
Dan
|
|
|
|
|
hi friend
user control shall be use by single appllication and custom control is used by multiplication application
|
|
|
|
|
Uh, that's nowhere near correct.
|
|
|
|
|
Inheriting from UserControl is normally used to build "compsite controls" where you use a few controls, like you would use on a form, to build a custom control that encompasses those controls with a related purpose. For instance, creating a custom IPv4 Address Entry control using 4 seperate TextBox controls.
Inheriting from Control allows you to build a completely custom control from the ground up. You supply everything from properties, to data management, to all the rendering code.
There's a thrid option. Inheriting from an existing control, like a Button or TableLayoutPanel. This gives you the ability to create your own customized version of that control where you add to, hide, or replace some the functionality of that existing control.
|
|
|
|
|
When i started using the crystal reprot i had a all time problem of having a dynamic dataconnection to the crystal reprot.
i was facing problem with crystal reprot when i run that report on to the other machine and the database source is not the same as the machine where the reprots where created.
i Am using Vs 2005 and Crystall Report 9 And SQL Server.Please Give Sample Code in C#
|
|
|
|
|
How to get the details from the app.config file.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
What details... There are several methods for separate parts of the app.config...
Create a reference to System.Configuration and see the System.ConfigurationManager
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
I am going to hold the port number in a tag which i am going to create.
I can have my own tag in it know.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Yep, use the appSettings section for that...
Create a new entry
<add key="PortNumber" value="123">
in your code, use System.Configuration.ConfigurationManager.AppSettings["PortNumber"] to retrieve the setting value.
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
Thank you.
I have done the same.
-- modified at 5:23 Wednesday 19th September, 2007
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
The following is the section in the app.config:
<code><pre><?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
.....
</configSections>
<applicationSettings>
.....
</applicationSettings>
<!-- Holds the information related to remote communication-->
<RemoteCommunicationSettings>
<add key="PortNumber" value="1011"></add>
</RemoteCommunicationSettings>
<Modules>
.....
</configuration></pre></code>
When I am accessing this using the following code:
<code>
NameValueCollection remoteCommnSettings =
ConfigurationManager.GetSection("RemoteCommunicationSettings") as NameValueCollection;
NameValueCollection section = ConfigurationManager.GetSection("Modules") as NameValueCollection;
</code>
For the "RemoteCommunicationSettings" it is giving null
but for "Modules" it is giving the values.
Can you give me a suggestion.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
You completely ignored the advice you got.
The config section you added isn't valid. You should have paid attention to the sqiggly line under your RemoteConnectionSettings tag. That means what you typed isn't valid.
The code you posted won't work for retrieving your config section because you didn't add the section to the app.config properly.
Go back to the advice you were given and just add the port number to the applicationSettings section.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="PortNumber" value="1011" />
</appSettings>
</configuration>
|
|
|
|