473,800 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

3
347
thread by: asharda | last post Jun 27 '08 by: asharda
Hi, I am trying to create a context menu in my application. The context menu takes menu otems from an XML file. In XAML the code is <Grid.ContextMenu> <ContextMenu Name="cm" StaysOpen="true" Width="Auto" Height="Auto" ItemsSource="{Binding Mode=OneWay, Source={StaticResource ListItemsDS}, XPath=/ListboxItems/ListboxItem/ ScreenName}"...
4
5,140
thread by: =?Utf-8?B?YW1pcg==?= | last post Jun 27 '08 by: Cowboy \(Gregory A. Beamer\)
do i have to remove the pair and then reinsert it or can i just update the value of the dictionary
3
3,373
thread by: Ned White | last post Jun 27 '08 by: George Ter-Saakov
Hi All, I would like to create a httphandler to set text watermark on image files before it gets displayed to the user. But this handler must listen specific folder or virtual directory(on same IIS) not all the image files in the web application, for example it should work for only "/Images/Products" folder and all its subfolders. Or...
0
965
thread by: =?Utf-8?B?VmFuZXNzYQ==?= | last post Jun 27 '08 by: =?Utf-8?B?VmFuZXNzYQ==?=
Hi all! I am having the following error on dataGridView_CellValidating() event: "Operation did not succeed because the program cannot commit or quit a cell value change". This exception happens when I set "e.Cancel = true;". If I did not cancel the validation, there is no error, and it updates my list correctly.
6
2,419
thread by: DotNetNewbie | last post Jun 27 '08 by: qglyirnyfgfo
Hi, I need a datatype (or enum?) that can hold the possible values: true/ false/null I will use it in ADO.NET code like: sqlCmd.Parameters.Add("@isApproved", SqlDbType.Bit, 1).Value = ?????; This way I can pass values of true,false or null to my stored
0
1,380
thread by: jc | last post Jun 27 '08 by: jc
I'm attempting this code: using System; using System.Collections.Generic; using System.Text; using System.DirectoryServices; namespace cLDAP { public class Program
3
1,687
thread by: Microsoft | last post Jun 27 '08 by: Steven Cheng [MSFT]
Hi I have a c# program that continually runs 24/7 and performs a variety of tasks based on a timer. There is one routine that hangs every Saturday morning without fail. If I restart the program throughout the week is still hangs. I can restart it immediatly after the hang and it runs fine until next Saturday. There is nothing different...
3
13,672
thread by: Jeff | last post Jun 27 '08 by: PRATAP singh
I have a solution with two projects. Project A is the startup project, while Project B serves as the project with the data logic. At run time, the first thing I need to do is write to Project B's app.config. I've referenced System.configuration.dll within Project B, and from one of the classes inside Project B's namespace, I'm trying to...
3
2,194
thread by: =?Utf-8?B?YW1pcg==?= | last post Jun 27 '08 by: =?Utf-8?B?YW1pcg==?=
Hi, I have a Generic Object that has a private List field item. I populate the List in a different function I use a FOREACH LOOP with a FindAll function to get all items that have a certain match for data in the list and do something to it. The problem is that it repeats for all data items in the list and not
1
1,494
thread by: Sylfelin | last post Jun 27 '08 by: Jon Skeet [C# MVP]
Hello, I start a very long process in thread. When function is ending (very long process is finish), i leave thne function and thread. In this case, that becomes the thread ? It is automatically destroyed and memory released in the next garbage collector ?
0
1,999
thread by: Robert | last post Jun 27 '08 by: Robert
Hi! I want to fill the clipboard programmatically in oder to manual copy the data to word. The data consists of cells of a grid which contains text or images. Using the standard copy/paste of the dataGridView only the text-cells are copied and pasted in word, the image-cells are empty. How can I build an IDataObject that can contain text...
3
7,781
thread by: Dansk | last post Jun 27 '08 by: Dansk
Hi all, Can I assume that when I loop throw a Collection, List, IList, ICollection, ... by using foreach, I first get the element of index 0, then index 2, and so on until the last one ? Thanks for your answers, Dansk.
2
3,208
thread by: Nishant Mehta | last post Jun 27 '08 by: Joachim Van den Bogaert
Hi all, I am serialiizing a c# object to an XML file to save some application settings. The idea is to ship this xml file along with the application and deserialize after the application is installalled to use it as a default settings file. Works fine on machines having the same culture (en-US) settings. But goes wrong when the object is...
1
1,145
thread by: Cdude | last post Jun 27 '08 by: Marc Gravell
How do i make it so that each time i select a different row in my datagradview i want the data in my other to change accordingly.For example, i will have invoices in the one grid and purchased items in the other and when i select a invoice i want to bring up all the item linked to the invoice
3
3,575
thread by: Linda Liu[MSFT] | last post Jun 27 '08 by: moondaddy
Hi Moondaddy, This is a quick note to let you know that I'm performing research on this issue and will get back to you ASAP. I appreciate your patience! Sincerely, Linda Liu Microsoft Online Community Support
0
911
thread by: Hiroaki SHIBUKI | last post Jun 27 '08 by: Hiroaki SHIBUKI
Hi, I began to feed Visual Studio & .NET Framework Product Feedback RSS: http://hidori.jp/rss/msconnect/GetRSS.aspx?forum=visualstudio Enjoy! --
0
857
thread by: erbilkonuk | last post Jun 27 '08 by: erbilkonuk
Hi everyone, I have been developing a project that is composed of one windows service and one ASP.NET web site. The windows service and ASP.NET web site reside on the same server. I want to send start/stop service commands and custom commands to the Windows service from ASP.NET Web site. What I have done is : * I read in a site that an...
0
780
thread by: RajkiranPro | last post Jun 27 '08 by: RajkiranPro
Is There A Way To Change The Default Properties Of the Controls For Example If we place a button on on the form its default name is button1 and if we place the next button its button2 and so on.. Instead i want it to be btn1, btn2, btn3 by default... I know to create it by using a component class
2
1,940
thread by: pkenderdine | last post Jun 27 '08 by: pkenderdine
Can someone please advise the best approach for reading in many 5000+ xml files from disk into a data set. Here is the code so far. On my computer (may not be best spec) is takes about 3 minutes to read and load the dataset. It doesn't seem to be the reading of the files as so much as the loading of the data into the dataset. Any help would be...
2
2,360
thread by: mrshrinkray | last post Jun 27 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
I feel a bit ashamed asking this after 6 years of C#, but is there a format string for significant figures before the decimal place? e.g. 2,354,856: 1 sf = 2,000,000 2 sf = 2,400,000 3 sf = 2,350,000 {0:G} or g gives me scientific notation, but I'm after the above.
1
1,071
thread by: S Chapman | last post Jun 27 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
What is the quickest way to read Microsoft Access Tables? Right now I am using OleDBCommand in C# to read Access but I was wondering if there is a quicker way of reading the contents of Access Tables? Thank you. PS: quicker as in better performance.
3
1,272
thread by: stork | last post Jun 27 '08 by: .\\\\axxx
If I see a piece of code like: someobject.stringProperty = @mycontrol.Text; What does the @ do in that case? Is that a clone operator?
8
5,427
thread by: moondaddy | last post Jun 27 '08 by: Linda Liu[MSFT]
I have a .net 3.0 wpf app and using c# I need to do 2 things: 1) Get the last point in the path, or get the last linesegment in the path where I could then get the last point. 2) Remove the last linesegment in the path How can I do this? any comments would be great. Thanks!
4
3,906
thread by: Linda Liu[MSFT] | last post Jun 27 '08 by: Linda Liu[MSFT]
Hi Moondaddy, I downloaded your sample project and run it and did see the problem on my side. There're three problems in the source code of your project. 1. You should move the following lines of code from the GetGeometry method within the CustomPolyLine class: _points.Add(new Point(10, 10));
6
1,684
thread by: moondaddy | last post Jun 27 '08 by: Linda Liu[MSFT]
In a wpf app using c#, is it possible to somehow attach a listener or hook into the IsMouseOver property so when ever it's value changes, a method could be notified? -- moondaddy@newsgroup.nospam

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.