|
This is what I came up with, but I only tested it with the "Hello World" and "This is a test" sample so far.
Please test it with different strings
string test = "Hello World";
StringBuilder b = new StringBuilder(test);
int removeCount = 0;
for (int i = 0; i < test.Length; i++)
{
if (test.IndexOf(test[i]) != -1 && i > test.IndexOf(test[i]))
{
b.Remove(i-removeCount, 1);
removeCount++;
}
}
test = b.ToString();
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Dear all,
Could you tell me please how to save an image in xml file and then read, kindly show me easy example, i searched too much but i did not find to the point solution.
Thanks
Seek knowledge from cradle to grave
|
|
|
|
|
Hi!
You could serialize it using a BinarySerializer and then convert the byte[] into a base64-encoded string that's written to the XML file.
Reading is simply the other way 'round.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello
You can save it in stream, then get array of bytes, then save array of bytes in CDATA section of xml file.
Andriy Zhornyk, regards
|
|
|
|
|
Greetings:
How can i determine the system requirements of an application i developed?, especially in the RAM departement.
"Failure is the best reason to start all over again with more knowledge"
-Henry Ford
|
|
|
|
|
Well, your minimum requirements are those of the .NET framework. Anything beyond that you'll need to test manually; no magic formula here. You can use Virtual PC to test against different software installs. IIRC, VPC allows you to configure how much RAM the virtual PC instance sees, thus allowing you to test against different memory amounts without physically removing memory from your PC.
|
|
|
|
|
Greetings:
Thanks, Judah Himango, i kinda thought that, magic formulas are like a dream to programmers, i`ll try testing it in a virtual PC.
"Failure is the best reason to start all over again with more knowledge"
-Henry Ford
|
|
|
|
|
Hello,
I have a problem with the toolbar in visual studio 2005, when I compile and run my application in the 'Debug' Configuration everything is fine, but when i switch the configuration to 'Release' the images in my toolbar simply dissapear (I only the text next to the images, but no images).
Anyone have an Idea what might be wrong with that?
|
|
|
|
|
Hi grep2
I think it could be from image url that you set. make sure the address is correct. be careful that if you use of any related address with your project address it is different in release and debug mode.
let me know if it is useful
|
|
|
|
|
Hello,
I use the images from a ImageList, there also other controls which use images from the same ImageList and they are displayed properly. So I guess it has nothing to do with the address.
But thank you for taking your time to answer my question, although the problem is still not solved.
- Pawel
|
|
|
|
|
Hey all, I have a few realy importent questions that are pausing my program.
I REALY need some help, pleaseeeeee help!
1. I need to do a program, that when I tell it to, it will restart the program and update from the click-once auto-update.
How is it possible from inner-C# programming? (from inside the program - events)
2. I have an IP of a counter-strike server.
I need to check if the server exists (responding), and if it does, to check if it has password (and if possible to check if the password is correct by what I give it), and the num of ppl playing atm.
These three are for the ones that know how to use a Thresher's SharkBite.IRC library:
3. How can I easly see if a user is in a channel, from a UserInfo sent in a PrivateMessage?
4. How can I check a state (@p, Vo+ced or regular) of a user, from a UserInfo sent in a PublicMessage?
5. How can I change my usermode to +x if I don't have a usermode like that?
6. How can I go to the last page I visited? Is this good?:
Response.Redirect(Page.PreviousPage.Request.RawUrl);
If you can provide a snifft of a part of code that would help even more!
Thanks ALOT!
NaNg.
-- modified at 11:37 Saturday 23rd September, 2006
|
|
|
|
|
If you don't get the replies that you want to your question, think over what you might do differently rather than just copying it and pasting it in a new post.
---
b { font-weight: normal; }
|
|
|
|
|
I added another question o_O
|
|
|
|
|
Hi
i am trying to make the alpha in the image is no longer transparent
How can i do this
Parshant
|
|
|
|
|
Why don't you continue in the thread that you already started instead of creating a new one about the same thing?
---
b { font-weight: normal; }
|
|
|
|
|
u misinterparet my question
my question is how can i make a alpha layer of a image invisible
|
|
|
|
|
What do you mean? How could I possibly misinterpret your question, when I haven't even interpreted it?
---
b { font-weight: normal; }
|
|
|
|
|
sorry plz answer my question
|
|
|
|
|
http://www.c-sharpcorner.com/Code/2004/April/Transformations05.asp
M[4][3]=1 all the rest 0 using those notations
|
|
|
|
|
To open a file on Listbox Click event,
I used System.Diagnostics.Process.Start(filename)for Windows Application.
It worked fine.
But for Windows Mobile Application I dont have that option.
Please help me.
|
|
|
|
|
|
Hi
I am trying to set SocketOption in Windows Mobile Application, but its throwing Exception.
Please let me know how to set Receive Time out for socket in Windows Mobile VS2005 application.
s=new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
s.Bind(new IPEndPoint(IPAddr, port));
s.Listen(1);
s.SetSocketOption(SocketOptionLevel.Socket,SocketO ptionName.ReceiveTimeout,40000);
Socket actualReader = s.Accept();
|
|
|
|
|
|
which is a better way to represent business entities in my application:xml or object entities? the objects are currently consumed by classes but that will soon become web services. Considerations include performance and which is a better coding practice?
Tilewa
|
|
|
|
|
Hi ,
well guys , i think i have a problem right here
i was programming in vb.net , but i realized that C# is two much better cuz i was enjoying programming on Java so the C# & Java are approximatley the same . but today i was trying to right this line of code :
in vb.net we right :
DataSet.Tables.Rows(0).Items(0)
in C# i tried :
DataSet.Tables.Rows(0).Items(0); but it doesn't work can you tell me why ?
& as a beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net book i'll be gratefull
Thank you very much for your help
try to be good if you can't be the best
|
|
|
|