|
Hi ..
I am using public static variables throughout my application..
so how to release or dispose those variables on web application exit...
thank u..
|
|
|
|
|
It doesn't matter, they won't leak for long, will they ?
If you have stuff with handles you want released, do it in the OnClose of your main form.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi
I am coverting a report made in Access Application which contains subreports within subreports.The nesting is upto five levels deep.As Crystal reports do not allow adding of subreports within subreports,how do i deal with it.
Is there some other way to deal with the problem.Any suggestions and help will be appreciated.
Regards
Shaurya
|
|
|
|
|
Hi Shaurya
A quick google search reveals this article[^]. Hopefully it points you in the right direction.
|
|
|
|
|
I start leaning language C#, everybody hepl me?
I should begining step how? thank you very much!
thuylieu1905
|
|
|
|
|
|
Start by an english book first than go and get a C# book.
|
|
|
|
|
bitter truth
most e-books are in english..
life is study!!!
|
|
|
|
|
A beginners book, then work through examples on this site and ask questions here.
Try to get a C# language book, then a book that works with windows forms after that. A book that tells you where to click so the designer writes code for you, is useless.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hello there buddy!
Welcome to the world of C#!
Get a book on C# language, and start working on examples.
Think of something innovative and try implementing it.
Good always wins over Evil
|
|
|
|
|
I start leaning language C#, everybody hepl me?
I should begining step how? thank you very much!
|
|
|
|
|
wrong forum... this is more for people who already work something with c# for complete begin get good book... almost any will do good job...
|
|
|
|
|
Hi,
this is my first question on CodeProject; its about Visual Designer.
Say I want to have a Panel and a PictureBox in the Form, no problem.
Now a Button in that Panel, no problem, just click in the Panel and drag a Button.
Now a Label in that PictureBox, Designer does not do that, even when I click inside
the PictureBox, the Label gets added to the Form, not to the PictureBox
(code checked: parent is Form, location is Form relative).
Also not working is Button in Button.
Is there a way to do these with Designer, i.e. without changing the code manually ?
If it is impossible for some Controls, which are they ? How can one recognize them ?
I am using both Visual 7.1 and 8.0 (in case it would be different).
TIA
-- modified at 20:38 Sunday 4th February, 2007
Luc Pattyn
|
|
|
|
|
I only VS .net
Some controls are not containers.
|
|
|
|
|
Luc Pattyn wrote: If it is impossible for some Controls, which are they ? How can one recognize them ?
I think you cannot recognize them. For example, the GroupBox and PictureBox are both direct inheritors of Control , but a dragged control is only added to the group box. So the designer is obviously following his own logic where it is sensible to add the dragged control to the form or the control it was dragged to, respectively.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hello Luc,
Isn't the interface "IContainer" responsible for that behavior?
All the best,
Martin
-- modified at 8:45 Monday 5th February, 2007
|
|
|
|
|
i'm using devenv to compile projects
say
Process.start("devenv",@"<solution> /build Debug ........... /out C:\BuildLog.txt");
the next piece of code is:
StreamReader sr = new StreamReader("C:\\BuildLog.txt");
string line;
while((line = sr.ReadLine()) != null)
{
LogText += line;
}
this throws a filenotfound exception the first time. on running the application again, it finds the file and displays its contents too...
the file gets appended with every run. but on reading it thru this code it does not read the latest chunks written to file.
for eg say
the file contains
abc
xyz
def
the file reads only abc xyz
and the next time it runs it reads abc xyz as well as def... but by then.... more chunks r appended.
Kindly help.
thanks in advance.
|
|
|
|
|
You must have code that is creating this file, so that the next time it runs OK. Does your write code rewrite the entire file, or just append to it ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thanks for replying.
the file is automatically created as the application is compiled
devenv .....(args...) /out c:\\BuildLog.txt
creates/appends the file buildlog.txt
i don't write anything to this file at all. i just need to read it and display all of its contents.
thanks and regards,
Acec0d3r
|
|
|
|
|
maybe this helps :
http://www.codeproject.com/cs/threads/launchprocess.asp
VirtualVoid.NET
|
|
|
|
|
My app has a CheckedListBox, after added items, not be able to gray out some items so users can't select them.
Any one has solution?
Thank you.
|
|
|
|
|
I don't think it's possible to do without some custom drawing. You might try overriding OnPaint and see if you can do some drawing in there to manually gray out a particular item.
|
|
|
|
|
OK I tried to double chech (5 times at least acctually) all things, still when I replace
this code:
<code> HttpChannel c = new HttpChannel(32469);
ChannelServices.RegisterChannel(c);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(SimpleChatProgram_DLL.SimpleChatProgramLibrary),
"RemoteMsgObj.soap", WellKnownObjectMode.Singleton);</code>
with this one
<code> RemotingConfiguration.Configure("App.config", false);</code>
and
this config file:
<code><configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
mode="Singleton"
type="SimpleChatProgram_DLL.SimpleChatProgramLibrary, SimpleChatProgram_DLL"
objectUri="RemoteMsgObj.soap"/>
</service>
<channels>
<channel ref="http" port="32469" />
</channels>
</application>
</system.runtime.remoting>
</configuration></code>
my client app (very simple program btw), stop working it can't even start anymore...
Server start just as usual, but doesn't work as expected...
Any idea?
|
|
|
|
|
Any idea guys, I tried bunch of mine, but none give expected results, guess it's something trivial..
|
|
|
|
|
try the filters ... unfortunately i forgot the right syntax, but it have something to do with soap or binaryfilter...
<channels>
<channel ref="http" useDefaultCredentials="true" port="0">
<clientProviders>
<formatter ref="soap" typeFilterLevel="Full"/>
</clientProviders>
<serverProviders>
<formatter ref="soap" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
i cut/copy this from my own project, maybe it helps you
VirtualVoid.NET
|
|
|
|