Answer Questions
Ryan Powers i have error :(
hi, can anybody help me when i want to save the record in access database and i cannot save it this is error http://www.geocities.com/qtruni/eee.JPG and this the code for save button +++++++++++++++++++++++++++++++++++++++++++++++++++ private void Savebutton_Click(object sender, System.EventArgs e) { if (sidTextBox.Text != "" && fnameTextBox.Text != "" && lnameTextBox.Text != "&q ...Show All
helsingfors Visual Studio 2005 Team Suite && Visual C# 2005 Express...
I allready have Visual C# 2005 Express Beta 2 with the latest CTP. I also just received the Visual Studio 2005 Team Suite Beta 2 CD in the mail today, and was wondering if I could install this side-by-side with Visual C# 2005 Express Beta 2 If so, could I do this without having to un-install the 2.0 stuff I currently have(Express versions) -LeRoi, Visual C# Express Beta 2 will live side-by side with VSTS ...Show All
rSmoke error in local variable
when i run the code below i get this error Error 3 Use of unassigned local variable 'result' C:\Documents and Settings\Francis Jackson\Desktop\string\WindowsApplication12\IRunAccess.cs 98 20 icx protype 1 how could this be when i have result assinged public override object RunSQL( string sqlstring, out string err, string XMLDOCPath , out string err2) { string errlocal = "No DataBase Errors&qu ...Show All
raibeart Rounding off
Hi, Can someone please show me how to round off a decimal For instance, I have a number 123,4567890 but I want it to be 123,45 So how do I do that Thanks Math.Round ( value , precision ) will round the value to appropriate precision using IEEE rules. If you want slightly more control then 2.0 introduced the MidpointRounding enumeration to have some control over the rounding. Michael Taylor - 1/6/06 ...Show All
bchadraa MSFT Deleting IE Cache
Well, i'm trying to delete the IE Cache with this: #region IECache private void IECache() { ClearFolder(new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache))); } void ClearFolder(DirectoryInfo folder) { foreach (FileInfo file in folder.GetFiles()) file.Delete(); foreach (DirectoryInfo subfolder in folder.GetDirectories()) ClearFolder(subfolder); } #endregion IECach ...Show All
prinso Having a common class!
Hi, I'm facing a small problem and it would be great if someone could help me out. I'm creating a class for my project. The project is of two parts. One part is done using ASP.NET and the other part is a windows application developed using C#. The class is common to both the asp part and the windows app part. Now I need to know if the client's browser supports activeX. I know this can be done using "Request.Browser.ActiveXControls" ...Show All
Scott Fletcher Deploy db on Tablet PC
Hi, We are developing a C#/MSDE solution for Tablet PC. We will need to pack the application with the database, that contains reference data. Will then deploy the soluton to users machine when they log into the network, or by clicking a button. How can we acomplish this, THANKS ...Show All
floris_olivier problem copying a row/cell in datagridview to Excel with extended character set
Hi, My code involving copying some row of data from the datagridview to Excel. I am using extended character set for Vietnamese. When copying a whole row or a cell of data from the datagridview to Excel, some character get replaced with ' '. But if I highlighted the text then copy it over, it works fine. I has been testing this with the copy/paste shortcut keys also and it do the same thing. eg: datagridview: Hi ...Show All
Crend King Web browser Instance is not Killed
Hi am using a web browser control axWebBrowser1.Navigate(Application.StartupPath+ \\Results. Doc,ref Optional,ref Optional,ref Optional,ref Optional); now a word document will be opened in browser (word.exe is also opened in background) now when u close the browser the word.exe is still running background. pls tell me how to solve so that i am not able to modify the word document . it says its being used by other process" i have k ...Show All
Gilles Outlet web user control and its files
I'm creating a web user control (file ascx,ascx.cs e ascx.resx) which is connected to a DB (i have other 2 classes and so 2 other files). 1.Is it correct or is it better to have only one file with all the classes 2.When I use my web user control, have i to copy all the files i used, true THX No, you should put them in 1 project so they will be stored in one DLL. Then you can use then in every project you want by only adding the D ...Show All
Jerrie Pelser Circular dependency + WinForms depency problem
Hello everyone. I have a question about an indirect circular dependency caused by some not-so-loose coupling, and I'm looking for options to solve it neatly. The operation is very simple - I wish to split my application into a library of core components and a bootstrapping EXE which contains all the WinForms stuff. This is in aid of writing a Linux GUI, and it is why some of the usual options are closed to me due to needing things in certa ...Show All
Tilfried Weissenberger Changing the Language Control Bar
Just wanted to pass on how I was able to change the Language Bar from within my C# program. I saw questions about it on this site. You can see the keyboards loaded with the following code: public void GetLanguages(){ // Gets the list of installed languages. foreach(InputLanguage lang in InputLanguage.InstalledInputLanguages) {   ...Show All
nielsvanvliet ~ operator
hi, i don't understand the bitwise operator at all particulary this ~ i know if i used it as a prefex for a method carry the same name as the class it will be the destractor but what does those operator mean in this code if (oldFont.Bold) { newFont = new Font (oldFont, oldFont.Style & ~ FontStyle .Bold); } else { newFont = new Font (oldFont, oldFont.Style | FontStyle .Bold); } this code simply format ...Show All
rimysoft passing data from a form to another
those anybody know how can i pass data from form1 to form2 i want to put a TextBox1 in form 1 and when Form2 initialize, show a MessageBox with the Form1 TextBox1.Text Please help there are a couple options but here is an example of one public partial class Form2 : Form { public Form2() { InitializeComponent(); } public Form2( TextBox t) { InitializeComponent(); this .textBo ...Show All
cokert Is there a way of reducing the accessibility of override methods in derived class?
Given a virtual public method on a base class, is it possible to make the override method in a derived class private so that users of the derived class cannot access the overridden method Are there any plans to support this in C# Any suggestions on how to achieve this in the meantime Thanks, Darren. Making the base function a virtual protected method will achieve what you want here. You can't change the accessi ...Show All
