|
I see...
Your examples are helped me a lot
small thing, how can i add an attributes to combo class ?
in order to see it like
<Combo num ="1">...</Combo>
<Combo num ="2">...</Combo>
Thanks again
|
|
|
|
|
I don't know. Are the ComboBox properties insufficient? they have Name, Tag, etc.
|
|
|
|
|
you didn't understand me correctly...
Combo is your example (second example in your article)
|
|
|
|
|
I have no experience with XML attributes. You're on your own. Try something like:
[XmlAttribute(DataType="int", AttributeName="myInteger")]
|
|
|
|
|
a bit late response, but thanks
|
|
|
|
|
I need a code that will allow me to find how much total storage space a local HD has on a server
(for example, \\randomname\c$), and also the amount of currently used space on that same HD.
So, if, for example, I am using the code on a computer named "Banana" I need it to tell me how much
space there is on a server called "RandomName".
Thanks in advance
|
|
|
|
|
If you want to do this in C# you'd have to use System.Management namespace. It contains the classes to do WMI in .NET. It's too bad that access of remote machines wasn't build into the DriveInfo class of the System.IO namespace.
|
|
|
|
|
I wonder if mapping a drive to the location would allow you to use the DriveInfo class?
|
|
|
|
|
It should do, but think of the consequences:
You would have to map every drive of the server to get at all of them.
And when enumerating your drives with driveInfo you have to filter for the
network drives and then look only at the ones from the server you're interested
in. Since you might want to inspect other servers too you'd need to do this programatically.
So I need to enumerate the drives on the remote computer ...?
The dog seems to chasing it's tail ...
|
|
|
|
|
how to play power point files in C#, the point is how to paly them seamless?
It is better of me!
|
|
|
|
|
Lots of ideas here[^].
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Thanks , I'll check them out .
It is better of me!
|
|
|
|
|
This Link[^] may work for you.
|
|
|
|
|
hi
all member in c# forum
im student and i need answer from my question:
why i create image histogram from any image by using c# .
please geve me the code to drow that .
milion thanks from all persons about help me
|
|
|
|
|
mohammed alshaweesh wrote: why i create image histogram from any image by using c# .
I don't know why you create a histogram for your images. I don't do it for mine.
mohammed alshaweesh wrote: please geve me the code
The code to do what? Tell you why you created a histogram?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I doubt anyone here is going to give you code, since most of us work for a living. Perhaps there's a language barrier and what you said was not what you meant.
At any rate, if you want to write your own code to make image histograms, try searching in the articles on this site for "image histogram" and you should get quite a few ideas. For example, here's one such article: 2D and 3D Image histograms and 2D multistage entropy[^]
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
many time we populate UI with data from DB in the form load and that is why form gets freeze for few second. so i just want to know how can i load data asynchronously and populate UI in form load as a result my form will not freeze and also will be responsive but i don't want to use background worker class. please help me with sample code which can solve my problem.
thanks
tbhattacharjee
|
|
|
|
|
The one way to avoid GUI freeze is by using one or more extra threads (instances of Thread, work items for ThreadPool, BackgroundWorkers, whatever), as they act like extra hands to get the work done. So you should obtain the data in a thread, then take the right action to get it into the GUI (a thread cannot access the GUI). And the best solution is the BackgroundWorker!
There are lots of examples around. I have one in my CP Vanity article, which is getting data asynchronously, not from a database, but from a web site (CodeProject), the philosophy is exactly the same though.
|
|
|
|
|
Hmmmmmm (*drools*), CP Vanity. Take 5!
|
|
|
|
|
Hi friends,
I developed a 32 bit application around 2 years back. It could get installed (setup created using Inno Setup) on XP, Vista and Windows 7 32 bit. And it runs without any problem.
But now people have started shifting to 64 bit OSes. One of my friend tried to install my application on 64 bit Windows 7, but he could not install. Then he just copied binaries of my application on C drive (C:\MyApp directory). But then again, it didn't run.
I don't have any 64 bit machine and so could not try to run my application there. Please let me know, do I need to make changes either in installer or in my code so that my application start working on 64 bit OS? Here is my application detail:
1 Currently my application is installed in C:\Windows\System32 directory.
2 My application consists of
- one C++ dll (32-bit),
- C++ COM based ATL Service (32-bit) (it is registered with -RegServer and -Service command line parameters),
- 3 .net dlls/assemblies and
- one .net exe (the main exe).
While creating installer, do I need to make changes so that application could run on WOW platform? (like copying all above binaries in system32 or system64 directory)?
My application plays with all registry hives (HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_CLASSES_ROOT and HKEY_UUSERS). Do I need some changes for access/changes to all these registry hives?
Please help me so that with minimum changes may application become able to run on all 64 bit OSes.
Thanks in Advance
|
|
|
|
|
I'm not sure if it will help but I had some problems with some .net apps on w64.
A common example is using Oledb to query an excel file, using the JET engine.
That will not work on 64 bit versions of windows, unless the app is specifcally compiled to target x86.
Try specifically compiling your app to target x86. As I'm sure you know, by default
it compiles to all platforms(ms ones) and it will resolve at runtime if it's x86 or x64.
Again I'm not sure if it will help but it doesn't hurt to try. That if you don't know that the
C++ dlls and COM service is the cause. if you know that then my comment is just a waste of space.
Hope the hammsters won't revolt against me. After all it's holidays times
All the best,
Dan
|
|
|
|
|
Aseem Sharma wrote: Please help me so that with minimum changes
I would think that the minimum change that would be needed is that you need to get a 64 bit platform to test on.
There is nothing that you have described that could be considered 'easy' and much that could have a problem on a 64 bit system and even more so with Windows 7.
|
|
|
|
|
|
Hi All;
I am using VS 2008 and I have wrapped a checkbox into a toolstrip. Works great but when in VS after shutting down the app the toolstrip is blank (shows no controls don't get the add contol drop down). If I close that project and open another then go back all is well.
Can someone tell me if this is a bug in my code or a bug in VS2008?
Here is the code for the wrapper;
using System;
using System.Windows.Forms;
using System.Windows.Forms.Design;
[System.ComponentModel.DesignerCategory("code")]
[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.StatusStrip)]
public class ToolStripCheckBox : ToolStripControlHost
{
public ToolStripCheckBox()
: base(new CheckBox())
{
}
public CheckBox CheckBoxControl
{
get { return Control as CheckBox; }
}
public bool Checked
{
get { return CheckBoxControl.Checked; }
set { CheckBoxControl.Checked = value; }
}
public event EventHandler CheckedChanged;
public void OnCheckedChanged(object sender, EventArgs e)
{
if (CheckedChanged != null)
{
CheckedChanged(sender, e);
}
}
protected override void OnSubscribeControlEvents(Control control)
{
base.OnSubscribeControlEvents(control);
(control as CheckBox).CheckedChanged += OnCheckedChanged;
}
protected override void OnUnsubscribeControlEvents(Control control)
{
base.OnUnsubscribeControlEvents(control);
(control as CheckBox).CheckedChanged -= OnCheckedChanged;
}
}
thx
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
Hello to everyone, I am trying to do a sofware with C# that extract thumbnails from video movies. I did it making a ProcessInfo and passing the path of FFMPEG and the parameters, for example in my case I just want to do a simple " - i path\filename.avi" all work just fine if filename and path have normal ascii characters, but as soon as I get a not ascii character the program just refuse to work, FFMPEG just output that path???\file???.avi fail to open with the ??? substitute the original japanese chinese german ecc characters.
I don't know what I can do more about it, I suspect it's some problem about how the console command passing the string to the FFMPEG programs, any help will be great appreciated !
|
|
|
|