|
I was a little confused as I later saw the replies to that special post!
quiteSmart wrote: i need to take a vacation from work
good idea!
|
|
|
|
|
yea i hope i can do that and leave for a vacation to another country with my girlfriend but they wont give this vacation.
( ((
|
|
|
|
|
How about this?
string str = "abcdefghijklmnopqrstuvwxyz";
char[] arr = str.ToCharArray();
Array.Sort<char>(arr);
Array.Reverse(arr);
StringBuilder sb = new StringBuilder();
foreach (char ch in arr)
{
sb.Append(ch);
}
Console.WriteLine(sb.ToString());
Console.ReadLine();
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
You can just do string thing = new string(arr); instead of your loop.
|
|
|
|
|
Hi All,
Iam using classes in the name space System.Data.OracleClient to call the stored procedure on the Oralce database. When iam trying to add a new parameter to OracleCommandObject's Parameter collection iam getting the following error.
The OracleParameter with ParameterName '' is already contained by another OracleParameterCollection.
The simillar problem is posted in the other forums like
http://www.dotnet247.com/247reference/msgs/46/232504.aspx
but i have failed to find any solution there.
Thanks in advance.
Regards
Pani
|
|
|
|
|
It's hard to say what your problem is without seeing your code.
|
|
|
|
|
Thank you. I guess you can make out whats the problem is from the link given by me. Anyhow thanks for your response and iam able to solve my probling by cloning the parameter before adding it to the command collection.
Regards
Pani
|
|
|
|
|
Hi all,
How I can know that when my form is obscured by another window and name of that wimdow during run time?
Thanks,
Muharrem
|
|
|
|
|
This is a repost!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
Yes and sorry. But I need an answer, please
|
|
|
|
|
Hello,
Apart from this beeing a "Repost", this question should come with much more infos about your application.
What have you tried so far?
Are there only forms of one application involved?
if yes:
Does your form have the instance information of the other forms?
.
.
.
All the best,
Martin
|
|
|
|
|
I don't think you can. I don't remember seeing anything in the Win32 API that will tell you what the current window z-order is.
Why on earth would you want to know this?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How Do I extend the datetime picker control to show the dates according to Nepali Calendar
Suman
|
|
|
|
|
i don't think there is a way to do that.
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Hi,
I have a problem with file MHT reading.
I have stored the internet site with IE7 as "Webpage, complete (*.htm, *.html)". It store this site at my computer with all images in some external files.
After that I have stored this html and image collection as "Web Archive (*.mht)". The result is complete MHT file with all images inside. Then I have deleted old *.html and *.gif files and work with MHT file only. I can open this MHT file with IE7 without problem - all images are OK.
Now I try to read this MHT file with class System.Windows.Forms.WebBrowser.
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
webBrowser1.Url = new Uri("d:\my_mht_file.mht");
HtmlDocument html_doc = webBrowser1.Document;
Variable html_doc has collection Images, but this collection is empty. I can't receive any images from MHT file.
This problem is linked to creating the MHT file from files (html and gif) have been stored on local computer. This MHT file includes all images with local links and bitmaps.
The question is how can I extract such images from MHT file has been created from local copy of html and gif files?
Thanks
|
|
|
|
|
Hi Programmers,
I have created a text chat application in C#.
Now i want to add the features of Voice Chat and Webcam...
Any Code, Links in this regard will be appreciated...
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
hi,
once i have passed through a post that give a tool to change from vb code to c# code does any body knows any idea about that.
Also, is there a way to add vb code to a c# application?
If yes, please explain how.
Thanks
|
|
|
|
|
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx
go to this link you find the answer
|
|
|
|
|
No man this is not a good tool. It only knows how to change the sub to a punction and dim to object and the rest of this stuff
for example i gave it the following:
Math.Round((Rnd() * 100) + 100)
and it retruned this:
Math.Round((Rnd() * 100) + 100);
knowing that there is no Rnd() function in C# it is found in VBMath so i can not use it in C#,.
Any other suggestions concerning the converter tool or even teh code statement i gave?
Thanks best regards
|
|
|
|
|
For random, you can use this:
Random random = new Random();
random.Next();
|
|
|
|
|
quiteSmart wrote: Also, is there a way to add vb code to a c# application?
If yes, please explain how.
Create a VB assembly and add a reference to it into your C# project.
|
|
|
|
|
Thanks for your answer but can you explain more please
|
|
|
|
|
There isn't much more to explain. Just create your VB class, then add a reference to it in your C# project.
|
|
|
|
|
It might have been us (Instant C#). Then again, it might have been any number of the on-line or commercial tools out there (try google).
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: VB to Python converter
|
|
|
|
|
Hello All,
I am developing an application with DataGridView. I have provided paging for it.
What I am doing is, get the records in one main table, let the user set the page size and copy those many records to temp table. User can insert, update and delete records from using DataGridView.
Now my concern is, user is playing with temp table, whatever he does is modified into temp table. I want to reflect added, changed or deleted data into original main table. I have tried Merge() but it adds all modified data into main table and when I say adapter.Update(maintable) it gives primary key violation. Any idea or workaround
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|