|
Each .NET Framework class has a list of systems it's available on in the documentation. Usually, NT4.0 (with SP6a of course) is on the list, some classes are not supported on 9x systems. I didn't have any problems with my programs running on NT4, as long as I used only the framework classes.
You have to be careful when you use p/invoke, though.
In my application framework I needed to get the long filename for an executable and since there's no .NET way to get this information I P/Invoked GetLongPathName(). Sadly, this didn't work with NT.
mav
|
|
|
|
|
hi,
i have enabled visual style on my applicaion but numericupdown controls do not apply the visual style,how can i force them to apply visual stles?
thanks
|
|
|
|
|
I believe I read somewhere that it's a bug and the NumericUpDown control doesn't paint in XP visual styles, even if enabled. But I can't find the source.
[EDIT: see this page[^]]
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
i have made an application in C# and then created a setup file out of it. When i try to install the application on a computer running Windows Home Ed., it gives an error saying 'unable to load file from assesmbly c:\program files\teas\mis\mis.exe' what could be the error? i have reinstalled the mdac components, IE 6.0 SP1, and the .NET framework but it didnt yeild any results.
|
|
|
|
|
I need to work with WebForm Controls which im trying to do it in global.asax.cs file.So that i can acess all requesting Forms.If I have to do in Page load of all Forms there is no difficulty but i have to copy the code in all Forms Page Load.
If I can acces Form Instance of Requesting WebForm in Global.asax.cs file i have to code in global.asax.cs file only which is simple.
Can anyone help me on this how to get Form instance of Requesting WebForm.
Thanks in Advance
Rajesh Thomas
|
|
|
|
|
Hi all,
Is there a way to disable a treenode ?, by 'disable' i mean mean that the node a should not be able to perform any kind of operation on the tree node.
Thanks in advance,
Gokul.
|
|
|
|
|
In the event handler for the "AfterSelect" event of the treeview, you can ensure that for that particular node (which you want to disable), no action is taken by your code, i.e., have an empty handler when that node is selected. This may perhaps solve your problem.
|
|
|
|
|
This[^] event will allow you to cancel the selection of a node before it is selected.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
how to prorammed or what type of algorithm are involved in ICR/OCR.
According to C# how this programme managed.
eeee
|
|
|
|
|
As far as I know shape recognition is based (for best results) on neural networks, which are the most complex algorithms I know. Good luck.
I hope you understand...
By the way... visit http://nehe.gamedev.net[^]
|
|
|
|
|
i would like to tell you that OCR on a printed charachters can be done but what you need as a ofline handwritting recongnition can't be don in an aceptable quality because online on takes the writting pen movement in the recongnition process which could not be done with the offline recognition so you can forget it .....
Mhmoud Rawas
------------
Software Eng.
|
|
|
|
|
Hi there ,
if anyone have idea or implemented I/O Completion ports with sockets than please help me ,
i have done work with it but getting problem i.e unable to recieve n send
data................
looking forward ...........
babur.saeed@gmail.com
Babar
|
|
|
|
|
can explaint your problem in more deatails to help you ...?
|
|
|
|
|
d
modified 22-Dec-14 16:56pm.
|
|
|
|
|
While it may not be possible to have the size of the form to be more than the maximum screen size, if your objective is to put more controls in an area bigger than the maximum screen size, for all practical purposes you can achieve that by following steps:
1. Have the Form of the whatever size you prefer (including a size equivalent to the maximum size of the screen if you so wish).
2. Set the AutoScroll property of the form to true.
3. Now place a control such as Panel Control on this form. Set the size of the Panel to any numbers of your choice (which may be even greater than the maximum screen size). For example, you can set the size of the Panel as (1500, 1500).
4. Now place other controls (of your choice) on this Panel at various locations. For example, let textBox1 be located at 100, 100 location and another textBox2 be located at the location 1400, 1400.
5. You will notice that horizontal and vertical scrolls are enabled on the Form when the application is run. It can be seen that while the form size is limited to the maximum of the screen size, yet the size of the Panel is set to go even beyond the maximum screen size, which you can access through the scrolls. You can check the position of the two textBoxes at two extreme ends of the form window using scrolls.
|
|
|
|
|
g'day folks,
well i am stuck on the issue of being able to permit multi selection of listbox items in a checked listbox. I have tried setting the selectionmode to MultiExtended or MultiSimple and visual studio simply spits an error saying that "Multi selection not supported on CheckedListBox".
I just want to be able to permit user to press CTRL and Left Mouse Button click to allow multiple items to be selected.
I tried invoking the KEY DOWN event handler to allow an item to be selected when the control key is pressed but just doesnt seem to work.
So I was wondering if anyone here knows of a way around this and could share this idea ?
thanks
|
|
|
|
|
You need to do this yourself, I am afraid, since - as you mentioned - multi-select is not possible with a CheckedLB.
With a Checked LB, you are supposed to check the Boxes, not multi-select items. IMHO, you are not supposed to have an amount of items in there that makes Multi-Selection necessary.
You might be able to pull it off by "rewriting" the CheckedListBox, but I have not tried that yet.
|
|
|
|
|
Right, I'm new to threads and the beginners tutorials I've read don't seem to discuss this. It's got to be a common problem.
Basically its an IRC program that and the bit that listens for server messages. I'm using third part low-level code, and basically I need to call a function listen() to get all the messages recieved since the last call. To loop over this I presume I need a seperate thread that just loops calling it over an over, and then passing an event to the main thread with the data. However I don't know how to communicate across threads in this way. The tutorials I've read show how to acess a shared object.
Its got to a be a common multi-threading problem, whats the solution?
|
|
|
|
|
You shouldn't need to use a thread for something like this. All you really need is a timer, with the event handler Tick() calling your listen() function.
If you're set on threads, you would create a thread somewhere in your class:
Thread mythread
and then when you're ready to run the function,
<br />
mythread = new Thread(new ThreadStart(listen));<br />
mythread.Start();<br />
mythread.Join(System.TimeSpan(0,0,10));<br />
mythread.Abort();<br />
The listen function would write to a global or semi-global string, that you would read into your program. The System.TimeSpan object can be whatever you want (its how long that function has to run).
I would still use timers for this, you would use threads to allocate a given time for your client to connect to an IRC server.
Hope that helped,
Jimmy Sawczuk
www.McJournal.org
|
|
|
|
|
Hey folks,
Do you guys know how to write a piece of code to list all the COM+ components in Windows 2003 using C#. I don't know what API to call.
Thanks.
|
|
|
|
|
Hi!
I have to marshall a struct which contains a array.
the marshalling works for the following one:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
public struct STRUCTa
{
public ulong ulMountedDrives;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=1664)]
public short[] wszVolume;
}
but i need a two-dimensional array, the marshalling chancels with System.ArgumentException.
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
public struct STRUCTa
{
public ulong ulMountedDrives;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=1664)]
public short[,] wszVolume;
}
i marshall the struct in the programm with:
STRUCTa sStruct = new STRUCTa();
IntPtr point = Marshal.AllocCoTaskMem(Marshal.SizeOf(cMntStruct));
why does version one work, but version 2 fails?
anybody got a resolution for this problem?
thanks for your help
53746F6E65
INT 19H
|
|
|
|
|
UnmanagedType marshalling is complicated and the MSDN does a generally sh*tty job of explaining how to implement it for anything other than a simple type.
Since no one has responded to this, I'll suggest a hack workaround.
Instead of trying to decipher that documentation mess in the MSDN, you might want to just have your unmanaged code pack the entire array into a single dimensional column major based array, then have the C# code enumerate the 1-D array back into the original 2-D array. If the dimensions are variable you could add parameters to the structure that the unmanaged code could supply to make it easier to unpack the single data stack on the C# side.
In other words make a single stack array that has a structure something like:
Array[0] = Column(0), Row(0)
Array[1] = Column(0), Row(1)
Array[2] = Column(0), Row(2)
Array[3] = Column(1), Row(0)
Array[4] = Columns(1), Row(1)
Array[5] = Column(1), Row(2)
etc....
Maybe a little crude, but it would work...
Robert
|
|
|
|
|
I have found another way which works fine:
if you got a 2D array with 20x20 just make a 1D array with 400 Elements
53746F6E65
INT 19H
|
|
|
|
|
Hi
I have created a Setup and Deployment Winform Application.
While installation the setup routine asks the user for the Folder in which the application should be installed in.
I want to read the Folder name chosen by the user in my application.
Is there any way to read the Folder name from the application.
regards
rt7.
rt7
|
|
|
|
|
Uhhh Didn't you write the application? What do you mean you want to "read the Folder name chosen by the user in my application"? If you asked the user for the folder, what's stopping you from reading what the user typed?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|