249 Posted Topics

Member Avatar for mnorgate

Could you open a form with no border and set it to "maximize" on open and make it semi-transparent. Open the form(s) that the user must interact with on top of the semi-transparent form and when they are finished interacting with it, close the form with no border. If you …

Member Avatar for zachattack05
0
100
Member Avatar for zachattack05

I tried asking this at the MSDN website and didn't get an answer at all...I was hoping someone here could help. If I indicate that SQL Server Express is to be a pre-requisite for my application, how does the installer interpret this? For example: If end user A already has …

Member Avatar for zachattack05
1
236
Member Avatar for zachattack05

I am working on a project that stores it's data in serialized files on the hard drive in a custom file format. The server end of the application accepts TCP connections from clients and returns data to the clients based on the query, it's kinda like a light weight, custom …

Member Avatar for mcriscolo
1
250
Member Avatar for zachattack05

I am putting together an editor for an application I am creating. The data ultimately resides on a SQL server. The application loads some of the data from the server into a dataset, which is used by a bindingsource which is then used by a bindingnavigator. (wow that's a mouthful). …

Member Avatar for zachattack05
0
203
Member Avatar for irandokht

You could use a masked text box instead of a regular text box and just make a mask to match? I haven't tried, but setting the mask to something like 0,000,000. I guess the other option would be after the user inputs the data and the textbox loses focus, just …

Member Avatar for irandokht
0
3K
Member Avatar for zachattack05

If I add an imagelist control to my project it asks me to select images from the hard disk. When my application is compiled and distributed are the images I selected serialized and/or compiled into the exe? or do the images need to reside on the end-user computer in the …

Member Avatar for zachattack05
0
77
Member Avatar for zachattack05

I'm lost on this one. I'm creating a "Preferences" type form. On this form I have a tree view and a panel. I have created multiple user controls, each to be displayed in the panel when a certain tree node is selected. The problem I am having is finding the …

Member Avatar for zachattack05
0
898
Member Avatar for zachattack05

I can't figure out what I'm doing wrong here. I want to allow the user to name the database on their own. Can you use parameters in a situation where the command is simple like: [CODE=SQL]CREATE DATABASE @DatabaseName[/CODE] I've been trying forever and it just keeps creating a database called …

Member Avatar for kplcjl
0
2K
Member Avatar for johnnyturbo3

on any methods that might be called from a different thread I always use something like this in the method: [CODE=c#] private void UpdateStatusText(string status) { Action UXUpdate; UXUpdate = () => textBoxStatus.AppendText(status); this.Invoke(UXUpdate); } [/CODE] and in the thread that calls that method I' just call it as normal: …

Member Avatar for Ketsuekiame
0
711
Member Avatar for zachattack05

Is something like this possible: [CODE=C#] int MyParameter = 3356; DataTable x = new DataTable("CommandParams"); x.Columns.Add("ParamName"); x.Columns.Add("ParamType"); x.Columns.Add("Object"); DataRow y = x.NewRow(); y["ParamName"] = "@SomeParamName"; y["ParamType"] = MyParameter.GetType(); y["Object"] = MyParameter; SqlCommand z = new SqlCommand(); z.Parameters.Add(new SqlParameter(x.Rows[0]["ParamName"], (x.Rows[0]["ParamType"])x.Rows[0]["Object"]); [/CODE] I'm trying to come up with a method that can …

Member Avatar for zachattack05
0
188
Member Avatar for zachattack05

Not sure if this actually qualifies for this forum so please by all means move this topic to the appropriate place if it isn't. I'm writing a C# Windows Application (not a web app) and it uses either an SQL or Access database to store its data for multiple network …

Member Avatar for Ramy Mahrous
0
207
Member Avatar for zachattack05

I have an application that, on occasion, might need to perform certain tasks on files, or other things that are "in-use" while the application in running. This is what I've tried to do, but I'm running into problems: I created an interface: [CODE] interface IShutdownCommand { void OnShutdown(); } [/CODE] …

Member Avatar for zachattack05
1
124
Member Avatar for zachattack05

Stupid question I know. But I have looked for HOURS on examples of how to do this. Every single example I can find uses streamwriter or streamreader which reads and writes text, not byte arrays. Is it possible to get a byte array from a CryptoStream? The closest I can …

Member Avatar for zachattack05
0
894
Member Avatar for zachattack05

I've got a question about navigating memory streams. Memory stream properties aside (like making sure the stream can use seek etc...) if someone is storing variable or dynamic data in a stream, how can you retrieve that data? Like, for example if a user could store an image from their …

Member Avatar for zachattack05
0
117
Member Avatar for zachattack05

Ok...I spent hours (I know, probably something you pros know already) trying to figure this out. I finally did and thought I would share it with others considering I found nothing (literally) out there on this. Feedback would be much appreciated! Most of the time string data written to a …

Member Avatar for zachattack05
0
676
Member Avatar for zachattack05

I have a project that can potentially use a SQL server as a host for it's data. When a user starts the application for the first time, a wizard walks them through selecting how to store their data. If a user selects the SQL option and indicates that the database …

Member Avatar for zachattack05
0
96
Member Avatar for zachattack05

Maybe this is more of a "how do you report progress" topic. I have a progress bar on a form. The same form launches 2 separate threads. I would like each thread to report to the same progress bar. Instead of cluttering my code up with a bunch of stuff …

Member Avatar for edepperson
0
581
Member Avatar for zachattack05

I have been reading through a rather lengthy Microsoft document regarding UX (User eXperience) design and standards. There are many great suggestions that I have started to adopt. But something occurred to me last night while working on my solution and I wanted to solicit some ideas and possibly have …

Member Avatar for Diamonddrake
0
108
Member Avatar for zachattack05

Having a problem here...not sure if it's something simple or not. I'll be honest, threading is new to me so I'm not quite sure what the problem is here. Let me explain the problem first and then I'll post some code. I have a method that runs in a wizard …

Member Avatar for zachattack05
0
165
Member Avatar for zachattack05

I am adding a feature to my application that allows users to backup an entire SQL database, as well as include application settings with that backup file. My dilemma is choosing a good file extension to use. The over-used .bkp type could cause conflicts in systems that have applications that …

Member Avatar for zachattack05
0
92
Member Avatar for zachattack05

Has anyone tried this? My general dilemma is having to open and maintain multiple connections across multiple forms. I have an MDI application and I would prefer to store the connection in the parent form and just have the child forms use that connection if it needs it. This normally …

Member Avatar for zachattack05
0
117
Member Avatar for zachattack05

I was wondering...has anyone ever written an application that interacts with a device that is NOT inside of the computer? Like a photocopier, scanner, etc...? If so, does anyone know where I can find, or figure out, what type of communication protocol is required to talk to and use a …

0
62
Member Avatar for zachattack05

For the past few hours I have been pouring through hundreds of internet articles, blogs and posts in various forums regarding interfaces. I get a general idea that it is basically a class with no implementation at all...a "skeleton" if you will. I was hoping for an a-ha! moment that …

Member Avatar for embooglement
0
168
Member Avatar for zachattack05

I've been trying to figure this one out. I was under the impression that when a class method contains any resources, once the method has reached the end of the code and returns it's result (or nothing in the case of void), that all of those resources are gobbled up …

Member Avatar for zachattack05
0
661
Member Avatar for zachattack05

I have been reading through many blogs, the MSDN website, and Google search results trying to figure this out... At what point, or in what situations would someone ever want to have multiple projects under one solution? I have thought about having a project that contains forms and some "core" …

Member Avatar for zachattack05
0
94
Member Avatar for zachattack05

I am working on a software project that utilizes the MSSQL Express version. My question is... I have checked out software that does the same thing that I want to do, but it seems that the competition uses a file based database system. I intend to use SQL because it …

Member Avatar for zachattack05
0
107
Member Avatar for zachattack05

Hi! I was wondering if anyone knew a way to have a date/time picker only allow the selection of months/years? Like January, 2010...etc and not the specific day of the week? Kinda like the attached image.

Member Avatar for zachattack05
0
87
Member Avatar for zachattack05

Does anyone have any suggestions for a site that hosts bug tracking? Preferably free, and one that doesn't ask for phone numbers? I'd like to have something that is hosted online so that users can submit bugs. And also so that I can track them anywhere I decide to work …

Member Avatar for Z_KiNGPiN
0
54
Member Avatar for zachattack05

I'm getting to a point in my project where functionality can be based on the needs of individual users. As part of my application I would like to have the ability to add and remove functionality based on the user. I figure plug-ins might be the way to go for …

Member Avatar for zachattack05
0
109
Member Avatar for zachattack05

I have a timer that runs a SQL query every 30 seconds to retrieve updated information. Unfortunately every time the query runs the vertical scroll bar resets to the top most part of the form. I tried [CODE=c#] int scrollPosition = this.VerticalScroll.Value; [/CODE] at the beginning of the timer code …

Member Avatar for zachattack05
0
4K
Member Avatar for zachattack05

All parenting jokes aside, I have a general purpose status strip on my parent form that contains a progress bar and a few labels. Occasionally a child form will execute a command that could be tracked on the status bar so my users don't think that the program is hanging... …

Member Avatar for zachattack05
0
85
Member Avatar for zachattack05

I have a form that has multiple text boxes, check boxes etc... The question is, instead of writing out: [CODE=c#] cmd.Parameters.Add(new SqlParameter("@myparam", (object)textbox.Text));[/CODE] a million times for each parameter, is it possible to load all of the names of the objects on a form into an array and just do …

Member Avatar for zachattack05
0
153
Member Avatar for zachattack05

Does anyone use it? Seems kind of scary to me the thought that I would allow a mysterious command to alter data in my tables. Is it better to write your own update strings and execute them or use the command builder? Does it matter? Edit: PS the new site …

Member Avatar for finito
0
108
Member Avatar for zachattack05

I have been working on a form that reads records from a SQL database. I have the binding working in that it populates all of the fields with the correct data. But if I am viewing record 1 and record 2 changes while I'm looking at 1, then browse to …

Member Avatar for zachattack05
0
128
Member Avatar for zachattack05

Can you do that? I can't seem to get it to work. [CODE=C#] lblfiledate.DataBindings.Add("Text", bindsrc, "filedate"); [/CODE] Doesn't work.

Member Avatar for zachattack05
0
73
Member Avatar for zachattack05

I think it would be nice if we had forums for people to contribute tutorials that they have written. Searching through the forums doesn't always result in a complete picture of a problem a particular person may be having. Tutorials might help a lot! Any thoughts?

Member Avatar for zachattack05
0
77
Member Avatar for zachattack05

Anyone have any good links to tutorials for printing with C#? I need to mimic a form that we have. It's a rather complex form, so if you know of a tutorial that is better than just printing rows and columns of data would be greatly appreciative!

Member Avatar for zachattack05
0
169
Member Avatar for zachattack05

Thanks to you guys I have been able to get my first application halfway going. But I have a question about data integrity. The application that I am developing utilizes a single sql server and multiple work stations accessing that sql server. What is the best way to maintain data …

Member Avatar for zachattack05
0
98
Member Avatar for zachattack05

I'm lost. I've been trying to do this for a while now and I can get halfway what I need. But I can't tell if it's working or not, or where my problem is. I don't want to use the wizard in VS to add a data source, I'd like …

Member Avatar for zachattack05
0
112
Member Avatar for zachattack05

Good evening! I was hoping someone could help me here. I've been teaching myself C# for quite a while now, and I'm working on a project and have run into a problem. I would like to use the binding navigator control to allow my users to browse through various tables, …

Member Avatar for zachattack05
0
622
Member Avatar for zachattack05

I've been having problems figuring out a way to do this. I need it so that if the user opens form a and then later on buries that form under others, and they click the menu to open the form again that it just sets focus to it instead of …

Member Avatar for zachattack05
0
3K
Member Avatar for zachattack05

It's been a while since I've posted. Things have been going well for my project, but I'm coming back to the issue of setting up a SQL server on my user's computers. Sknake was kind enough to give me the command line switches to get a MSSQL install set up …

Member Avatar for zachattack05
0
172
Member Avatar for zachattack05

OK before I fumble around any more and end up needing to change everything again...I was wondering if someone would be kind enough to have a discussion with me about a networked solution. Right now what I have is an Access database with forms that manage the data...this is great, …

Member Avatar for zachattack05
0
401
Member Avatar for zachattack05

Sorry to keep asking so many questions, but you guys always seem to be so nice and helpful... I need a way to verify that a database file is in a somewhat stable state...stable as in it has all of the correct tables, and each table has all of the …

Member Avatar for zachattack05
0
135
Member Avatar for zachattack05

Would anyone have the heart to post some example code to create an empty table? My code doesn't seem to work, it says the data type "int" in invalid...here's what I have: [CODE=C#] if (File.Exists(ExecutablePath + "\\idcc_data\\_IDCC.sdf") == true) { SqlCeCommand cmd; SqlCeConnection connection = new SqlCeConnection("DataSource=" + ExecutablePath + …

Member Avatar for zachattack05
0
2K
Member Avatar for zachattack05

Hi! I'm new to the site! I've been searching for help on Google for a while and keep getting results that point to this site, so I figured I should jump on. I'm new to C#. I've been programming in VBA in MS Access for a while now and have …

Member Avatar for drifai
1
863
Member Avatar for zachattack05

As I am working on my first application the thought occured to me: 1) Are "plug-ins" a common thing for applications to support? As in..."copy this .dll (or whatever) to this folder and bam! you get more features!" 2) How do most people handle updates? Replace the entire executable or …

Member Avatar for zachattack05
0
133
Member Avatar for zachattack05

I think I may have my problem corrected, but it occured to me that this might be a bigger problem than I originally thought. I am working on an application that is going to use a .sdf database file to store data. I noticed that while I was at work …

0
48
Member Avatar for zachattack05

I was wondering if someone could give me a quick hand with this. I have a text box that a user types a directory location in. Obviously the directory path includes at least one "\" character and could contain many more. Because the slash is the escape character and I …

Member Avatar for zachattack05
0
96

The End.