I have a dll from a card reader...
I encapsulate this dll into a ASP.NET Class Library...
and compile it into my own CardReaderWriter.DLL.
this Class library has methods..
the card reader will be connected in client computer..
Since it's on client side, i can not use ASP .NET to call and use the Class Library
Do I need to Copy this dll to client machine and register it .
How do i create an object of this on client side to access the methods ...
i even tried the object tag but gives me the error that object doesnot support this property
Note:- i have already compiled and registered the Dll on client machine to be safe but still not able to do it.
plz guide me to the right direction.
if possible plz provide sample codes and links to articles.
thanx in advance
i populate dataset with data from uif table and one of the colum is marriage status which is integer so i want to you case statement where for example if marriage_status is 1 then it has to display single on detailsview.
here is my code
int MarriageStatus = (int)dataset.Tables["uif"].Rows["marriage_stat"];
string status = Convert.ToString(MarriageStatus);
status = "married";
I`m very new to the programming so this might be easy question to all of you, i`m hoping someone can help me out.
So i`m trying to write very easy program in windows form but i have encountered the problem.
lets say that i have an event on the button1 (CLICK) which should pick up a random number and hold it in the memory unless i click it again to change it. My problem is that i cannot figure out how to use this variable which has been set up in the first place with another event button2(Click) which will use this variable and do other task with using int previously declared. Short example:
publicvoid Random_Click(object sender, EventArgs e)
Random myRandom = new Random();
int myNumber = myRandom.Next(1,10);
publicvoid Button2_Click(object sender, EventArgs e)
This will not work and i cannot find the way to get it right
Hello still nothing cannot solve this problem, so what i tried is i tried declare variable as a (public int nameOfInteger) just before the method, in the begining oif the class and everywhere else. Still confused
thats my code
publicpartialclass Form1 : Form
publicvoid button1_Click(object sender, EventArgs e)
Random myRandom = new Random
myNumber = myRandom.Next(1,10);
privatevoid button2_Click(object sender, EventArgs e)
so when i click button1 variable should be set up and when click button2 i would like to see this variable in the message box.
Are you using some IDE? It would be helpful if you could give some error reports and I think I could think of one. Now, that would be newNumber and myNumber. Are those supposed to be the same? I think so.
Your problem is working out the SCOPE of your variable.
If you declare it in the method it dies when the method completes.
if you declare it provate in the form (I ususally put them just before the form_load method) then the variable will be available until you close the form.
Luc Pattyn [Forum Guidelines][My Articles] The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
Hi I'm new to C# and graphics programming so I hope you can bear with me.
We developed an application for winxp(embedded) and we added usercontrol 3D buttons in it.
I used blending and linear gradient functions instead of displaying a bitmap file.
The performance was ok when run from our workstation but it was
poorly responding when tested on the actual unit, probably because of low video
acceleration, the previous system used LabView graphics and it was doing fine with
the same 3d look. There are screens that display about 20 buttons at once.
I tried enabling double buffering but it did not change anything. Please help.
My questions are:
1. Is there any other way to create 3d buttons?
2. Would creating Direct3d usercontrol for the buttons be faster?
Hey I am C# web application developer i want to make use of the hotkeys F2 F3, and these things. I know the values for each button but i do not know how to use them in the whole page. I know how to work with it using textbox event i get the event.keyCode and work through it. What I want is that the user could have his focus on any part of the web page once he enters F2 or these button an event would be executed. How this could be done???? Thanks