|
You can, but make sure you call dispose on them at the end of the method, else it with quick swallow all your RAM.
<a TITLE="See my user info" href=http:
|
|
|
|
|
Hi leppie,
I have a question about that that I simply can't find a simple answer to in the MSDN documentation.
If I create a pen, brush, etc., in the OnPaint event, do I need to manually displose of it before exiting the OnPaint event?
Thanks!
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"
|
|
|
|
|
Marc Clifton wrote:
If I create a pen, brush, etc., in the OnPaint event, do I need to manually displose of it before exiting the OnPaint event?
Preferably! The GC will dispose them eventually. Have a look in task manager to see if extra handles are continuously created.
<a TITLE="See my user info" href=http:
|
|
|
|
|
Nice to meet you !
I have simple question ...
I have experience for develop SNMP Manager in UNIX system using by C,tcl...
in that case, using UCD-SNMP ...
Now I do want develop SNMP Manager in WindowsXP using by C#.
(Microsoft Visual Studio .NET)
in this case , what can i do ?
is it support snmplib or any kinds of extension in C# ?
==============================
Name : B.S. Yoon
mail to : bsyoon@mercurykr.com
==============================
|
|
|
|
|
hi,
i have already written a class using the wsnmp32.dll api. if you want to have it , please e-mail me..
Doing something is better than doing nothing. So ... Move !
|
|
|
|
|
Thanks your kindly answer !!
If it is possible , Can you send to me wsnmp32.dll api and
can you let me know more than detail for using wsnmp32.dll !
This is first time for develop windows programing...
i hope your kindly support !!
my email address : bsyoon@mercurykr.com
==============================
Name : B.S. Yoon
mail to : bsyoon@mercurykr.com
==============================
|
|
|
|
|
check your e-mail box , please
Doing something is better than doing nothing. So ... Move !
|
|
|
|
|
Thanks your kindly answer !!
also, I get your snmp project file..
when i degug your project file, your source is needed DB (mdb)
"D:\MyPrograms\VbNet\C\OidTables\OidTable.mdb;"
38 line in "ClsOidTable.cs"
but i don't have and Don't know that Configuration for "OidTable.mdb"
can i receive OidTable.mdb file?
==============================
Name : B.S. Yoon
mail to : bsyoon@mercurykr.com
==============================
|
|
|
|
|
Sure...
Check your e-mail box , please. i've already sent it
Doing something is better than doing nothing. So ... Move !
|
|
|
|
|
Is there some handy package or library that someone can recommend for handling automatic or semi-automatic updates. Essentially, it would periodically check to see if there's an updated version of a package or library and then install it. Ideally it would be seamless to the user and would allow updating only the changed files and not require downloading an installer everytime.
Any suggestions? ZeroG.com has something called PowerUpdate which is similar, but I'd rather have something that is free and in my own control.
Thanks,
Arun
|
|
|
|
|
There is a component on GetDotNet that does just that.
NET Application Updater
Bo Hunter
|
|
|
|
|
It looks interesting... and there's source available, which is nice. Thanks!
I welcome any other suggestions...
|
|
|
|
|
I have written the user control similar to Outlook bar, written in C#. I want to browse items( Images and strings as in Outlook bar) in the same at design time and want those to persist run time. Right now I have provided collection editor class for this. Due to collection editor class I am able to add items at design time, I am able to see those items in my control which is placed on the client form, but the added items are not seen on the control when I run my application. Also "AddRange" statement for user control is not added in the "InitializeComponent" function of my client form. I have also tried a typeconverter for my user control but no effect. Please help.
|
|
|
|
|
|
Okay, before I start, this may be really simple to remedy, but I haven't spotted it yet, so here goes.
I'd like to use a control in my C# application that:
1 - looks like a normal list view control in large icon mode (so plain white, large icons with labels)
2 - Allows the user to position icons arbitrarily within the control (so no alignment, but a track kept of where each one is)
Basic idea is hopefully going to end up like moving flowchart elements in Visio, or in the old versions of Rational Rose. I'm going to eventually want to join them together with flow lines.
Now, as far as I remember, ListViews in Windows Explorer allow these abilities. I can place my folder icons all over the place sometimes, and they don't have to snap to grid or anything. Am I just missing the right settings in the control properties? I can get it to show the icons, but it won't let me drag them to a new position within the control (gives me a no-go pointer even though AllowDrop is set to true).
Any help is much appreciated.
Cheers
Phaedrus
|
|
|
|
|
For Example,current Form?
Future belongs to C#!
|
|
|
|
|
Only thing I can think of is Capture Screen. But that will capture the whole screen.
Bo Hunter
|
|
|
|
|
see the API function BitBlt
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Ok, so I know I'm missing something very basic here but I am having a problem understanding how ConfigurationSettings work. I've looked at the various examples but still can't get it to work for me.
I have a Windows application ... application name testapp. I've created a configuration file named testapp.exe.config and copied the file into (in this case) the bin\debug directory along with the EXE file. The config file looks like the following... copied from one of the examples:
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<!-- The following code uses the predefined appSettings section. -->
<appSettings>
<add key="Application Name" value="test application name" />
</appSettings>
</configuration>
In my code I have the following statement.
string appName = ConfigurationSettings.AppSettings["Application Name"];
What I get is appName = null and the config file is removed form the debug\bin directory.
So, 1st, should the config file be being deleted..if so, are the actual settings stored someplace? and 2nd, what am I missing by not being able to read the value for "Application Name" give the above code and config file.
Thanks for the help
Neil Lamka
neil@meetingworks.com
|
|
|
|
|
Hi,
This could help:
Add a file named "app.config" to the project and compile your solution. Visual Studio .NET will automagically search for a file with that name (app.config) inside your project and create an output file to bin/debug (in this case), then, if you need to change the contents of that config file, modify app.config and it will be reflected on the output file.
If you change the output file (when I say "output file" it means "testapp.exe.config") directly it will be overwritten by VS.NET on the next build.
Hope this helps.
(if I wasn't clear, please tell me and I will try to be )
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
It should work. Works for me. Make sure the spelling is correct. The AppSettings are case sensitive.
|
|
|
|
|
Is it possible to have 2 different C# Class Library Projects which individually compile to their own dll and then add the 2 projects to a solution and make them both compile into 1 dll while still allowing for them to individually compile into seperate ones when accessing only the individual project?
FYI: I am using VS.NET 2002
Thanks
Mark Sanders
sanderssolutions.com
|
|
|
|
|
Mark Sanders wrote:
Is it possible to have 2 different C# Class Library Projects which individually compile to their own dll and then add the 2 projects to a solution and make them both compile into 1 dll while still allowing for them to individually compile into seperate ones when accessing only the individual project?
FYI: I am using VS.NET 2002
Thanks
Yes: you create another empty project, and, when adding the files to your project, on the open file dialog, instead of clicking on the "Open" Button, click on the small down arrow on its right, select "Link file", and you're ready to go.
My latest article: GBVB - Converting VB.NET code to C#
|
|
|
|
|
Daniel Turini wrote:
select "Link file", and you're ready to go.
You sure that is in VS.NET 2002? I dont see it....
<a TITLE="See my user info" href=http:
|
|
|
|
|
would like to change/modify the appearance of the tab page label text... all tabpage properties related to this are for the items in the tabpage itself, not for the label...
thanks for any help.
vince
|
|
|
|