473,813 Members | 3,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

7
10,090
thread by: chage | last post Jun 27 '08 by: Marc Gravell
Hi, I have been searching around to try adding reference assembly to another assembly during runtime, programatically. Is this possible in .Net? The reason for this is because i am having trouble using a library that creates an instance of a Type that i specified, and it failed the locate the Type during runtime, if i do not reference it...
4
9,945
thread by: csharpula csharp | last post Jun 27 '08 by: Marc Gravell
Hello, I was wondering if there is a way in c# to append two Dictionaries of the same type: Dictionary<string,objectdic1 and Dictionary<string,objectdic2 into one new Dictionary<string,object? (Is there any kind of AddRange such as exisits in generic list)? Thank you very much!
3
150
thread by: csharpula csharp | last post Jun 27 '08 by: Marc Gravell
Hello, I want to perform the follwing action with the use of generics: Method which will append 2 dictionaries such as input will be Dictionary <T,list<U>d1 and Dictionary <T,list<U>d2 . The method will return Dictionary <T,list<U> result. How can I implement this using the generics? Thanks a lot!
6
4,538
thread by: Steve Harclerode | last post Jun 27 '08 by: Steve Harclerode
Hi, I'm trying to get my DataGrid to show headers and footers when no rows are returned from the datasource. Below is code that shows the first TemplateField. Is there an easy way to get at least the footer to show? I want to be able to insert a new row using the footer. Thanks... <asp:GridView ID="gvMaterials" runat="server"...
2
1,207
thread by: leet-drewb | last post Jun 27 '08 by: Peter Duniho
Hi folks, I am sending a string over a socket from a C# app to a native C++ app. I embed the unicode symbol for the pound sign in the string being sent. When I read data from the socket, I find that a 0xC2 has been added into the input stream right before the pound symbol. C# fragment : TcpClient skt = null;
1
2,839
thread by: Tim Kelley | last post Jun 27 '08 by: Peter Duniho
I need to read the metadata of an image, display it on the screen and allow the user to change it and then re-write the metadata back into the image. The issue I am having is if I try to rename or delete the existing image before re-writing the image file I get an error stating that the image is in use. I am using Image.FromFile() to read the...
4
1,007
thread by: =?Utf-8?B?cm9kY2hhcg==?= | last post Jun 27 '08 by: =?Utf-8?B?cm9kY2hhcg==?=
hey all, i have a loop like the following: foreach(DataTable dt in DataTablesCollection1) { if(dt.ToString().Contains("something") { //do something } }
0
1,748
thread by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post Jun 27 '08 by: =?Utf-8?B?UGhpbCBKb2huc29u?=
Hi, We have a legacy asp application that uses a third party component to upload a file and saves it to a secure network share. The code sets the credentials for the secure network share on the third party component. I want to do something similar from C# code and save a file to the secure network share by setting the credentials to...
0
153
thread by: WATYF | last post Jun 27 '08 by: WATYF
On May 16, 2:21 pm, qglyirnyf...@mailinator.com wrote: Using the "Evaluate Assembly" tool, I can see that all assemblies on this particular share are showing up as being in the "Internet Zone". But I already knew this (see previous post linked above). WATYF
25
1,446
thread by: sillyhat | last post Jun 27 '08 by: Jon Skeet [C# MVP]
Hello, Can someone please help. I want to do some binary writing to files either using sdtout or by passing a filename and I am unsure how to do either in C# - I would like it to be as fast as possible. I have done it in awk, just to see what I mean since the code should be understandable by a C# whiz.
4
2,836
thread by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post Jun 27 '08 by: Chris Dunaway
I am creating an application for windows mobile using Visual C# windows. I am using visual studio 2008 and I have windows Microsoft Vista on my computer. I also downloaded the professional and standards SDK windows mobile. However some tools and properties are not available such as FontColor, RichTextBox, FlowLayoutPanel . The tools I needed...
1
2,615
thread by: happy.john1234 | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hi, i have got large xml file which i have to show in tree view windows form.I tried with loading all those data at once to tree view but it took a long time to render that tree view.Now i am looking to polpulate tree view selectively.Only populating those nodes that user expands it by reading xml file.Can any one plz help me with some...
1
1,481
thread by: kt | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hi, I need to adjust the positioning of some controls at run time depending on the visibility of some panels. I am hiding and showing panels at a button click and need to adjust the positioning of the other controls accordingly. I have been trying very hard....the positioning of all the controls is relative... I have also tried using nested...
6
7,277
thread by: Paul.N.Phillips | last post Jun 27 '08 by: Chris Shepherd
I am using a static dictionary to objects (like cache) but woundered if it is better to use cache. Which one would should I use?
3
1,229
thread by: satyanarayan sahoo | last post Jun 27 '08 by: Jon Skeet [C# MVP]
What’s the difference between for and for each loop? Example plz...
2
1,047
thread by: csharpula csharp | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hello, I want to add to Enum the following value : ABC.12 but I get a compilaction error. How can I include such value in c# enum? Thanks a lot!
2
2,581
thread by: satyanarayan sahoo | last post Jun 27 '08 by: Alberto Poblacion
Give an example !
2
2,183
thread by: satyanarayan sahoo | last post Jun 27 '08 by: Joachim Van den Bogaert
Can we write a method which returns multiple values?
14
1,139
thread by: Jason Huang | last post Jun 27 '08 by: Cor Ligthert[MVP]
Hi, I was talking with my colleague, the .Net 2008 coming after the .Net2005. We are thinking if the .Net will go on for a long period of time, says like ..Net 2099. Is it possible? Jason
4
2,730
thread by: =?Utf-8?B?R2lkaQ==?= | last post Jun 27 '08 by: Peter Duniho
Hi, Is it possible to have thread that will check if another thread is waiting for User input or frozen? thanks, Gidi.
5
1,282
thread by: Rain | last post Jun 27 '08 by: =?UTF-8?B?TGFzc2UgVsOlZ3PDpnRoZXIgS2FybHNlbg==?=
Is there a way for an object to know the identifier which has called it MyClass myClassObjectId = new MyClass(); how can I get the name of the identifier "myClassObjectId" which is calling the object from within the object itself. ?? public string IdName { get{ return ?????? } }
4
3,892
thread by: =?Utf-8?B?TWFyaW5h?= | last post Jun 27 '08 by: =?Utf-8?B?TWFyaW5h?=
Does any know any sample of how to do a basic DeviceIoControl with something like IOCTL_BATTERY_GETSYSTEMPOWERSTATUSEX2 in C# I have been stuck all week :( and google doesnt yield anything of use. Please help me, thanks Marina
2
5,723
thread by: Grzegorz Danowski | last post Jun 27 '08 by: Grzegorz Danowski
Hello, I have made few reports in rdlc technology. They look and print fine, but if I export any report to pdf file I have some problems with polish specific chars: a. if I open pdf in Acrobat Reader I can't find (ctrl-f) phrases that contains polish letters, b. if I copy a paragraph that contains polish chars and paste to MS Word the...
3
1,160
thread by: csharpula csharp | last post Jun 27 '08 by: Rob Lancaster
Hello, I got an object of DirectoryInfo and I would like to know how can I get the names of all child directories of this folder? Thank you! *** Sent via Developersdex http://www.developersdex.com ***
2
2,779
thread by: Andrus | last post Jun 27 '08 by: Andrus
WinForms MDI application stores user preferences (form position, sizes, query params etc) in isolated storage. I want to offer user menu selection "Restore defaults" which deletes all those items so default settings are applied. Best way for this is probably to delete all files in isolated storage. How to clear all files in current...

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.