|
Thanks Giorgi,
I will start a separate discussion for this issue in the future.
regards,
George
|
|
|
|
|
I need a code to VScoll richtextbox line-by-line in a windows application using 2 buttons - one for UP and another DOWN. Can anyone help me?
Thanks and Regards,
Satya
|
|
|
|
|
hi..
I have drawn a Sine wave on a bitmap using GDI+, now i need to give an option to Print the waveform..
First it should display the print preview then it as to print the Waveform.
|
|
|
|
|
It astounds me how often people ask questions here that require more code than anyone will write for you in a forum reply, but don't bother to google ( which usually brings you back to an article on this same site )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi Christian Graus.
I searched in the net, i got some solution but it is not using the bitmap to draw, but i have draw a curve on bitmap to load it to picturebox control.
so i need to know how to use bitmap for Print Preview.
please reply
|
|
|
|
|
button click()
{
capturescreen();
printpreviewdialog pd=new printpreviewdialog();
pd.showdialog();
printdocument1.print();
}
bitmap memimage;
graphics g=this.creategraphics();
size s=this.size;
memimage=new bitmap(s.width,s.height,g);
g.graphics.fromimage(memimage);
g.copyfromscreen(this.location.x,this.location.y,s,0,0,s);
}
void printdocument1_printpage()
{
e.graphics.drawimage(memimage,0,0);
}
|
|
|
|
|
|
Hi
Can you get something like this
<<%Page.a %>>
Thanks!
Develop2Program & Program2Develop
|
|
|
|
|
It's almost as if this is an ASP.NET question, but this is not the ASP.NET forum ???
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I need to develop a plug-in application, where when a link in the website is clicked, the plug-in is called and ask the user to install.
Regards,
YPKI
|
|
|
|
|
Good luck with that then. Or, did you have a question ? I am not sure that plug in is what you mean. You want to connect to a URL and have it install something ? I think clickonce is what you want. Or, you can just have the link download an exe which they run to install something.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Christian Graus,
Of course i asked a question,
i have created a network application in c# windows application. The entry to that application will be from a website.
For eg:- elearning application.
First the user click the link in the website to enter into the classroom. When the user click, a classroom application will run, which is developed in windows application, lot of functions are done between number of users in the web using this application,,eg: drawing, text chat..etc
My doubt is how to integrate or call the windows application from a website. How can i install the windows application in the client system with the clients permission.
Hopes you understood my question.
Regards,
YPKI
|
|
|
|
|
ypki wrote: Of course i asked a question,
Those are identified by a question-mark. You specified what your assignment was, you didn't post a question.
ypki wrote: How can i install the windows application in the client system with the clients permission.
Clickonce, as has been stated before. This will install the application if it's not there. You can't "embed" the application in the webpage, leaving an install/invoke-mechanism. If you're using Visual Studio, then check out the "Publish" menu-item, that will generate the ClickOnce-package for you.
You might want to write a pluggable protocol-handler:
http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx
|
|
|
|
|
sounds like you want ClickOnce[^] (which may or may not drive you insane!)
|
|
|
|
|
hello all
have anyone come across with using the Trace 32 API for C#.NET
thanks
|
|
|
|
|
I know this thread is ancient, but I just found the answer. The installation DVD copies a demo C# / VB.net solution to your C:\T32 directory as C:\T32\demo\api\dotnet\dotnet-files.zip\dotnet
Seems to be working for me so far!
Mark
|
|
|
|
|
Hi all,
I want to save pair of values, a key and a related value of it. I use HashTable to store them as follows.
<br />
private System.Collections.Hashtable hshTable =<br />
new System.Collections.Hashtable();<br />
<br />
hshTable.Add("One", 1);<br />
hshTable.Add("Two", 2);<br />
hshTable.Add("Three", 3);<br />
hshTable.Add("One", 6);<br />
Check that last line, I cannot do that. Actually what I want to do is, on existing entry value should be updated.
How can I solve this problem.
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
hshTable["One"] = 6
If there is no item with key "One" new item will be added. If there is, old value will be overwritten.
|
|
|
|
|
Hi,
you can also call Hashtable.Remove(key) before calling Hashtable.Add(key,val) ; there is no need to test for existence first.
The same principle applies to the generic Dictionary<T> class.
BTW:And it is similar to removing-then-adding a delegate to an event.
|
|
|
|
|
Thanks for replays.
Actually I got data pair like One 2 and so on. I want to store each of them. If I found a duplicate one value(number) should be updated. Then later I want to take all of them to make a string.
Say my data like this.
One 3
Two 5
One 7
Then the string should be,
One 7 Two 5
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi,
you can add/replace key-value pairs as shown before.
for a Dictionary<(TKey, TValue> you can enumerate all keys
with foreach(TKey key in Dictionary.Keys) {...}
and similar stuff goes for old Hashtables.
WARNING: dictionaries, hashtables don't preserve chronology, so there is no guarantee that "One 2" will come first in the enumeration. If you insist on having that, you will need a different approach,
most likely a combination of a List and a Dictionary (a List preserves order unless you instruct it to drop the order, e.g. by sorting).
|
|
|
|
|
Use a generic Dictionary(TKey,TValue) . It has a ContainsKey method which will return TRUE if the key supplied exists. If it exist, just update the value instead of adding new one.
|
|
|
|
|
hello
How can u think of storing the different value with the same "Key"
As u mentioned "One"====> the key ... how it can be repeated under the same instance
see link
http://www.c-sharpcorner.com/UploadFile/mahesh/Hashtable11082005171748PM/Hashtable.aspx?ArticleID=6880f0d4-acc6-402c-b632-d2e353e98e62
|
|
|
|
|
Make a custom function for it which check whether this entry is already there or not by
hshTable.ContainsKey("one")
if it there then remove it as
hshTable.Remove("one");
and again add as
hshTable.Add("One", 6);
Cheers!!
Brij
|
|
|
|
|
Hi,
create a 5-line method to do what a single statement can do? I suggest you (re)read Giorgi's and my earlier replies.
|
|
|
|