|
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
|
|
|
|
|
what happens if you call adapter.Update(temp) ?
|
|
|
|
|
Adapter.Update calls insert, update, delete in subsequent manner. Hence when I call Adapter.Update(dataTable) it throws primary key constraint failed or unique key constraints failed exception. I tried to remove some rows from main table and then again adding. But it also not working.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
hi all,
can any body tell me hw to get the hexaDecimal value of a certain number.
Also i need to know how to get the asc code of a certain character.
Best regards
|
|
|
|
|
Hello,
quiteSmart wrote: can any body tell me hw to get the hexaDecimal value of a certain number.
public string IntToHex(System.Int64 number)
{
return String.Format("{0:X}", number);
}
quiteSmart wrote: Also i need to know how to get the asc code of a certain character.
Sorry, don't know!
All the best,
Martin
|
|
|
|
|
Also i need to know how to get the asc code of a certain character.
public byte asc(char c)
{
return (byte)c ;
}
It might throw an exception for unicode characters that are not in the ascii table.
|
|
|
|
|
|
That's not too pretty. Better use System.Text.Encoding.ASCII.GetString()
Standards are great! Everybody should have one!
|
|
|
|
|
Thanks Martin
|
|
|
|
|
hi
i want my datagridVIEW rows has periodic color
for example :
row No color
0 white
1 blue
2 white
3 blue
. .
. .
. .
what can i do?
|
|
|
|