|
The default accessor property for a field in C# is private, therefore it would only be accessible internaly, and not appear on intellisense. Just wack public infront of it.
|
|
|
|
|
public members are a crime
keep fieldValue private.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
If a tree drops in the forest...
|
|
|
|
|
I have written code for report in Form_Load event handler as under:
System.Data.SqlClient.SqlDataAdapter adapter = new System.Data.SqlClient.SqlDataAdapter("Select * From Customers",
"server=pc1;database=northwind;trusted_connection=true");
System.Data.DataSet ds = new DataSet();
adapter.Fill(ds, "Customers");
CrystalDecisions.CrystalReports.Engine.ReportClass rpt1 = new CrystalDecisions.CrystalReports.Engine.ReportClass();
rpt1.SetDataSource(ds.Tables["Customers"]);
CrystalDecisions.Windows.Forms.CrystalReportViewer rptviewer = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
rptviewer.Dock = DockStyle.Fill;
this.Controls.Add(rptviewer);
rptviewer.ReportSource = rpt1;
but it gives me the following error:
Unable to find the report in the manifest resources. Please build the project, and try again.
Can someone help how to generate report in this way?
Thanks for consideration
|
|
|
|
|
hi all,
i have a windows form lets say 'myform'.
i check on myform's load if there is a previous instance of 'myform' running or not.
> if a previous instance runs, then i display an error message and close the secondly opened copy.
but after closing secondly opened instance, i dont know howto maximize the first copy of 'myform' which was minimized on taskbar ?
do u know howto maximize & bring to front the previous myform or at least to blink it like msn messenger ? (when a message received)
thanks in advance,
bye.
|
|
|
|
|
|
|
Hello Frieds,
I just want to ask you that, How to split the string by another string.
Take ex.-
string tosplit = "10***3*2**5";
string delim = "***";
now o/p should be split1 = 10
split2 = 3*2**5
Thanks in Advance.
Rahul Kulkarni.
|
|
|
|
|
Try this:
string[] Parts = tosplit.Split("***", StringSplitOptions.RemoveEmptyEntries);
|
|
|
|
|
Firstly Thanks for your response.
You have suggested "StringSplitOptions".
But i think it is not in the framework-1.1
Can you suggest any other solution.
Rahul Kulkarni
|
|
|
|
|
RahulRKulkarni wrote: But i think it is not in the framework-1.1
You're right, it's new in Framework 2.0.
Perhaps you can use IndexOf("***") in combination with Substring.
|
|
|
|
|
Use a regular expression:
Regex re = new Regex(@"\*\*\*");
string[] splits = re.Split(tosplit);
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
I know dictionaries don't accept duplicate keys, but hashtables are inherent within dictionaries. If the answer is yes, then what data structure could I use?
|
|
|
|
|
honeyman_can wrote: what data structure could I use
One possibility is a hashtable whose values are ArrayList s list of values. When you try to add a duplicate key, append the key's value to the existing list.
/ravi
|
|
|
|
|
Hashtables dont except duplicate keys, and im not sure there is a class that would allow you to store items in order and allow duplicated.
U could try deriving a new class from the HashTable table and replacing the comparer property with a new one that will allow you to add duplicates.
|
|
|
|
|
I have a simple question. If I have a form with some buttons inside, how can I recieve keyboard messages for the arrow keys? If I hook the KeyDown event of the parent form, I recieve notification just fine, until I press one of the buttons, at which point the event is no longer triggered; the focus jumps through tab order instead.
Joel Holdsworth
|
|
|
|
|
Im not a 100% sure on this, but the form has a KeyPreview property. This passes the keyboard presses to the form before passing to the active control.
|
|
|
|
|
Yes I've got it set already, but it doesn't help!
Joel Holdsworth
|
|
|
|
|
Have u tried overriding the DefWndProc (or WndProc) methods to detect the key presses there.
|
|
|
|
|
Hi. How do I created an update installer. Say I already installed the whole app on the client machine, made a few changes, no I just want to update their app, I don't want to remove the whole app and re-install.
Thans in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
The .Net setup wiz allows you to 'update' the app. When you change the version number, the product gui will get updated, while the upgrade gui remains.
|
|
|
|
|
Hi
I want to merge two avi file and save the result on disk.
With "merge" I mean enqueue the content of a file at the end of another.
heeeeeeeelp me please
PS:...excuse me for my owful english...
|
|
|
|
|
You can search in google for "VirtualDub".
There is also with source code in it. But in C++.
|
|
|
|
|
Hi
What is the best way for remove item from System.Collections.ArrayList (most rapid) :
Remove(object Obj) or
RemoveAt(int Index)
Thank
|
|
|
|
|
What dou you mean with the "best way" ?
If you have the object, the best way is Remove(object obj);
If you have the index, the best way is Remove(int index);
|
|
|
|