Answer Questions
Konigmann Weired behavior of Timer
OK, this is driving me nuts: I'm changing the size of a form, when a button gets clicked. The actual changing is delayed by a timer... just for an nice effect. :-) This works fine the first time. When clicking another buttons, the form goes back to its original size. And clicking the first button again, it will change its size... When the first button gets clicked the second time, the form doesn't resize as smooth, as it did the first time. Seem ...Show All
Randy Beckwith new browser in C#
Hi, I just started learning how to use Visual C# and I am having trouble creating a new web browser from a button. I currently have a button that I want to click to open a new web browser window, which will go to my homepage. I can't find anything on how to open a new window. The closest I have is webBrowser.NewWindow, but it doesn't seem to do anything. Any help is appreciated. Thanks edit: wait wait, there's more! I also have a combobox and I ...Show All
crim Getting what is after the Decimal place, in any number
hello people I am trying to get what is after the decimal place in any number for example 3.99939204820498, i want to get 99939204820498 i am aware of the % (mod) when i divide, but what about when i multiply 1458/365.25 = 3.9995646 (what ever the result is) i wan tto then get the 0.9995646 lets say i multiply the 0.9995646 by 12 = 11.90545654 (some number) now i want to get the 0.90545654 how do i do this in C# 2.0 i can use strings to sp ...Show All
Tibia Rules Session or viewstate, default value
How can i set the default value of my variable stored in session or viewstate before the first call My code is: public class xxxxxxxxxxxxx: System.Web.UI.UserControl{ public xxxxxxxxxxxxxxxxx() { } public xxxxxxxxxxxxxx(string user, Connection connection...) { } ... public string User{ get & ...Show All
Apollo Strong Simple XML Menu
Does anyone have a simple one level menu with xml found ones in the internet but it's too advanced.... Thanks ...Show All
Malika Senaratna RTM Web refactoring... Serious problems!!
I am amazed that the refactoring support in VS2005 is in this state. It is utterly useless. How can they claim to have Refactoring support for web projects I have a Solution that contains one web project and two library projects. It is NOT a complicated solution (~150 .cs files and maybe 100 .aspx and .ascx skin files). And when I try to use ANY of the refactoring tools that have been provided in Visual Studio 2005, it takes an eternity (over ...Show All
salemoh Problem with PInvoke finding/loading unmanaged DLL
I have several legacy DLLs created for an application that I am attempting to call using the PInvoke (DLLImport) method. My problem is that I am getting an error stating that the DLL cannot be loaded. This seems to have happened when I took the fullpath off the DLL name and only specify the DLL name (i.e. went from "C:\wherever\dllname.dll" to "dllname.dll") in the DLLImport specification. I have added the directory path to the ...Show All
Zulfiqar UITypeEditor not writing code
i am trying to implement a UITypeEditor for a custom collection, i have managed to display it to add items at design time but it doesnt save the items i have added using the UITypeEditor in my code up what part of the code [TypeConverter( typeof( ExpandableObjectConverter ) )] public class HeaderColumn : IDisposable (custom made) = item ...Show All
Jeff Guenthner valid date
Is there any method for validating the date that Date is in correct format or not Use the DateTime.TryParse method when you are using .NET 2.x; otherwise you can use something like Regex to validate the string or try-parse yourself by catching an FormatException of the DateTime.Parse method. DateTime.TryParse() Cheers, Greg ...Show All
chrisleonard SIMPLE instructions to REMOVE Windows Desktop Search
I have written to MS without receiving a simple, non-MIS/IT description of how to remove this horribly intrusive add-on, that installed itself DESPITE clicking on DO NOT INSTALL. So (and without getting into the politics of who is behind this), all I want is the easy way to remove this program. I have gone into Add/Remove Programs and YES, clicked on Show Updates, but there is NOTHING clearly identified as Windows Desktop Search. ALSO, ...Show All
mixministermike Program doesn't Terminate
I've made a program that has a thread that continuously receives the bytes from a server via socket. The code is like this: data = new byte[1024]; receiverThread = new Thread(new ThreadStart(Rec)); receiverThread.Start(); public void Rec() { while(true) { try { recv = client.ReceiveFrom(data, ref remoteEP);   ...Show All
jazman58 Downloading file code.
Hello, Could someone give me a simple code that would save a file from " http://csr.wwiionline.com/scripts/services/persona/service.jsp pid=226275 " and save it to the c: drive. Then I would like it renamed to "stat.doc". Can you please help me. using (WebClient client = new WebClient()) { Stream responseStream = null ; Stream localStream = null ; try { responseStream = client.OpenRead( "http://csr ...Show All
Big1 setting a variable using a random number from x to y
How can I set a variable using a random number from 1 to 10 ------------------------------------------------------------------------------ For example if I have a variable named "a" in pascal , my code is : a := random(1..10); If I use this code in paccal "a" will be a number from 1 to 10(for example 1 or 4). ------------------------------------------------------------------------------ I nee ...Show All
John Gallagher class library obfuscation problem
hi, after i obfuscated a class library that i have written, i found when i tried to use it, that the classes and its members doesn't exist. i added the obfuscated dll file to my refrences, then typed "using MyClassLibrary" , but VS 2005 doesn't feel it at all, MyClassLibrary doesn't appear in the drop down list that drops while typing in VS 2005, even when i try to write it manualy and press the . "dot" , no drop down l ...Show All
ian1974 data reader issues
im new to c# and trying to make a simple login page. it doesnt seems to extract the pwd fromt he db. it makes hte if(DR.Read()) check alright but the out put i get is invalid password. so it runs the name check but the pass check doesnt go through. void Login_Click(Object Src, EventArgs E) { string strConn = "Provider=SQLOLEDB; server=localhost; user id=#; password=#; database=LoginTest;"; OleDbConnection Conn = new OleDbConnection(s ...Show All
