249 Posted Topics
Re: The first thing I ever programmed was a magic 8 ball :) I guess it depends, you could scour [URL="http://sourceforge.net/"]source forge[/URL] for an open source project that needs help (though I think a lot of that is C++ not C#, and not usually .NET) or try [URL="http://code.google.com/intl/en/"]Google Code[/URL] for the … | |
I'm having a problem with using the table adapters to accomplish this and was wondering if someone might know of something I could be doing wrong. The scenario is this: Adding a new record to the underlying SQL database in this case requires that both a record exist in TableA … | |
Re: I don't really understand what you are trying to achieve. are you trying to find a percentage of a given number or are you trying to multiply a number by a percentage of another number? A percentage is based on the number 100 and is just some number divided by … | |
Re: thines has a good suggestion. If you are going to be holding many different pieces of data I would recommend delimiting the data in some fashion or otherwise structuring your file so that there is a "table of contents" so to speak so you can find where certain data is. … | |
Thanks to Antenka I have located the HTML Help Workshop to create a Help system for my software. Problem: writing HTML code is a heck of a lot more tiring than I expected. Does anyone know of a WYSIWYG HTML editor that only does the basics (fonts, tables, images etc...) … | |
Does anyone have a link to a good article or guide on creating help files that work with Windows XP, Vista and 7? I've used a program in the past to create help files, but it was a demo product and quite costly (and if I recall poorly supported). I … | |
Re: I disagree with the introduction in that article. A good splash screen is quiet, simple, free of large graphics and "crayola box colours" and only shows itself if necessary. I would say if your application takes less than 2 - 3 seconds to open the "Parent" form, there is no … | |
Re: If you want the letter variable to have an empty value you can use: [CODE]string letter = string.Empty;[/CODE] or [CODE]string letter = "";[/CODE] | |
Re: Threads are rather complicated and difficult to grasp at first but once you get the hang of it, it's a piece of cake. I would read this entire E-Book, but for what you are asking about I would definitely read the [URL="http://www.albahari.com/threading/part2.aspx"]Basic Synchronization[/URL] section. Mutix is one way of doing … | |
Re: Does the user click a button on the actual windows form or the website form before moving to the next item in the listbox? If the user clicks a button on the winform, that's simple, use a button click event to move down the listbox to the next item, if … | |
Re: [QUOTE=wissam.ashkar;1677623]Hello Guys, I am building an application using C# as a front end(VS 2008). I have a main form which contains a main menu and other controls like labels, calendar etc.. the main form I am talking about starts as full screen, my problem is when I drag/drop/edit controls in … | |
Re: Not really 100% sure I know what you are doing... But, the load function only runs once, when the form is first loaded, after that it won't run again unless you specifically call it from some other method or event. Look into timers if you are trying to capture images … | |
I'm working on a custom textbox control that can "filter" out inappropriate input. The filter property can be: None, Numerical, LowerAlpha, UpperAlpha, Alpha, AlphaNumeric, Symbol None would function like a normal textbox Numerical would be any number key (1,2,3...) LowerAlpha would be any alphabet character as long as it is … | |
Can this be done? I know you can databind to form controls, but what about object properties? For example, I have a form that has two functions, to edit a record and to create a new record, but the problem is that in order to create a new record you … | |
How do you personally organize your methods, event handlers (kinda the same), properties etc... in your classes? I've been grouping things by type using regions and then alphabetizing them within the regions, but I was just wondering what other people do if there is a standard? | |
I have an issue where two text labels are on the same horizontal line on a form. The label to the left expands to the right and down and is anchored to the bottom left of the form. The label on the right is anchored to the bottom right of … | |
Any idea how to determine if the vertical scroll bar is active in a multiline textbox? Active as in, the user can click the arrows and the text is long enough to scroll. Similiar to being enabled/disabled? I'm trying to have a mouse event so when the user moves their … | |
Doesn't appear that a radio button has a value property other than true/false so I was hoping someone could help me out with this one. I'm writing a method applied to the "CheckedChanged" event. The method is applied to all of the radio buttons, so it always triggers regardless of … | |
I've done some research and it appears that Windows 7 is about tied with Windows XP users as far as current popularity (Vista seems to be a flop). My MSDN subscription includes access to multiple builds of various operating systems for "free" for development purposes. If my project is developed, … | |
The project I have been working on and seeking advice on from this forum for over a year is approaching it's final steps. All that really remains is arranging the controls on the forms into a layout that is both functional and "pretty" (and getting a nice bottle of champagne … | |
I have a databound listbox. The data source also has a bit field associated with it, I would like for listbox items that have a bit field value of 1 (true) to show bold and the rest to remain non-bold. Any idea how this can be done or is it … | |
Not sure how to do this one... I have a combobox that is bound to a datasource and I would like to add a entry to the tail end of the combobox that says "<Add New Item>" which, when clicked opens a wizard that will allow the user to add … | |
I'm looking for suggestions on the best, and easiest way to install a Windows OS (in this case, XP, Vista and 7) on a hard drive, install my app., test it, make changes and then reinstall my app with a clean copy of the OS? Instead of sitting around going … | |
OK so I have a decent database that I have set up with all the correct tables and relationships, but now I have another issue, and that is distributing it. I don't know how to achieve what I am after. I know how to install SQL Server Express during my … | |
Re: you can store the data in a column with the data type set to [URL="http://msdn.microsoft.com/en-us/library/ms188362.aspx"]varbinary(max)[/URL] which holds a varying length binary data object up to 2 GB in size. Thines01 has a point though, depending on the server type (express versions etc...), the purpose of the server (just hosting files, … | |
If I have SQL authentication enabled, and a user (UserA) on a database has permission to delete rows on TableA, but not TableB, and there is a relationship between TableA and TableB, can UserA successfully delete a record on TableA and have the changes (based on relationships set up) cascade … | |
Re: I would imagine probably by transferring an image from the camera to the other side via sockets? If that's the way to do it, it's not a simple process...you can start by reading about sockets [URL="http://msdn.microsoft.com/en-us/library/sb27wehh.aspx"]here[/URL] though. But I'm really not 100% sure, this would be the route I would … | |
Re: Are you using synchronous or asynchronous sockets? Either way, if you have a socket and have no mechanism to loop (with a timer or something else) a read on the socket, the server and client will connect and basically sit there without listening to each other. You can talk all … | |
So I'm plugging away at my database design and get to a point where I need to work on the UX (or UI for you old[er] peeps). I have a guide from Microsoft that I refer to very often called the UX Guide. I have all of my forms setup … | |
So I'm curious, when you need to store user settings or application settings what method do you normally use? I have been using a class and just serializing it to a file. But there is also the "settings" in the application's properties folder. Does anyone ever use that? Any pros/cons … | |
When I need to serialize things to a byte array I usually write the array to a MemoryStream first then use the binary formatter to serialize it to whatever (file, another byte array whatever). The question I had was, can I just serialize a byte array instead of converting it … | |
If I have 2 or more tables and I need to have another table that is related to the data in those tables...how would I achieve that? As an example: Table A and B have totally different data and aren't directly related at all. I would like Table C to … | |
Is it possible to move the "description" column to the right of the "Allow Nulls" column in the table designer so you can see the descriptions for each table column without clicking through them one at a time? Like the attached picture? Please, someone, for the love of all that … | |
Can VS generate "junk" data in a database for testing purposes? I could swear somewhere I saw it in a menu, but I can't find it now? | |
If Server A and Client B are chatting through sockets, and Client B requests a dataset of all accounts on the server it has access to, the server provides that data set to the client (through serialization and sending it over the socket) and the client modifys the data, say … | |
I've seen many different answers to this...is it possible to have a constructor for a class that returns a value? | |
So it's early and I always have anxiety over things like this, so I was hoping someone could take a quick look and make sure this would actually work. I've got a socket program that will transmit a Data object over the wire. I just want to make sure that … | |
I know this makes no sense at all, but hear me out and maybe someone can supply me with some info on how this can be accomplished correctly. Using an invoicing type example. You have a table of clients who can receive invoices, a table of invoices with invoice numbers … | |
Re: arsalanghouri; Mitja is right. Primary keys that are integers and have the identity property cannot be reduced. One of the best database design documents I ever found was from a website called "The Access Web" (not sure if it's still around) and they had a 10 commandments of database design. … | |
Re: Probably no responses because there's missing info. Where are you storing the input? Is it just stored in memory, in a file, sql server? Is this a Winform or web app? (I'm assuming web because you mentioned session data). Also, what exactly are you trying to accomplish? | |
You guys are always so helpful, this is like my "go-to" forum for bizarre questions :P Not sure if this should be enforced by the SQL server or the Application itself. If we have a table with 2 columns of type int, ColumnA and ColumnB, is there a way to … | |
If my application was designed to generate a "schedule" or list of dates, and I wanted to store those dates in a SQL server as an array, what SQL data type would I pick? [COLOR="Red"]ntext [/COLOR]seems excessive, and I don't think [COLOR="red"]date [/COLOR]would work...any suggestions? | |
Re: Hmmm...tree views can have an image list associated with them. You might want to check that out instead, then you don't have to worry about pictureboxes. Also, another consideration. The Microsoft Office icons are copyrighted and probably trademarked. I would be careful about including the icons in your application, but … | |
I am in desperate need of some guidance here. Any suggestions or ideas would be very much appreciated! Is it possible to have a relationship based on two columns? For example: The table "Parents" has columns: ParentID (PK) The table "Children" has columns: ChildID (PK) ParentID The table "Addresses" has … | |
Still working to figure this stuff out :) My question is, is it possible to set a combination of columns with a unique constraint? For example: [CODE] ColumnA | ColumnB ----------------- Value1 | Value2 <- OK Value1 | Value1 <- OK Value2 | Value1 <- OK Value2 | Value2 <- … | |
Is it bad practice to create relationships between tables where the PK is an identity AKA auto incremented? The reason why I ask is, while identity keys won't repeat, they are set based on the order that someone enters data, so the first entry is 1, second is 2 etc... … | |
Re: Is it necessary for you to use XML? What is it you are doing or trying to do? | |
Re: Question 1: Why a console app and a winform app? I think it might be easier to have just a winform app and that's all unless the console one does something special, but I don't see why it couldn't be combined. Question 2: What's your goal in doing something like … | |
Re: I use e just because I think VS uses it by default, instead of confusing future viewers of my code, I keep the e. Chances are high that they will know what it is when reading an event triggered method. Could just be me being naive though. | |
Re: Could also be it's the middle of the day and people are working. Care to share your solution to the problem for others? |
The End.