|
.S.Rod. wrote:
In the mean time, an obvious question : did you put a breakpoint in that ?
Yes, it seems as if it just doesn't work. I don't know, I think I am going to take a break for a few minutes and come back and look at it again. Thanks again.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
This is something that someone else had seen, Stan Shannon I think. The problem is that windows handles all of the painting for textboxes so the OnPaint method is never called.
There is a VB.NET article on control SubClassing using the NativeWindow class, I think that would give you the OnPaint method again.
Let me know if that works,
James
"The elastic retreat rings the close of play as the last wave uncovers
the newfangled way.
But your new shoes are worn at the heels and
your suntan does rapidly peel and
your wise men don't know how it feels to be thick as a brick."
"Thick as a Brick" from Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
I'm experiencing exactly the same problem, has anyone found a solution for this yet??
Please let me know!
Many thanks!
Richard
|
|
|
|
|
Administer IIS and DNS with C# code?
Is there any COM objects or .NET classes for this kind of work?
thanks...
_______________________________
Portal Imoguia Software Imoguia
MSN:maxsnts@hotmail.com
|
|
|
|
|
i want to make my program's User Interface more attractive and have multilanguage support, how could i make it?I'm a newbie so i need your help...
|
|
|
|
|
Multilanguage support or Localization as they call it in .net is a concept you need to understand completely. Here[^] is a good starting point.
Also look for Localization samples in framework sdk (it would be under Samples\Resources\resourcesandlocalization )
HTH
Cheers
Kannan
|
|
|
|
|
I find it really helpful.Thank you a lot!!
Cheers
doose
|
|
|
|
|
Anyone tried using directx 9 and c#??
I downloaded the DX9 runtime and the DX SDK for c# but could get it to work
I found the DX assemblies on the harddrive but I couldn't find them in the
add reference list, also I couldn't add the manually by using browse.
|
|
|
|
|
yes it works for me I have the full sdk and VS.NET and there were no problems installing it and running all the C# examples and I could even write a short program
|
|
|
|
|
Hi!
I have about the same problem as you have. I have downloaded the whole sdk and I could run the samples but I can't compile anything?
|
|
|
|
|
Yep that's it, I could run the samples but wasn't able to compile any programs because the reference was missing.
Tried referencing the assemblies in the assembly folder, but that's not possible.
For some reason the assemblies don't appear in my VS add reference list
|
|
|
|
|
YES!!!!
Fixed it, I deinstalled the directX SDK and downloaded and installed DirectX 9.0 SDK Developer Runtime from the microsoft site.
http://www.microsoft.com/downloads/details.aspx?FamilyId=FB6B635E-9F47-43D7-8E4E-11DE9356849F&displaylang=en
Than i installed the debug version and it worked like a charm
|
|
|
|
|
what would be the fastest thing to use if i would like to read bytes from a big chunk of data in c#
and i basicly only need to read from the buffer.
ive tried using byte* to pin down the first element of a bytearray but it actually wasnt any faster than reading from the byte array w/o pointers , so i guess i wouldnt get any speed gain if i do the same on a memchunk that i allocate with some allocmem api?
//Roger
|
|
|
|
|
Hi , this might sound weird but is there any attributes one can set on a method to
remove out of bounds checks , .net security checks etc etc?
so the question is basicly , is there any attribs that can be applied to a method to make it execute faster (by removing various checks)
//Roger
|
|
|
|
|
No I don't think there is any attribute to remove Bounds Checking, if performance of utmost importance,I think you should be taking the C++ route and you can call C++ routines through P/Invoke.
Cheers
Kannan
|
|
|
|
|
While I beleive there's no way to disable portions of the Framework management (and I hope there aren't ways to do this), there are a number of code optimization tricks you can do that can have a dramatic increase in performance.
Check out .NET Show on code optimization here:
http://msdn.microsoft.com/theshow/Episode027/default.asp[^]
|
|
|
|
|
What .NET library function corresponds to "QueryPerformanceCounter" from the Win32 API?
|
|
|
|
|
There is a PerformanceCounter class in .net but I doubt there is an equivalent of QueryPerformanceCounter method in .net.
So you would have to take the P/Invoke technique, of calling the Win32 API directly.
Have a look at this[^] article
Hope this Helps
Cheers
Kannan
|
|
|
|
|
Hello everyone,
I have been working on Text to Speech. After I have done some manipulation to the sound wave, i write it to a .wav file. But when i play the file, only "zzzzzz" sound came out. Anyone knows what are the possible reasons?
Thanks for any help
min
|
|
|
|
|
I want to edit the datagrid control to display data like the properties window does in the visual studio environment. I.e. I have performed a database query and have a DataTable with the following in it (2 columns of data)
LABEL VALUE
Push To Talk 100
Receive to Transmit 150
Transmit to Transmit 100
Carrier Detect 100
etc..
Basically a list of parameters with values that a user can change
I have created a datagrid and set its source to this datatable and it fills up correctly however I would like it so the first column LABEL is uneditable and its background colour is identifiable as an uneditable cell. I would also like it so there is no new empty row at the bottom of the datagrid because I dont want users adding new rows??
How can this be achieved. I have seen the DataGridTableStyles property and am guessing it is by utilising these collections and adding styles. I have fiddled but havent got anything to work. Has anyone done something like this before that could help ??
Thanks
|
|
|
|
|
I'm designing an online version of a complex card game, where the rules are constantly changing (Fluxx, for any who know it). I'm keeping the actual game logic on the server. The communications between the clients and server is my only problem, however. I hope to create a Java client in addition to a .NET one (several of my close friends who play the game use Macintoshes), so I can't use Remoting. Web Services seemed promising, but I definitely need a highly controlled persistent-state connection. I have a basic design for a persistent-state XML-based connection, but I'm hoping I'll be able to avoid the hassle of creating programmatic logic to create the message (and avoid having to create a DTD or Schema, since the messages could be complex). So, I'm looking for some good ideas. Any contributions will be extremely welcome. (Oh, and if I end up posting the game onto CodeProject, I'll give credit for any contributions used.)
Thank you in advance,
Eric Astor
|
|
|
|
|
Ok this is not the answer to your question, but have you tried terrarium[^]
I believe its purely a p2p kind of architecture, you should be able to derive some ideas from that one.
Kannan
|
|
|
|
|
I have tried Terrarium, but its P2P architecture doesn't really fit the model of a card game. My client/server model, with all logic localized to the server, seems to be a more appropriate architecture.
Also, I would assume that the Terrarium communication method is probably a .NET-based proprietary solution, and therefore unfit for creating connections between a .NET server and a Java client (which is the final goal of my connection scheme, as I want to be able to play this game with my Macintosh-using friends).
Kannan, thanks for the suggestion, but I don't think the approaches used for Terrarium really fit an online card game.
Eric
|
|
|
|
|
Does anyone know how to get the icon from a specified executable path? I know there is an Icon class and the Graphics class has a DrawIcon function, however I am not sure how they work together. Note that the icons will be coming from other applications, not necessarily from another C# application.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Nick Parker wrote:
Does anyone know how to get the icon from a specified executable path?
// System.Drawing.Icon constructor
public System.Drawing.Icon(
Type type,
string resource
);
(that's the equivalent of WIN32's LoadLibrary(path) + LoadResource(iconid))
doc here[^].
|
|
|
|