|
Hmmmm.... suddenly it seems to work.. even though I cleaned the solution and rebuilt many times yesterday.. well.. I'll keep that trick in mind though!
Thanx!
|
|
|
|
|
How do i set the form designer to not stick in stuff that causes Lightweight apps to screw up? Relating to an earlier program, all the stuff that crash the system aren't supported by the .net lightweight framework.
So I'd like to turn it off.
Can this be done? Or is there some other solution?
Cheers
Cata
|
|
|
|
|
Hello
i am calling a form on each row selection of dataGrid,on every selection its opening new Instance,this can be resolved by using Singleton pattern but is there anyway to update existing instance of form by passing values in Constructor?
one approach i thought to grab the handle of already opened window and close it when new one is opened,but i am unable to fetch old window handled(one way is to store handle value in registry)
is it some nice approach to update existing Form/window?
thanks
<ot>is there any utility which tells running process informations including handles details,kindly let me know
|
|
|
|
|
Hello again Gurus,
Whenever I export a report from CrystalReportViewer’s ToolBar to the PDF format, I get this error “Error in File C:\Program Files\MDS\MyReport.rpt: Invalid export DLL or export format.” on the PCs at my work place. It works fine with other exporting formats. It also works fine on my development PC. The app is C# Windows based. Did I miss certain DLLs from the installation package? Thanks for looking into my issue. Appreciate any inputs.
Thanks in advance & happy programming
Khang
|
|
|
|
|
Go to http://support.businessobjects.com/search/ and do a search on crnet_deployment.pdf. This document tells you how to identify the version of Crystal you are using with your development environment and the corresponding merge modules that should be included with the installation package.
|
|
|
|
|
Raganar,
Thank you so much for the tip, Guru! There're always Gurus out there.
Khang
|
|
|
|
|
Hi,
I am trying to write something like this.
m_xyz = m_lbl.Attributes("Name")
where m_xyz is bool and m_lbl is Webcontrols label.
The above works fine in VB.net but gives me the foll. error with C#;
'System.Web.UI.WebControls.WebControl.Attributes' denotes a 'property' where a 'method' was expected
Can you please help me with the above.
Thanks.
|
|
|
|
|
The syntax for accessing indexers in C# is different:
<br />
m_xyz = m_lbl.Attributes["Name"];<br />
|
|
|
|
|
I found the solution:
m_xyz = Convert.ToBoolean(m_lbl.Attributes["Name"]);
is error free in C#.
|
|
|
|
|
Ok, i just created a form in C#. Ran it on the windows CE Emulator.
Worked fine.
Changed 1 thing in the form. And now, it can't find the InitialilzeComponents() method. It throwns a "MissingMethodException".
Tried re-creating the form, worked fine. Changed 1 thing (different), and it did the same.
Created a dummy method, ran dummy method from constructor. Set up both method calls with breakpoints. Went past dummy, crashed on Component Initialisation. Again.
Copied contents of initialise method into dummy. And it crashed on dummy. Set all internal calls in the dummy method with break points. It crashed somewhere between the Dummy call, and the first break point.
So... i've come to the conclusion my compiler is broke or windows CE is retarded.
How do i fix it? Why is it doing this too me? Is this really something that should be happening?
Cheers
Cata
|
|
|
|
|
Ok, I have just narrowed it down to two calls added automaticaly when you edit the form properties. It's setting the "Name" and "AutoScaleBaseSize" values, which do not exist. Somehow they get past compile time, and into runtime, where it all goes horribly pete tong.
Guess MS need to fix that.
Is this a known problem?
|
|
|
|
|
More functions that cause the .Net Lightweight framework to crash, that are inserted automaticaly into the InitialiseComponent block.
SuspendLayout()
ResumeLayout()
TabIndex
Name
AutoScaleBaseSize
It all works OK in the design page.
Is there ANY way to stop it doing this? If i add 1 button, i have to delete a whole SLEW of lines of code that are added, and when i discover a new one, I have to comment out a whole block and go through them 1 at a time, uncommenting them. It's driving me INSANE.
*deep breath*
*end rant*
|
|
|
|
|
I haven't had any problems like that. But, then again, I don't think I've ever had SuspendLayout and ResumeLayout in my forms code either. It sounds like Windows Forms (full Framework) code is being generated in place of the code that SHOULD be generated for the Compact Framework.
What on earth did you install?! This may be an overkill solution, and I would welcome any other suggestions, but I'd try reinstalling Visual Studio. As painful as that may sound...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yep, I reached the same conclusion, see my next post.
sh!7... I just realised... the DLL i added to my project is not for compact framework, it's raw .Net.
OMG... now i feel stupid.
Never mind... slight 'looser error' as they say.
Cata
|
|
|
|
|
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You seem to know a lot about the lightweight framework.
I've been trying to construct a Form based inheritance tree, but it is refusing to cooperate. Is this functionality not supported in the Compact Version?
Could you offer advice on a good way round it? Because I have some compulsory base functionality that I want to mix with customisable in an inherited class, in a single call. I can't do this with interfaces.
Cheers
Cata
|
|
|
|
|
The Catalyst wrote:
You seem to know a lot about the lightweight framework
Very funny!
I've written a couple of applications to toy with it. Nothing more. Form visual inheritance is out of my scope of experience.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If I have a console application that I do not want to be visible, how do I do this? Its being run as a scheduled job, so I cannot run it as a service.
Cheers,
Jim
|
|
|
|
|
Hello All,
I have an app which has a treeview, and I would like to perform a unique action when the user double clicks a leaf node of the tree. I handled the double click event, but this doesn't tell me much. How do I get to the actual tree node (if any) that the user double clicked on?
Thanks
|
|
|
|
|
|
Thanks.
But, the problem that I am having is that the dobule click handler is called anytime the user double clicks anywahere in the tree, whether or not the user actually double clicked on a tree node. If I click off in the empty space of the control, the handler is called. The selected node property has a node in it, but I don't have any way to know if that node was actually double clicked.
Aaron
|
|
|
|
|
Try handling the AfterSelect event instead. You can do something like the following:
private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
{
TreeNode node = e.Node as TreeNode;
if(node != null)
{
MessageBox.Show(node.Text);
}
}
|
|
|
|
|
Yes, but this will be called if I single click the tree node, won't it? Basically, I need to perform two different actions if the user double clicks a tree node, and if they simply select it (by moving the keyboard, or clicking on it with the mouse). If the double click event args had some more info in them, like mouse coordinates, it would help me figure out if the user actually double clicked a node, or off in space.
My only other thought is to also handle mouse down events, save the corrdinates from these, and use them in the handler to doube click to figure out where the double click happened. This seems pretty messy, surely, there's a cleaner way to do this?
|
|
|
|
|
The GetNodeAt [^] member will tell you the node at a specific point location.
But looking at the docs for DoubleClick [^] event, the TreeView is not supposed to raise a Click or DoubleClick event if the click is not over a node (see below the table before the example.)
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Well, the documentation says that it will not, but if I set a breakpoint in the handler for the double click event, and double click somewhere off in the margin of the control (not over a node), the handler is called. The double click event does not contain any mouse location info to use with GetNodeAt. I suppose maybe I could also have a handler for MouseDown, or MouseUp, and save these coordinates for use in the handler for double click, but that seems kind of ugly.
|
|
|
|