473,799 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

3
4,775
thread by: Moshe Foobar | last post Nov 13 '05 by: Moshe Foobar
Hi, When i save a url into a string : string myURL = @"http://www.allmusic.com/cg/amg.dll?p=amg&sql=2surfer|rosa"; but when i d/l this page : WebClient myClient = new WebClient(); StreamReader sr = new StreamReader(myClient.OpenRead_searchAlbum),System.Text.Encoding.Unicode); string result = sr.ReadToEnd();
0
2,350
thread by: Andrew Chen | last post Nov 13 '05 by: Andrew Chen
Has anyone had any experience of implementing WMI classes using C#? I've just come across the variety of Window packages that help to develop an admin user interface. But most of the tools provided (WMI/MMC snap-ins) have all recommend using C++/COM and none is found in C#/.NET. My goal is to develop an user interface running on SNMP...
4
34,914
thread by: ron | last post Nov 13 '05 by: William Stacey
Hi, I have a 16 bit hex value contained in a string. example="00A4" I need to convert the hex value to binary. I then need to return the whole binary value as a string. example="0000000010100100" Then need to look at each bit value to see if "1" or "0" and return a bool indicating the resultant.
1
4,448
thread by: Winston | last post Nov 13 '05 by: William Stacey
when i use tabcontrol,i find that there is no property for the tabpage to visible or unvisible.i want make tabpage1 to visible but tabpage2 to unvisible,but beacause there some progress need controls on tabpage2,so i can remove tabpage2,i just want to make it unvisible.how can i make that? thanks
10
9,706
thread by: Richard Arthur | last post Nov 13 '05 by: Bill Priess
I want an application developed in C# to be used on any computer _without_ the client computer needing the .NET framework. I have build a sample application that I want to be able to quickly show to people. I will plug in a ThumbDrive with my app on it, and then execute my application. I don't want to have to force people to install the...
0
1,122
thread by: Bruce Wolfe | last post Nov 13 '05 by: Bruce Wolfe
We are building an C# app that needs to be a COM server so all the assemblies need strong naming. The app builds fine but I get this exception when it runs: "Additional information: The located assembly's manifest definition with name 'TempEditor' does not match the assembly reference." It seems to be the only assembly that gets the...
1
2,340
thread by: felice pollano | last post Nov 13 '05 by: Wiktor Zychla
Hi all, I'm generating run time an assembly with the code below: ICodeCompiler compiler = codeProvider.CreateCompiler(); CompilerParameters parameters = new CompilerParameters(); parameters.GenerateExecutable = false; parameters.MainClass = "MainClass";
9
7,524
thread by: Troy Hilbert | last post Nov 13 '05 by: Jon Skeet
I've created a class derived from NativeWindow. The public methods are visible to consumers of my class and I don't wish them to be. How does one hide those members? Best --- Outgoing mail is certified Virus Free.
1
3,343
thread by: Shukri Adams | last post Nov 13 '05 by: Jon Skeet
I'm getting a weird error with IndexOf. It only occurs if the substring length is 1. "aaa".IndexOf("a") for example should return 0 , ie, it should find the first "a" in "aaa". Instead, it return 2, the last "a". This error does not occur in "aaaa".IndexOf("aa")
2
24,561
thread by: Wayde | last post Nov 13 '05 by: wayde
Please help me if you know the answer to this. I want to create a dataAdapter, that fills a dataSet. However, I have a stored procedure that I want to use, that takes one int as input. I have been trying this for a few hours now, and have come no closer.
0
1,356
thread by: Derek LaZard | last post Nov 13 '05 by: Derek LaZard
The ClipBoard Ring in the ToolBox is really a nice feature. Renaming, copying/moving within clipboard, and categorizing is a nice and frequently used feature... :) Derek LaZard
3
2,017
thread by: mike.miller | last post Nov 13 '05 by: Mike M
You could create a static class for the connection with static properties for the connection object itself and all of the associated properties. Just be aware that only one object can use a connection at one time. As far as the namespace, it depends on whether you will want to reuse this class for other apps. The normal naming convention...
0
1,587
thread by: Tim Mulholland | last post Nov 13 '05 by: Tim Mulholland
I have written some code that causes mouseover effects on a picture box. The code works fine most of the time and creates some really nice effects. HOWEVER, If i try, i can get the effects to not disappear (as if the MouseLeave event isn't firing) or i can get the effects to not appear in the first place (as if the MouseEnter/MouseMove...
0
2,040
thread by: Ayca Aksu | last post Nov 13 '05 by: Ayca Aksu
Hi, I want to change the ''Path" variable during installation of a program. I use Environment.GetEnvironmentVariable("Path"); to get the value of the environment variable. But I dont know how to set it. I have to use EnvironmentPermissionAccess.Write for writing but they dont provide a method for writing. Please help, it's urgent.
0
3,655
thread by: Tim Mulholland | last post Nov 13 '05 by: Tim Mulholland
I'm writing an app in C# that requires labels to scale as the size of the window grows/shrinks. Getting the actual label itself to scale is very easy using the anchor property. But i need to get the text inside the label to change fontsize based on the size of the label. I know it is possible (with the autosize property) to have the label...
0
2,377
thread by: David Elliott | last post Nov 13 '05 by: David Elliott
I have a Collection that inherits from CollectionBase and Implements IBindingList which I have bound to a DataGrid. So far everything works fine. However, I am missing one piece to the IBindingList that I haven't figured out yet, how to determine which DataGrid column header I clicked on so I can do a custom sort. Right now the sort is...
0
1,743
thread by: Baseman | last post Nov 13 '05 by: Baseman
I am trying to find out how to cancel all TreeView events if an exception occurs during any one of the following... MouseDown BeforeSelect AfterSelect DragDrop DragEnter DragOver GiveFeedback
1
2,136
thread by: Mike M | last post Nov 13 '05 by: Grant Killian
No, there isn't. You would think that there was since it's integrated with XP, but I imagine WinZip wouldn't like it too much (they wrote the integration with XP). I ended up using a product from Xceed. It works pretty well, but it's not free either. >-----Original Message----- >does anyone know how to unzip a zip file in c#? Is there...
3
12,279
thread by: Oliver | last post Nov 13 '05 by: Gheorghe Marius
Hello! I am really stuck... I have searched the whole internet to find a dll or a API which I can use in .NET C# to uncompress all the major archiv files but I really didnt find anything whith suites my needs. Do you know where to find such an api or dll? All it needs to do is ->uncompressing<- the major archiv files as well as reading...
0
1,531
thread by: Buddy | last post Nov 13 '05 by: Buddy
Hello, Can someone point me to some example code that shows how to paint the text in a button control. I basically want to reposition the text so it does not wrap.
4
10,194
thread by: PalB | last post Nov 13 '05 by: Jon Skeet
How to stop running multiple instances of my App in C#? Thanx
1
1,666
thread by: Ralph Mason | last post Nov 13 '05 by: Jon Skeet
Pretty simple question here. If I do a format and I want to incluide a { or a } how do I go about it. It seems you can't eacape it with a backslash. Sofar all I have done is string.Format("{0}","{"); Is there a better way? Thanks Ralph
0
1,082
thread by: Jesper Odgaard Nielsen | last post Nov 13 '05 by: Jesper Odgaard Nielsen
Please first read below ---- Its correct that I'm debugging and using VS.NET 2002 with .net ver 1.0 - If I run a release version in 2002 or run it under VS.NET 2003 with .net ver 1.1 there is no problem. Is it VS.NET or the version of .Net that is the problem. Are there any service packs to solve the problem for VS.NET 2002.?
2
39,284
thread by: Mike P | last post Nov 13 '05 by: Mike P
I want to find a particular character in a string, and then find the length of the string after this point in the string, so that I can do a rightpad on it if it is of a certain length (basically I want to pad a monetary value if it is for example 12.5, so that it becomes 12.50). I can think of a long winded way to do it by using a foreach...
0
1,426
thread by: Mystery Man | last post Nov 13 '05 by: Mystery Man
In C# code, I would like to bind a column in a typed data set row to an edit box (or other control) without having to use a string literal for the column name. For example, the following works: TypedDataSet.TableRow row; editBox.DataBindings.Add("EditValue", row, "col_name"); However, the above is not type safe and I cannot use...

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.