|
Hi Heath,
thanks for that. I think that is the best route. Below is an example of the code:
this.pctBtnCOCViewOrders.Location = new System.Drawing.Point(8, 135);
this.pctBtnCOCViewOrders.Name = "pctBtnCOCViewOrders";
this.pctBtnCOCViewOrders.Size = new System.Drawing.Size(86, 22);
As I said, nothing has been changed in here. But when I run the code it builds and displays the UI fine so I will hand-code it. Thanks again.
|
|
|
|
|
I get this problem sometimes.
Sometimes it's due to me doing a debug build and there's an error in my code that throws the designer for a loop. In those cases, fixing the error and re-building fixes my problem.
Sometimes though for whatever reason I get errors about DLL files from a related project (I'm working on a multi-project solution), in which case I go through each project's obj/debug/release folders and delete all the dll's and exe's and then do a solution rebuild.
That problem annoys me to no end.
|
|
|
|
|
How can i build a form for an application which can contain the functionality of login ID and password .. ?
Winfomrs using C#
e-Wire Technologies
|
|
|
|
|
Are you looking for Windows Authentication? Or hwere the user nae and password stored in a database server? A little more detail on what your tring to do, or having a problem with.
-------------------------------
Joan
MomComputerGeek.com
|
|
|
|
|
Is it possible to use Remoting to marshal a delegate across an AppDomain?
I've successfully setup my app to marshal several objects using RemotingServices.Marshal(someMarshallByRefObj) . However, I cannot use that method on a System.Delegate type since it does not inherit from System.MarshalByRefObject .
So my next thought was to create a simple class that inherits from MarshalByRefObject and has a System.Delegate class variable. This allows me to call .Marshal on that simple class, however, on the client side after I retrieve the simple class proxy, I get a nasty serialization exception when trying to access that System.Delegate class variable. Ack!
So is there something special that prevents me from marshaling a System.Delegate type? I guess my real question is, how can I remotely invoke a method on the server from the client?
---------------------------
He who knows that enough is enough will always
have enough.
-Lao Tsu
|
|
|
|
|
I suggest you visit Ingo Rammer's Remoting FAQ[^]
Also browse around his site. Ingo basically suggests you do not marshal events across app domains. But I also know that in certain cases (internal client talking to a limited-use server) you have more options than his recommendations.
Hope this site helps.
_____________________________________________
Of all the senses I could possibly lose, It is most often the one called 'common' that gets lost.
|
|
|
|
|
You're the 2nd person to recommend something from Ingo Rammer. Fortunately my boss decided to buy his remoting book.
Yeah his FAQ helped,
If you use client activated objects, events or delegates you will quite likely encounter one of the following exceptions when running on the .NET Framework 1.1:
System.Security.SecurityException.
*Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level.
*System.Runtime.Serialization.SerializationException
Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.
Well that explains the exception I'm getting. Thanks for the pointer.
---------------------------
He who knows that enough is enough will always
have enough.
-Lao Tsu
|
|
|
|
|
Doing Deligates across application domains is difficult. Doing Deligates across Remoted app domains is nearly impossible.
Consider the basic network setup: a firewall on your end (if you don't have a firewall, why not?!) and a firewall on the Server end. Your machine passes through your firewall and hits the Server firewall on port 80 (using Http for an easy example, but it is a problem on any port) and forwards the traffic to the real machine "Server". The Client signs up for an event on the server through an exposed deligate/event. The event happens but how does the Server cross the firewall on your end to contact your machine? Sure you can forward ports but that only works for you machine. If you have many machines behind your firewall all trying to access the Server all wanting to use the deligate, then you are sunk because the Server has no idea how to initiate a connection to your machine.
If you are on an open network (say an intranet) and all computers are peer-to-peer you might have a chance. You have to shift your strategy from a client-to-server to a double client-to-server. Your client contacts the server. The server in turn becomes a "client" broadcasting the event to your client's "server".
I personally would avoid using deligates/events across remoted application domains. It generates overhead an complicates transations (what happens if your client crashes but the server fires an event?). I would try to isolate all deligates/events on one side or the other of the remoted application domains. The key here is to make a design that is clean. When your application straddles application domains you need to keep the application domains "clean" or you introduce instability in one side or the other.
|
|
|
|
|
Background of my goal:
I've been asked to simulate a mdi in a mdi to do this i'm trying to limit a user from moving a form beyond the bounds of what will be considered the a main form (keep in mind the parent is not mdi just and owner and it has to be that way)
My desire:
I want limit a windows movement to an area i set in code. I been able to do this by set the location property when it hits a boundary but this causes a lot of flicking. I tried setting the capture property to false but that then the form snaps back to its orginal position before the move. So thats where i am. I either want to be able to stop the form from flicking or stop it from snapping back the orginal position. any help is greatly appreciated.
|
|
|
|
|
I've never tried to keep a window position from going too far to the top or the left, but the WM_GETMINMAXINFO message and the related MINMAXINFO structure were designed to limit sizing and maximized window positioning. Check that out. It may be the solution you need.
John
"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.
|
|
|
|
|
How do I get started in writing an application that monitors a POP3 email server. Which simple windows POP3 server can I download for free.
This Email monitor is TCP/IP (usually tray) applications that notify the user if there is an email waiting on the mail server. The application uses POP3 protocol to check email in a specified time intervals. User is able to setup multiple accounts and view sender names, subjects, dates and message sizes. Program should have a spam control, and option to delete selected messages without downloading them from the server.
Software Tools:
Any windows POP3 Email server,Microsoft Visual Studio,C#
OS:windows 2000
Help:What books & tutorials recommended
Shaaba Shaaba
|
|
|
|
|
There's a lot of articles here on CodeProject that discuss this already. Try a search[^].
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hello,
My Name is Daniel, I'll like to know if are a method to list all of Pcs in my network.
Thanks
|
|
|
|
|
Yes, and this has been asked and answered many times. Click Search comments above (or this link) and search for it. You could probably find some articles here on CodeProject as well.
The most common way - System.Management classes using WMI.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Dear experts,
Does anyone know of some good C# pretty printers? I know .NET has some code formatting functionality built in, but I want an application that can handle variable/method/class renaming as well as mundane things like spacing, tabs, etc. I have found two so far, CodeSmart Code Formatter and SemanticDesigns C# Code Formatter, but I was hoping to be able to evaluate others.
Thanks!
-joschmo80
|
|
|
|
|
|
This is just an idea , don't know if it works or it is a good way:
When you connect a webcam or DGC to PC , additional removable disk drive added to your PC. You can check it with win32 API if it is exist and its proper type (for example with GetDriveType() function) then simply give the path to it.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
Try searching[^] CodeProject for a few. There's other ways as well. Mazdak touched on one, but that only works in newer Windows OS's (like XP) and only if the webcam driver support the Windows Imaging APIs.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
Debuggin for me is a pain in the $ss. What sofisticated methods are there to debug programs easier. (Ie: something else then : Put breakpoints and press F11).
There is a way of using trace, and logging also helps, but what else is there.
Good practices are also welcome. (By the way i have already read The Standalone Programmer Series.)
|
|
|
|
|
HAHAHA_NEXT wrote:
Debuggin for me is a pain in the $ss
Are you a programmer?
Well, you can use some class like Trace or Debug which have some methods to write information you want in a file,event viewer or output window.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
Mazdak wrote:
Are you a programmer?
Sheesh, no kidding! This is part of the trade. Get used to it!
Trace and Debug with the default and custom TraceListener implementations can tell you some things, but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Heath Stewart wrote:
but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you
Yah, but I thought it could be ease some of his pain in *ss.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you
1) This i know, but this is the slowest way of doing things, and works well when you can test a small part of your program.
2) As experienced programmers you must have other tricks then that. For example, i put a comment //WORKS on the part which works, so not checking it.
Believeing that there is no more tricks, is like beliving that 2 + 2 is the only thing they teach us in math.
|
|
|
|
|
I believe someone wants a System.Diagnostics.FixIt class. Debugger tools are like any other tool: A hammer drives nails and it can help build a house but it doesn't do that for you automatically. I could tell you how to use the VS.Net Debugger but you'll never gleen the useful tactics and tricks to spot errors easily without actually doing it yourself.
The .Net SDK comes with a debugger...its functional but lacks bells and whistles. The debugger in VS.Net works well enough. But it just spits out data for you to figure out. The rest is up to you to figure out.
For general debugging behavior you should look at System.Diagnostics.Debugger and System.Diagnostics.Debug (or heck the System.Diagnostcis namespace).
|
|
|
|