249 Posted Topics

Member Avatar for zachattack05

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 …

0
45
Member Avatar for brokenarrow_vip

If it's not your application, then circumventing it or disassembling it might be a violation of the DMCA. Just a thought...

Member Avatar for zachattack05
0
162
Member Avatar for zachattack05

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 …

0
67
Member Avatar for zachattack05

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?

Member Avatar for zachattack05
0
63
Member Avatar for Arjun_Sarankulu

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.

Member Avatar for zachattack05
0
89
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
13K
Member Avatar for zachattack05

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.

Member Avatar for zachattack05
0
119
Member Avatar for araib

hehe I would totally have a custom function called mc.hammer. sorry. Useless post, I just couldn't resist.

Member Avatar for zachattack05
0
80
Member Avatar for newack

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 …

Member Avatar for zachattack05
0
114
Member Avatar for muzikhera
Member Avatar for zachattack05
0
141
Member Avatar for zachattack05

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.

Member Avatar for Momerath
0
41
Member Avatar for zachattack05

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, …

0
64
Member Avatar for zachattack05

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?

Member Avatar for zachattack05
0
107
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
88
Member Avatar for zachattack05

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, …

0
61
Member Avatar for zachattack05

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 = …

Member Avatar for zachattack05
0
165
Member Avatar for cool_intentions

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?

Member Avatar for zachattack05
0
869
Member Avatar for goldeneagle217

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 …

Member Avatar for goldeneagle217
0
123
Member Avatar for zachattack05

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?)

Member Avatar for zachattack05
0
79
Member Avatar for zachattack05

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 …

Member Avatar for mcriscolo
0
355
Member Avatar for ctrl-alt-del

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 …

Member Avatar for pseudorandom21
0
163
Member Avatar for VasquezPL

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 :)

Member Avatar for VasquezPL
0
212
Member Avatar for pseudorandom21

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 …

Member Avatar for abelLazm
0
131
Member Avatar for zachattack05

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 …

0
68
Member Avatar for ami7
Member Avatar for NOVICE3

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 …

Member Avatar for zachattack05
0
109
Member Avatar for NewOrder

Add the [Serializable] flag to your ClassMoveToSerialize class if you haven't already. Also, what exception are you getting?

Member Avatar for NewOrder
0
153
Member Avatar for Zephyr-

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 …

Member Avatar for Zephyr-
0
118
Member Avatar for simagen

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. :)

Member Avatar for simagen
0
237
Member Avatar for Singlem

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 …

Member Avatar for zachattack05
0
115
Member Avatar for gogs85

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?

Member Avatar for zachattack05
0
1K
Member Avatar for zachattack05

[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 …

Member Avatar for CsharpChico
0
798
Member Avatar for badihi

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.

Member Avatar for badihi
0
91
Member Avatar for zachattack05

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; } } …

Member Avatar for zachattack05
0
134
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
296
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
139
Member Avatar for evilmarksman

*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?

Member Avatar for zachattack05
0
102
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
2K
Member Avatar for micmo

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 …

Member Avatar for zachattack05
0
10K
Member Avatar for zachattack05

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, …

Member Avatar for zachattack05
0
156
Member Avatar for nutrion

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 …

Member Avatar for Mitja Bonca
0
118
Member Avatar for zachattack05

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 …

Member Avatar for Momerath
0
198
Member Avatar for micmo

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 …

Member Avatar for zachattack05
0
226
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
167
Member Avatar for zachattack05

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?

Member Avatar for zachattack05
0
61
Member Avatar for judithSampathwa

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!

Member Avatar for Mitja Bonca
0
208
Member Avatar for paddypowa

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 …

Member Avatar for zachattack05
0
4K
Member Avatar for Jessurider

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.

Member Avatar for ddanbe
0
156
Member Avatar for SBA-CDeCinko

[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 …

Member Avatar for Momerath
0
109
Member Avatar for bhagawatshinde

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 :)

Member Avatar for zachattack05
0
91

The End.