|
To all,
I have read and implemented the suggestions by Asif Sayed in Reporting Hierarchical Recursive Data using MS Reporting Services here at Code Project. This seemed to work really well until I noticed that data was missing...
In my dataset, the analogy is that a single employee can report to more than one manager. And for those times the data is missing for the second and third managers.
Has anyone run across the same problem? If so, what was the technique that you used to work around the problem.
I am using .Net 2.0, C# SQL 2005 and Reporting Services.
Thanks in advance for the help!
Rob
|
|
|
|
|
Rob, if you haven't already, you might want to post this question onto the article itself, as the author might have a better idea about what could be wrong.
|
|
|
|
|
I have about a week or two aga but have not gotten any responses. Therefore, I thought of posting it here. If anybody has any leads please forward them to me.
Thanks
|
|
|
|
|
Can anyone point me to some documentation covering what events are triggered when?
Thanks!
David Wilkes
|
|
|
|
|
amatbrewer wrote: Can anyone point me to some documentation covering what events are triggered when?
Have you looked in MSDN?
|
|
|
|
|
What events are you interested in, David? There are many events on Windows Forms controls...I've never seen an exhaustive source of docs on the order of events on Win Forms controls. Most of them are pretty straightforward though (Disposing before Disposed, etc).
|
|
|
|
|
Judah,
Thanks for the reply.
Primarily I am looking for the sequence of events for the Text box, Masked Text box, & numeric up/down.
A loooong time ago when I was trying to learn Visual C++ I found documentation on exactly what triggered each event and when. I have not been able to locate anything like that for Visual C#.
Background.
I am just learning C# after being away from programming for quite a while. I am trying to validate (and limit) user input, and allow controls to change each other depending on which one the user is entering data into (e.g. change in text box1 changes text box2 and vice versa).
David Wilkes
|
|
|
|
|
Maybe I have to use a form to do that rather than using a messagebox. It seems like a message box depends on the form it is being called.
I do have a form where I have a line of code to call a dialog. From that dialog, I open another form. When the user click ok, I want the first form to close, however it does not close.
here is what I am talking about
for example, assume that my form is form 3, inside my form 3, I have a dialog to open form two. When the user clicks ok, form 2 will open where form 3 will close, however form 3 never closes
inside form 3 I have
if (dialogresponse == dialogresult.ok)
form3.activeform.close();
then create an open form 2
The way to look at it, form 3 only close after form 2 open and close
it does not work, it seems like I have to do that in another form. I don't want fo have a form for that only. Maybe I am missing something.
-- modified at 20:02 Thursday 14th December, 2006
|
|
|
|
|
Hi,
are you using MDI interface style. if yes then try using ActiveMdiChild property.
if not then see if your ActiveForm is not returning null reference. further if you are running this code inside form3, can you not simply call this.close().
Regards.
|
|
|
|
|
I am not using MDI, my application is simply single document or single form. Also I already tried this.close but it does not work
by the way this is the simple code
<br />
<br />
DialogResult myMessage;<br />
messageResponse = MessageBox.Show("message", "title", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);<br />
if (myMessage== DialogResult.OK)<br />
{<br />
Form2 form2= new Form2();<br />
form2.ShowDialog();<br />
Form3.ActiveForm.Close();
}<br />
<br />
|
|
|
|
|
how to change caption bar colour
SAS
|
|
|
|
|
In XP Pro right click the desktop and select "Properties" from the menu.
Select the "Appearance" tab and click the "Advanced" button.
click on the "Active Window" caption bar which will select "Active Title Bar" in the "Item" Combobox. Then select your colour.
led mike
|
|
|
|
|
sajid.salim.khan wrote: how to change caption bar colour
AFAIK, you can only change caption color through the display properties.
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
SAS
|
|
|
|
|
Hi, Can anybody tell me how can i put the same pages per sheet document property as we have available on either notepad or wordpad. I can print my contents/data but I also want to display an option to print 2 pages contents on 1 page. I tried to instantiate an object from PrintDialog class and also tried from PageSetting class but neither of them have the property to print on 2 pages.
a general sample
open notepad or wordpad:
Print->Preferences->Layout->pages per sheet.
Thanks
|
|
|
|
|
Hi All
How To make dialog box border less and how to make its background colourfull
SAS
|
|
|
|
|
sajid.salim.khan wrote: How To make dialog box border less
Umm... Less what?? There are default styles that you could choose from using the Form.FormBorderStyle property. Otherwise you'd have to inherit your own form and customize it as you like. Usually this is done using GDI+.
sajid.salim.khan wrote: how to make its background colourfull
If you mean changing the color; Use the Form.BackColor property. If you mean giving it a background image; Use Form.BackgroundImage property.
Regards
|
|
|
|
|
Sir the Problem is that I use
MessageBox.Show("//////");
So how will i make this MessageBox Border Less
Second If i want To Change Its Colour?
Apart Of these questions how do i change the strip Colour of my main form with strip i mean the bar on which minimize,maximize and close buttons resides
SAS
|
|
|
|
|
|
Forgive me if I misunderstood you at first, but dialog box is different from message box. Anyway, changing the message box behaviour/appearance is done by changing windows themes. You can't change your message boxes alone. Another way is to make a form instead of the message box, and put whatever buttons you wish in it. This way you could change it as you like.
sajid.salim.khan wrote: how do i change the strip Colour of my main form
This question has been asked many times in this forums, and I haven't seen a satisfying 1-2-3 short answer yet. Yes, there are several ways of doing it, but not in pure C#. Take a look at GDI+[^] section, or C# graphics[^] section. I believe you could find somthing satisfying -it won't be straightforward as I said.
PS. The following two ways are quite hard and way out of the league of C#.
1- You can use GetWindowDC()[^] Windows API function, to get the Device Context of your window -somehting like the graphics object-. Then use Windows API drawing functions to customly drawing your window -including the caption bar-.
2- If you only want to change the gradient color of the caption bar, you can use CreateWindowEx()[^] function. It has variant styles that you can choose from, then box it into a NativeWindow using the NativeWindow.AssignHandle() method.
Regards
|
|
|
|
|
ThanXXXXXXXXXXXXXXXXX
SAS
|
|
|
|
|
how handling the onclick event on a IHTMLElement object ?:
Hi,
I'm working in .NET framework programming a toolbar in c # for Internet explorer browser.
I would like to handle the onlclick event on an IHTMLElment object in the web document;
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21555434.html
but I can't view the solution
1) somebody konw the solution?
2) in the above document it's used the htmlElementEvents2_Event class; but I didn't find its documentation in http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/reference.asp
somebody knows how to find that?
somebody in help for me?any idea ? thanks in advance
LulaLeila
|
|
|
|
|
I used reflector to play around the .net 3.0 framework.
Looking at DependencyObject class, I found a bizzare attribute in use, called FriendAccessAllowed.
Google search yielded 0 results
So maybe someone here knows the answer? (Because I was really looking forward to see a friend classes for c#)
|
|
|
|
|
Looking for same answer too, what this can do? and how other can access
|
|
|
|
|
Hello,
VS 2005
What is the best and most efficient method for reading from a text file. Storing it in a temporary file or variable, and then finally appending it to another file.
Its important the file that it is being appended to does not overwrite what is already in there.
Many thanks for any advice,
Steve
|
|
|
|