|
|
I want get byte[] from file, manipulate them(add detection code), send by UDP ...
|
|
|
|
|
|
in C # I designed a program including WebBrowser, 1 combobox called cbo1.I want to control a checkbox combobox's Web site on a WebBrowser cbo1 by the user control.I programming will be like?
|
|
|
|
|
Stop spamming over and over, this is the third time you asked. Do you think that the people who regularly post here won't recognize it? You got all the help you're going to get..
|
|
|
|
|
...
"Well, we're getting "F"'d at work. WPF, WCF, and WWF... WTF?" --John Simmons
|
|
|
|
|
hi, i want to detect whenever the printer starts printing and so in this way i can count total numbers of printed pages and shows to the user, i think that there should be an event that i have to handle(sth like PrintPageStart) but i didn't find the solution after long search how i can detect and count numbers of printed pages?
thanks
|
|
|
|
|
Hii
I'd like to know the steps and get help for building a DBMS software for handling biological data using C#.
I don't know where to start from and how I could build this software but perhaps a guide from you will help me.
Thanx alot.
|
|
|
|
|
lockily right now i have found this :
<br />
Microsoft.Reporting.WinForms.ReportViewer p = new ReportViewer();<br />
p.Print += new CancelEventHandler(p_Print);<br />
void p_Print(object sender, CancelEventArgs e)<br />
{<br />
Console.Beep();<br />
}<br />
|
|
|
|
|
how stupid am i!!!! sorry that mistake was a shame :P
that code won't work
|
|
|
|
|
Does that mean that you want to build your own DBMS or that yo uwant to use for example SQL Server to store and manipulate biological data using C#? If it is the latter and if you have no previous experience about this, I think you should for example get some good books and get to know the basics of database usage in applications (database creation, tables, relations, SQL syntax, ADO.NET etc.)
|
|
|
|
|
Is it possible to bring back several query data and place them in an array?
I want to use that array to generate pages of information
Ferron
|
|
|
|
|
ferronrsmith wrote: several query data and place them in an array
I'm not sure you are vague enough. Perhaps you could abstract it a little more.
only two letters away from being an asset
|
|
|
|
|
I am grabbing several user information from a database and because i am cheap and don't wanna use crystal, i want to post the result in my form and some how generate multiple pages (if at all possible)
Ferron
|
|
|
|
|
You really need to work on accurately describing what you looking for.
From the Crystal remark I assume you are wanting to generate some sort of report, the "generate multiple pages" comment though leaves several questions. What do you mean by pages? ASP.NET pages, report pages? Stop trying to be so vague.
only two letters away from being an asset
|
|
|
|
|
An html page with all the inform on multipages, nothing complex?
Ferron
|
|
|
|
|
Format the data as XML and use an XSLT to produce HTML pages.
only two letters away from being an asset
|
|
|
|
|
Collection of controls
I would like to :
1. Add a set of controls within a collection e.g. an arraylist.
The controls consist of textboxes, dropdown lists, and calendar controls.
2. Loop through each control (i.e. using foreach) and set the enabled property to true, so that the user can update some text.
I'm aware that there are a lot of articles on this, however, I could not find a way to retrieve the common property 'Enabled'. Any ideas?
One button is going to appear to the user intially showing 'Create task' then changing appearance to 'Update new task'. Shouldn't be a problem, but is there something more efficient than the 'text' to validate e.g. if 'button.text == "Create new task", sounds like a lot of work for the processor.
- Controls are going to be bound to a SQL database.
- Currently using ASP.NET 2.0 / C# / VS 2005 Team Edition
Any ideas?
Jon
|
|
|
|
|
jon_80 wrote: I could not find a way to retrieve the common property 'Enabled'
Enabled is a property of the base class Control. What do you mean can't find it? What are you trying?
only two letters away from being an asset
|
|
|
|
|
Hi,
all Controls have an Enabled property, hence this should do it:
List< Control> controls=new List< Control>();
...
controls.Add(new TextBox());
...
Button btnCreate=new Button();
btnCreate.Text="Create";
controls.Add(btnCreate);
...
controls.AddRange(anotherControlsList);
...
foreach(Control c in controls) c.Enabled=true;
...
btnCreate.Text="Update";
This is all very basic, you should consider buying and studying a tutorial on C# and
Windows programming.
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:11 PM
|
|
|
|
|
Thanks, I have books, but sometimes I just don't find what I'm looking for
Jon
|
|
|
|
|
It is not sufficient to have books, what helps is:
- study a tutorial book from page 1 to as far as you get;
- study it again a couple of months later;
- repeat until you get to the end;
- have and consult a reference book.
Consulting the reference book could be replaced by searching the internet;
nothing however replaces studying a tutorial.
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:11 PM
|
|
|
|
|
For the button text, you could use a Boolean field, let's say it could be named createNewTask and is initialized to true . Then, in the button's click handler you can toggle the Boolean field. Also if you make a Property for the Boolean field, then you can put the setting of the button's Text property in the Set of the Boolean Property ; make sense? Like this:
public partial class ... : Form (Page? for ASP.NET)
{
....
private bool createNewTask = true;
private bool CreateNewTask
{
get { return createNewTask; }
set
{
if(createNewTask != value)
{
createNewTask = value;
if(createNewTask)
btnCreateNewTask.Text = "Create";
else
btnCreateNewTask.Text = "Update";
btnCreateNewTask.Text += " new task";
}
}
}
....
}
I don't use textual comparison of a control's Text property to control the state of a control, just personal preference. Plus, I think making a Property and linking the Property's Set method with the visual changing of the control's state is really intuitive and makes it easy to maintain if you have to expand on it later. If you find yourself having more than 2 possible values (maybe the button needs to function in 3 different ways instead of 2), then use an Enum to define the different ways it can work and put a Property around a private Enum field with a switch in the Set of the Property ; similar to how I did it with a Boolean above.
Keep It Simple Stupid! (KISS)
|
|
|
|
|
So your solution is to add more properties and thus more memory overhead and storage? Not to mention the added complexity of maintaining a variable number of properties for a variable number of controls.
only two letters away from being an asset
|
|
|
|
|
OK, not sure how you came to that conclusion. I said to use a single Boolean Property (with a Get and Set) to a single boolean variable to control the button's state, rather than relying on a textual comparison of the button's Text Property. I also said if you have the need to go beyond two states and a boolean will no longer suffice, to use the same approach but with an Enum. Which would still be a single Property with a Get and Set to a single variable of the Enum type. I think that using a Property in this manner lends itself well to what actions need to occur and the events that trigger them.
Keep It Simple Stupid! (KISS)
|
|
|
|