|
Sorry, Mandaar. I read your post too hurrily.
Yours, Dirk
|
|
|
|
|
Hi,
Working in c# .NET 1.1 Windows Forms.
I'm getting "Overflow or underflow in the arithmetic operation" error when changing font color/size after calling a class from a .dll file. My research suggests that the unmanaged code has changing the Floating-Point Control Register. Does anyone have C# code to reset Floating-Point for all Form controls?
Thanks,
Ron
|
|
|
|
|
I've load an assembly with Reflection , I have a class named Agent which is in assembly , and I've create an instance of it with CreateInstance() , but I can't cast it to its interface(IAgent ) , do you have any idea about this dynamic casting in C#(.net 2)?.
Thanks
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
Mazdak wrote: I can't cast it to its interface
What exactly does that mean? Are you getting an exception at runtime (what does it tell you) or maybe a compiler error? Furthermore it would be helpful to post a small snippet with the relevant code so we are able to see what exactly you're trying to do.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hello every one,
i wante some books and cds to learn mor and mor about c#.net and asp.net if it vilable
ashraf hakiem
|
|
|
|
|
.Net complete reference is prefered.
IlangoGandhi
|
|
|
|
|
Here's is what i want!
The windows service has to perform some task automatically and repeatedly.
For example,I want to have some code in the Windows service that will read all xml
files from the location "c:\Xmldata" and update those xml files to some
Sql server database and delete those files.After this process is
complete(or after some time) again check the location if new files have
been written and then perform read-update and delete.
I am not sure whether I can do this with Windows Service.
If I can,
My main query is where(and optionally,how) in the Windows service should i write the code to have my task done.
Thanks for your time and Consideration.
and thanks for suggestions/Comments, if any.
|
|
|
|
|
hi,
try this link
http://www.codeproject.com/dotnet/simplewindowsservice.asp
Thanks & Regards...
Amit
|
|
|
|
|
Hi!!
The link you provided is just a walkthrough of creating a simple windows service that practically does nothing other then lending itself to be controlled through Windows Service Manager.
What I had envisioned was to perform my tasks in a continuous loop within the OnStart() method.But I have come to know that "the OnStart method must return to the operating system once the service's operation has begun. It must not loop forever or block."
So, I am in confusion where in the windows service skeleton should i put the code to perform my task repeatedly.
Thanks, as always
Rabindra Gh.
|
|
|
|
|
Hi
Is there any code available for sending polish characters in email in .net
|
|
|
|
|
Hi
Is there any code available for sending polish characters in email in .net
examples of few polish characters is this
Jabra BT5010: More voice - Less noise
Drodzy Państwo,
Szybka i klarowna komunikacja jest niezbędna w biznesie, dlatego włąśnie stworzyliśmy słuchawkę Jabra BT5010.
Ramię sliding boom poprawia jakość transmitowanego dźwięku. Ustawienie mikrofonu bliżej ust ułatwia przechwytywanie głosu i niweluje szum otoczenia
Wpływ podmuchów wiatru na komunikację jest redukowany dzięki aerodynamicznym kształtom
Nowy, modelowany pałąk zauszny pozwala na idealne dopasowanie słuchawki każdemu użytkownikowi – na lewym lub prawym uchu
Programowalne przyciski głośności pozwalają na dostosowanie dźwięku do własnych potrzeb i upodobań
|
|
|
|
|
Hi
Is there any code available for sending polish characters in email in .net
examples of few polish characters is this
Jabra BT5010: More voice - Less noise
Drodzy Państwo,
Szybka i klarowna komunikacja jest niezbędna w biznesie, dlatego włąśnie stworzyliśmy słuchawkę Jabra BT5010.
Ramię sliding boom poprawia jakość transmitowanego dźwięku. Ustawienie mikrofonu bliżej ust ułatwia przechwytywanie głosu i niweluje szum otoczenia
Wpływ podmuchów wiatru na komunikację jest redukowany dzięki aerodynamicznym kształtom
Nowy, modelowany pałąk zauszny pozwala na idealne dopasowanie słuchawki każdemu użytkownikowi – na lewym lub prawym uchu
Programowalne przyciski głośności pozwalają na dostosowanie dźwięku do własnych potrzeb i upodobań
|
|
|
|
|
Use System.Web.Mail namespace.
Create a mail message instance
MailMessage message=new System.Web.Mail.MailMessage();
set the properties
message.Body="xxxxx" // your mail content (in polish lang)
message.BodyEncoding = Encoding.UTF8; // all lang other than eng are represented in unicode.
Check out
|
|
|
|
|
Or failing that can you DynamicMethod to replace an existing Property Set Method?
Thanks in advance
Tim
|
|
|
|
|
Hello Friends
please take a look into the matter ..
i have a string say :
V923 O76 V2 V3 F21 ---- V O F are the characters
First
i have to check the two V or V with F can't come together (as in this expression)
and
Secondly I have to spilt it as V and 923 all the value corresponding to V should Come in array as V[] = 923 2 3 as for the Others like O and F
Please anyone have the solution then help ..
regards
|
|
|
|
|
Have a look at string.split(). Try to split the whole string by whitespace (like ' '),
then analyse the first characters.
Yours, Dirk
|
|
|
|
|
Hai,
How to assign the selected value of one dataset to another dataset?
Ilango
|
|
|
|
|
Hi Dude,
Use this type code...
DataSet ds = new DataSet();
DataTable myTable = new DataTable();
myTable.Columns.Add("id", Type.GetType("System.String"));
myTable.Columns.Add("username", Type.GetType("System.String"));
myTable.Columns.Add("firstname", Type.GetType("System.String"));
myTable.Columns.Add("lastname", Type.GetType("System.String"));
DataRow row;
row = myTable.NewRow();
row["id"] = "test1";
row["username"] = "TestName";
row["firstname"] = "TestFirstName";
row["lastname"] = "Testlastname";
myTable.Rows.Add(row);
ds.Tables.Add(myTable);
Ok..
Regards
Thamilselvan J
Thamilselvan J is a Micrsosft MCP,MCAD,.Net Consultant,author of several .Net programming articles.He has been working with .Net technology since last three years.Thamilselvan J Background inclueds Master's in Computer Technology and B,Sc Computer Science.Currently he is working with ASP.NET and other cutting-edge technologies.
|
|
|
|
|
Is there a way to capture the image of current form , where we are in (using handle or anything of form)
kumar
|
|
|
|
|
Check out: http://www.thescripts.com/forum/thread256365.html and
http://msdn.microsoft.com/coding4fun/april-fools/screensaver/default.aspx
- Ashish
Time flies like an arrow;
Fruit flies like a banana.
Ashish Derhgawen - http://ashishrd.blogspot.com
|
|
|
|
|
I was using:
Wait.oThread.Abort();
to just close the thread, and it worked fine in debug
But when you run the app normally when it oThread.Abort()'s it says there was an unhandled exception and the thread was aborted.
I need somebody to tell me what to do.
|
|
|
|
|
Calling Thread.Abort will raise a ThreadAbortException (duh)
To properly abort a thread use a volatile bool bQuit and periodically check it in your thread for "true", then gracefully close this thread
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Like Greg said, don't use Abort. It's a real terrible hack and can cause all sorts of problems including bringing down CLR hosts or the process itself. Really bad, don't use it.
Instead, use a custom cancellation flag and have the other thread occassionally poll for cancellation.
|
|
|
|
|
Hello,
i'm trying to list all the fonts with Arabic Script in a combobox, i can get all the fonts using FontFamily but i have no idea how to check if a font has an arabic script or character set.
Thanks In Advance
Yehia A.Salam
|
|
|
|
|
hi
i want to encrypt data(for example a avi clip) and save it in hdd, and i want my app read some byte[] of avi clip and decode it on the fly and play until the clip finish, But How to do and can u suggest me better way ?
thanks
|
|
|
|