Answer Questions
Mohican Opening Database Record on a Separate Form
I have two forms, one with a data grid and the other with individual controls (detail form), both bound to a database. What do I need to do to be able to click on a particular row (record) in the data grid and have it open the detail form with that record displayed I can get it to open the form, but it just opens to the first record. I need it to open the record I clicked on the data grid form. Thanks. 99.99% ...Show All
noname00 Sharing a contextmenu
I have two toolstripmenuitems that share a contextmenu as their DropDown property. Let's say the contextmenu contains a list with car models and the toolstipmenuitems are like this: viewCarToolStripMenuItem.DropDown = contextMenuStrip1; buyCarToolstripMenuItem.DropDown = contextMenuStrip1; Now the same menu is shown, no matter what 'parent' menuitem I pick. The problem: When I click on a car model, I want to show it in both cases (no ...Show All
StevenW ? Where are the Code Analysis Settings ?
(VS2005 RTM Question) I'm following these instructions about how to modify managed code analysis settings from the online help: To modify managed code analysis settings (1) Select the project in Solution Explorer. (2) On the Project menu, click Properties. (3) Click the Code Analysis tab. (4) Select Enable Code Analysis. (5) Click Settings. The Code Analysis Settings dialog box is displayed. (6) Under Ge ...Show All
BRiley How to change the color of a substring?
for example: string newStr = "The color is red"; label1.Text = newStr; output: The color is red yes that helps, thanks! Hi icemart525 you want this to work in Web Application or Desktop Application Rags Here is an example in CLR 2.0- The key is to set the DrawMode of the TreeView to OwnerDraw.Two modes of OwnerDraw exist, OwnerDrawText and OwnerDrawAll. You need to set the DrawMode of ...Show All
I-DotNET Getting Started .... rendundant build errors.
Hi. First time VS2005 C# user making the switch from java. Every C# example program, Hello World, sample project, etc, I try to build gets these same errors: Error 1 ) expected C:\Documents and Settings\tantilla\My Documents\Visual Studio 2005\Projects\WindowsApplication2\WindowsApplication2\Properties\AssemblyInfo.cs 11 30 WindowsApplication2 Error 2 Expected class, delegate, enum, interface, or struct C:\Documents and Set ...Show All
Florin Raicu Code Snippets and Intellisense
When I type "for", the "for" code snippet is selected in the intellisense list. How can I insert a code snippet directly from this list I now that I can select code snippets by pressing CTRL-K,CTRL-X , but is there the possibility to select the snippet from the intellisense list Thanks. Yes, that works. Very practical. Thanks. Yes, you can insert the snippet directly from the ...Show All
mmahmood how to use cursor in c#
hello i would like information for how using "cursor "and there methods I am assuming you mean the System.Windows.Forms.Cursor class http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformscursorclasstopic.asp That should tell you everything you need to know. What do u mean with Cursor .. plz give me an explanation and where do u use it ( the ...Show All
yj2000 typedef in C#: Visible in separate projects
I saw that you could get around the absens of the C++ typedef feature by using: namespace NameSpaceCS { using Handle = System. Int64 ; or using Handle = System. Int64 ; namespace NameSpace CS { But this is only visible in one file. How do you make it visible in other projects. I have added the reference and the using NameSpace CS ; in my other project but it still seems to ...Show All
marsiglia non - public classes
hi, I am making a dll which contains several 'public classes', just about every class refers to another classes info at some point thats why ive kept them all 'public' My problem though is when someone uses the dll, they should only be able to see one class in the dropdown (this then branches out into the other classes eg listbox.hello.ok etc) The thing is though they can see all the classes because they're all 'public classes', an ...Show All
Rohit Gupta Could I "inlcude" a C# source file?
For example, there are three C# project in my solution, and I want to synchronize their version. What I have to do now is to manually edit "AssemblyInfo.cs" file in every project. If there were a way to "include" a C# file, put information common to all projects in that file, it would be much easier to maintain it. Thanks! I think what he want is to have a consistent and uniform metadata for all the asseblies in the solution, and link fil ...Show All
Holiday My NameSpace available in c#?
Does the "My" namespace of Visual Basic.NET 2.0 also available in C# Thanks No, not directly... this of course does not mean you could not utilize some of what the my namespace has to offer http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_csref/html/e7152414-0ea5-4c8e-bf02-c8d5bbe45ff4.asp Have a look at the following C# wrapper called 'That': http://blogs.msdn.com/danielfe/archive/2005/06/14/429092.aspx ...Show All
g0l3m SIMPLE instructions to REMOVE Windows Desktop Search
I have written to MS without receiving a simple, non-MIS/IT description of how to remove this horribly intrusive add-on, that installed itself DESPITE clicking on DO NOT INSTALL. So (and without getting into the politics of who is behind this), all I want is the easy way to remove this program. I have gone into Add/Remove Programs and YES, clicked on Show Updates, but there is NOTHING clearly identified as Windows Desktop Search. ALSO, ...Show All
Jose Escrich Retrieve info from SQL db
How do i retrieve info from my db I want to create method that validates password which is stored in db. public bool IsValidPassword() { if ( Password == " ") // I need to chech DB for password &n ...Show All
Kramnation Hi everybody ! Help me about Charset of Dataset.
I Wirte application with database and I have trouble like this. In my database store data in charset Windows CP 1258, When I get data show in Grid it show Not correct. I was used EmcodingUnicode for convert from CP 1258 to unicode but it display not correct too. Can You Give me the Way to change Charset and show correct in form I'm look forward hearignn from everyone. Thanks for your Help. The EncodingUnicode class is a cus ...Show All
Carlos Mendonca Newbie needs help with Rounding Time
Hey guys, I'm fairly new to C# and I am stuck. Here's what I need to do: I need the current Military time (ex 906 equals 9:06) rounded to the nearest ten. So I need ten minute increments. Instead of something like 906 I need 910, and instead of 903 I need 900. I've tried the using the System.Math.Round( ) function but it only takes decimals and it doesn't round whole numbers. Any help would be greatly appreciated!! Thanks, Chris ...Show All
