249 Posted Topics
I noticed in the Advanced Properties of the connection string dialog, there is a setting for AttachDbFilename (see picture attached). The question is, in this case, the file resides on the E:\ drive of my local system. When the application is finished and deployed, will my application's connection string still … | |
Re: If it's not your application, then circumventing it or disassembling it might be a violation of the DMCA. Just a thought... | |
I think I understand the general concept of how these files work, but I want to make sure, and ask a couple questions about them. Am I correct in thinking MDF files are "attached" to the SQL instance only as long as the application is running and are "detached" when … | |
Need some help with this one. Is it possible to define a class constructor in an interface? I need to ensure that any classes that use a specific interface all have at least one constructor with specific parameters. Is there a different option that can yield the same outcome? | |
Re: Another option is to open the main application form when the application starts (the frm form) and immediately hide it, and then show the login form. That's what I usually do. | |
I haven't had enough coffee this morning yet and for some reason this doesn't look right. I have two objects that I need to convert into one byte array. One object is already a byte array, and the other is a Guid. Given that sockId is a Guid and commandData … | |
Anyone know if there are methods to alter the properties of files such as "Date Created" or "Date Modified" or even extended attributes such as an image file's "Star Rating" or tags, comments or even the Image ID? I attached some example images of what I am talking about. | |
Re: hehe I would totally have a custom function called mc.hammer. sorry. Useless post, I just couldn't resist. | |
Re: I've never written a web application before so I could be wrong here. I don't know if you can really do this. If you have 4 different applications and a "host" application, and the host application has 4 buttons, each starts one of the 4 programs, the web program would … | |
Re: What exactly are you trying to encrypt? The connection strings? | |
Just wondering if anyone has used, or played with any of the new Thread Safe Collections? [URL="http://msdn.microsoft.com/en-us/library/dd997373.aspx"]When to Use a Thread-Safe Collection[/URL]. Anyone found any real performance increases or no? Just curious. | |
I am still working on getting my socket server working. I would like to have the server keep the socket connection open until the client closes the connection or the server is shutting down. I have been using the example at [URL="http://msdn.microsoft.com/en-us/library/fx6588te.aspx"]MSDN[/URL] as a starting point. My question is though, … | |
Anyone know the rule for naming fields with the abbreviation "ID?" I notice that MS is inconsistent, they have "PlatformID" and "ApplicationId." I thought the rule was is the abbreviation was 3 characters or more, only the first letter is capitalized. Like Guid instead of GUID? | |
Is it possible to set a object's value, and once that value is set not allow it to change? I could write a method to do it, but I wasn't sure if there was some sort of modifier I could use? I need to set a value once, and not … | |
I am building an async socket server to receive and process incoming commands. The model I am working on has the sockets receive the data and send it to a "Interpreter" class. I need a way for the interpreter class to know who sent the command to interpret to it, … | |
Looking at examples online, all of them seem to have: [CODE=C#]int read = s.EndReceive(ar); if (read > 0) {//Some code}[/CODE] The question I have is...why? Why bother with the [ICODE]if (read > 0)[/ICODE] when the MSDN says that EndReceive blocks until data is received? If you call [ICODE]int read = … | |
![]() | Re: So...you want to take text from the box and turn it into a graphical representation with noise in it? Or do you want to have an image appear and have the user enter what they see? |
Re: Do you need to have both on their own form? You could have one form, and have the form show a panel that holds a custom control and just show and hide the different panels, that way it's all on the same form but "appears" to have two forms. It … | |
Does anyone know if you can use the comparison operators like ==, >=, <=, >, < etc... on two different System.Version objects to detect different versions and in what direction (like which of the two is a newer version vs older?) | |
I've been struggling with this for a while. It's not so much a "problem" as it is an approach. I've been working on my client/server socket program and I've reached the point in my planning (which isn't very far in) where I really need to think about how the server … | |
Re: I don't mean to interject because I really have no answer to your question, but I did want to throw some things out there to consider: 1. Would it be easier for you to just write your own program that functions in the same way the one you use now … | |
Re: I believe what you are probably looking for is [URL="http://msdn.microsoft.com/en-us/library/system.string.split(v=VS.100).aspx"]this[/URL]. Hope that helps :) | |
Re: I would say no it doesn't count. C++ and C#, while similar, are different languages. I can't program in C++, but I can in C#. I don't know what header files really are, no idea how to even create a window in C++. If you want to work at a … | |
I don't think I've ever sealed a class before...would there be any benefit to sealing a public class that contains fields for a server to process? The object is sent over a network socket to the server, the server reads the data in the object and responds accordingly. I read … | |
Re: Hmmm...that's odd. I would say that the values are probably being loaded incorrectly OR they are loaded correctly and it's reporting correctly, just the text file is setup wrong. The hex value of 128 is 80, I wonder if the hex text file uses FF00 or something goofy. Could you … | |
Re: Add the [Serializable] flag to your ClassMoveToSerialize class if you haven't already. Also, what exception are you getting? | |
Re: I would imagine the first thing you would need to do is figure out what the ratio is. Determining ratios is easy, its basically the percentage of each other. Here's an example: Back in the days of XVGA and SVGA screen resolutions were usually close to the standard 800 x … | |
Re: Add another "=" to your condition. one = sign is assignment, you can't do that in the if () condition. two = signs is used to compare. You should use: [CODE]if (this.LblANDa.Text == "1")[/CODE]instead. :) | |
Re: If you have divided your application up you can create a new solution that is a custom updater. Add the project(s) that you need to update to that solution as well and then all you would need to do is have your updater do a few things: 1. check to … | |
Re: Not 100% sure, but I think you can also just create a report file and send the text to the report and print it that way? | |
[COLOR="Red"]Disclaimer: [I]First, I'm aware that this is C++ code and this is a C# forum, I'm not all that familiar with C++ and was hoping someone here could explain the example below in C#.[/I][/COLOR] I was browsing the very complex source code of the open source project MySQL and saw … | |
Re: Not sure, could you post some of your source code? Specifically portions that read and send the file, and also the portions that receive and write the file. | |
Quick question: Is this valid, or am I missing a potential deadlock in the future: [CODE=C#] static readonly object _LockThis = new object(); private static bool _Status; private bool Status { get { lock (_LockThis) { return _Status; } } set { lock (_LockThis) { _Status = value; } } … | |
Any consensus? I see advantages and disadvantages to both. For a socket listener, a background thread would be good I would imagine, if the server is attempting to close, it obviously does not need or want to accept connections and any connection that is in the process of starting should … | |
If I start a new thread, and that thread executes a method that is contained in a referenced dll, how do they signal each other? Would this be considered a cross-process EventWaitHandle? It doesn't seem like it would be considering that the thread is started in the same process. I … | |
Re: *shutters* ...homework evilmarksman, Not sure I understand what you need to do. Where are you getting the data from? Do you enter it or retrieve it from some file or server source? | |
Is anyone aware of a way to do this? I considered adding a while statement to the listening loop of the server to evaluate if an integer is >= a certain value, and if so to enter another loop until it's not true, and that would allow the server to … | |
![]() | Re: Might I suggest you use a MDI form? It would make getting that list very easy. As for finding the last active form, try the Activated event instead of LostFocus and GotFocus. From MSDN: [QUOTE=MSDN]The Enter and Leave events are suppressed by the Form class. The equivalent events in the … |
I don't know how to title this thread, forgive me if it's bad. I'm trying to determine the best way of handling this and I'm getting nervous about it. The basic setup I have is a server system that is run when the application is open (it's not a service, … | |
Re: nutrion, Threads are actually quite simple when you get the hang of it. Momerath's example is a great place to start. One of the best resources I ever found on threads is available for free online, and has earned a permanent tab on my Chrome taskbar that never closes. You … | |
Quick (really) question about windows services. According to the documentation, services require a minimum of 2 methods OnStart() and OnStop() to be useful. OnStart() cannot contain the main execution code, it shouldn't loop, block or otherwise prevent the OnStart() method from returning quickly. The Question: If the above is true...it … | |
![]() | Re: Not sure how to answer your question, but as a bit of info (only in case you didn't know) MSDN states that applications shouldn't be developed using this technology anymore and instead should be using WCF. [URL="http://msdn.microsoft.com/en-us/library/kwdt6w2k(v=VS.100).aspx"]MSDN Website[/URL]. [QUOTE="MSDN"]This topic is specific to a legacy technology that is retained for … |
Greetings! Wondering if someone had some ears (or eyes I guess) I could bounce some concepts off of regarding a Client/Server system design. All technicalities aside (such as message framing etc..) I was wondering if anyone had ideas for how a system like that should be set up? Currently my … | |
If I have an internal class that implements an interface, the interface method must be public. Is that interface method visible to other assemblies or does the internal class that implements the interface prevent it from being visible? | |
Re: You could write your own setup program, or you could use the Visual Studio Installer template or InstallShield LE template included in VS. You could also use Click-Once deployment which I believe is under the project properties screen under "Publish..." I think... Try starting [URL="http://msdn.microsoft.com/en-us/library/wtzawcsz.aspx"]here[/URL]. Good luck! | |
Re: paddypowa, You [I]could[/I] have a system that displayed a password in a messagebox or email the password, but in my experience and I'm sure others will agree...storing passwords in a database in plain text is a bad idea and could potentially be a security issue. Strike that...it [B]IS[/B] a security … | |
Re: Draw them? :) Wouldn't be much fun, but I'm sure you could? If not, maybe there's a library out there you can buy, or you could use images? Just some quick thoughts. | |
Re: [QUOTE=SBA-CDeCinko;1463086]I have a page that displays information about a person and contains a "contact me" form. I don't want anyone to know the email address of the person, that's the reason for the form. My submit button executes some code behind to send the email message. How can I securely … | |
Re: Do you have the source for the c# executable? I haven't used VB in...wow...forever. But it's hard to offer up suggestions without some source code to go with it :) |
The End.