|
You are supposed to be able to use any valid coordinate, but only the ones inside the clip bounds would be drawn on the graphic surface. Opacity, the new Transparency.
|
|
|
|
|
You are supposed to be able to use any valid coordinate, but only the ones inside the clip bounds would be drawn on the graphic surface.
That was not the result I got
I will try again... Maybe the fact that I was using a TransFormMatrix on the Graphics affects the normal behaviour
|
|
|
|
|
|
As you mentioned in another post, perhaps the transformation is affecting the way it appears to work
Indeed !
Thank you Walt
|
|
|
|
|
at to fast message sending i get 1 incoming message with 10 grouped packets and not 1 packet for each of 10 incoming messages
for
p.s. sry for terrible english
|
|
|
|
|
I am not sure what the 1 message with 10 packets means... specially compared to 1 packet to 10 messages, but I think I have the "solution".
For example:
Send("Test1");
Send("Test2");
Send("Test3");
The client can receive:
Test1Test2Test3
Or you can receive the message as:
Test
1Tes
t2Te
st3
In fact, TCP/IP only "streams" data. If you expect to send "one packet" and receive "one packet" you are going the wrong way.
Ahh... and that's has nothing to do with synchronous or asynchronous programming... it's the TCP/IP way of working.
If you expect for messages, you must Receive the buffer, accumulate it to the last buffer (if it exists) and then search as many "begin/ends" as it is possible in the message, so it's up to you to do that.
|
|
|
|
|
|
I know that LINQ, Entity Model and RIA Services (when it is available) are great and all, but I find that all the extrapolation makes me stupid and makes it harder to solve problems. I know it takes a few extra hours to write your own classes that represent your database objects, but I like the having the extra control.
One of the things that kills me about ASP.Net MVC is that MS tells us one of the benefits is the granular control over the HTML. Well, I kind of like having the granular control over my database transactions. I also find that it is an important skill in the business world to be good at writing SQL. Being able to easily adhoc query your databases is also very important. I know it is a bit of extra work, but frankly I prefer to program that way.
Anyone else agree with me?
I didn't get any requirements for the signature
|
|
|
|
|
I still write my own data object classes, etc. For one thing, I have a lot of code and objects that were developed long before Linq, etc. that are still in use.
Maybe I'm just missing something, but I don't see where Linq, etc. save me much work.CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Walt Fair, Jr. wrote: Maybe I'm just missing something, but I don't see where Linq, etc. save me much work.
Agreed.
I didn't get any requirements for the signature
|
|
|
|
|
I always write my own SQL and I have found very little use for "entities" in my work and I can imagine few cases where they may be beneficial, so I expect that they are over-used (an anti-pattern).
I was discussing this with a colleague the other day.
The bottom line, to me, is the duration of the object -- will it last long enough to warrant spending time and effort creating it? And will it interact with other objects? If the answers to these questions are both "yes", then go right ahead and use an object. If not, why bother?
Let's put it this way... if all you're doing is querying data and writing it to a file (a simple list of customers for instance) then I see no point in bothering with instantiating an object for each customer just to dispose it immediately.
P.S. I don't do stored procedures, I don't do WCF, I don't do databinding.
|
|
|
|
|
I agree with you. I do use stored procedures, but I don't really need to. I don't really like databinding either.
I didn't get any requirements for the signature
|
|
|
|
|
I have written quite a few automated tests now with things like NUnit, and I find that they generally don't look very elegant. I find that code reuse is usually very difficult and code all ends up looking very similar. Books generally only show simple cases and in the real world with databases etc. things aren't quite so simple.
A good example of what I mean is database stuff. Every table works in pretty much the same way, but they all have different fields and types so you can't reuse much code. I find that most of my code looks like this:
SetupConnectionEtc();<br />
SetupDataForTest();<br />
DoSomething();<br />
ReadTheDataAndCheckEverything();
Although the first line probably isn't unique, all of the others usually are. So if your application uses 20 database tables then you will probably end up with 20 files containing a ReadTheDataAndCheckEverything() function, as well as some of the other ones.
What do people think? Am I doing something wrong or is there an easier way?
|
|
|
|
|
I find testing (and writing tests) invaluable. In fact, it's the only reason I sleep soundly at night (no, really). I'm working on some low-level frameworky stuff (that has to work and has to work fast) and end up writing slightly higher level tests than the ones mentioned in your post. I find them to be more useful (i.e. akin to how my APIs are used) than traditional unit testing.
To answer your question, I probably wouldn't write tests that check table reads and writes - instead, I'd write tests for the APIs that end up calling them. I hope this makes sense.
/ravi
|
|
|
|
|
|
How many times are you going to ask the same question?
You already got a good answer yesterday, to your original post.
|
|
|
|
|
Hello friends!
I require your help
I have created in a component ultraCombo1 buttons right - "StateEditorButton" display style "CheckBox".
How to me to use this button "StateEditorButton" created by me?
How to use this CheckBox?
Thanks the big all answered!!!
|
|
|
|
|
arsendem wrote: How to me to use this button "StateEditorButton" created by me?
without a code to see, it is imposible for other to answer your question. Maybe you would have a better luck by going to their forum
|
|
|
|
|
using
GPMGMTLib;
GPM myGPM = null
;
GPMConstants gpmc = null
;
GPMRSOP myRSOP = null
;
myGPM = new
GPMClass();
gpmc = (GPMConstants)myGPM.GetConstants();
myRSOP = myGPM.GetRSOP(gpmc.RSOPModeLogging, ""
, 0);
myRSOP.LoggingComputer = computername;
myRSOP.LoggingFlags = gpmc.RsopLoggingNoUser;
myRSOP.CreateQueryResults();
myRSOP.GenerateReportToFile(GPMReportType.repXML, outputfilename);
the above code gives the following error
System.Runtime.InteropServices.COMException was unhandled by user code
Message="Exception from HRESULT: 0x80041003"
Source="Interop.GPMGMTLib"
ErrorCode=-2147217405
this is my first time programing with COM objects and not really sure how to fix this error, I see that could be a permission issue, I gave myself Domain admin rights and I still can not run the code on the local machine.
|
|
|
|
|
Could be a rights issue. Does this[^] thread help?
/ravi
|
|
|
|
|
Hello
I have implemented a custom Designer Surface with several Controls.
I have seen in the VS Editor, that there is a "TaskButton" (the square which looks like a "Play" Button) on some controls which sounds very useful to me.
Is it possible to add it to my controls?
And another question:
I have managed to implement a drag&drop behaviour to add my controls from a toolbox to the surface. But with this approach the controls are drawn in standard size.
I would like to draw them myself in my prefered size. So I would like to select/activate the item in toolbox and then draw the control on surface.
I have only found a lot of different approaches with drag&drop, but nothing like that.
I assume it's not that easy as drag&drop. I think I have to change the action that is going to be performed when I click on the surface again depeding on which control I have selected in toolbox, right?
Thank you in advance for your help
|
|
|
|
|
Do you mean a SmartTag? As in near the top right of a Panel there is a small button which brings up a window labelled "Panel Tasks" allowing you to "Dock in parent Container"? You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
|
thx a lot, this is exactly what I meant (if you know the correct identifier its easier to find ).
Maybe there are examples for the "Select and Draw" approach to draw controls out of toolbox as well, but I'm just searching wrong
Would be great if someone could give me a hint
|
|
|
|
|
I Have never experiment this, because i started creating custom control. So how do you handle Size proprty?
|
|
|
|