Answer Questions
Chris Treadaway - MSFT How to make C# & PHP interact with each other
Hello everybody, I am working on an C# application which would use the remote MySQL database located in my website hosted on a Linux server with PHP & MySQL support . I tried to connect directly to the MySQL database using ODBC drivers, but was not able to connect due to restrictions at my hoster side. So the only option was to make C# send a request to PHP scripts running at the webserver and make PHP return data to C# ...Show All
Giuse How to display totals
I have a SQL table containing following column: date_shipped, product, quantity In a C# asp.net application, I want to display the data as below: 11/1/2005 prod A 5000 prob A 3000 prod B 2000 ---------------- Total 10000 11/2/2005 prod A 2000 prob A 3000 prod B 2000 --------- ...Show All
Dennes click event
I am trying to write one event handler that will handle a lot of events. For exaple i made a keyboard on the screen. When you click the letter "l" that letter should appear in the text b ox. I wrote some code below coud you help me with the rest delegate void fillbox ( object sender, EventArgs e, string letter , bool Caps) ; private event fillbox OnClickEvent; private void FillTextbox_numbe ...Show All
Alan Rueckgauer non-generic "default"
Generic types are kind of nice, but... the typical use of the default keyword in the generic context provides an initialization of a variable with a default value and it takes the generic type token as a parameter - nice function: x = default(T); now I face a situation where I know the type and need the default value/instance of the type: object DefaultValue(Type t) { return default(t); // doesn't work of course } Is there a substitute f ...Show All
jasMSDN win32 dll and c#
I have a c# class library and a c# windows forms app that tests the class library. I also have some win32 dll's that export some classes written in C. How do I access those classes from either my c3 class library or its test app what about CLASSES exposed by an unmanaged win32 DLL You need to wrap them in managed classes as well. cgraus,how to wrap in manage ...Show All
.NET Master How to stop MDI parent background image being tile
Hi, Does any one knows how to set the MDI Parent form's background image to strech mode. Many thanks, -VJ Hi Moayad, Thanks for the reply but it won't allow me to do that. By the way I'm using c# 1.1 -VJ Hi Vije, You must change Form.BackgroundImageLayout property to ImageLayout.Stretch . Hope this helps... I am also having the ...Show All
Hadas Crystal Reports: SetDataSource <<< Using a BindingSource instead of DataSet
Hi I need to know if there is a way to use a BindingSource instead of a DataSet on crystal reports. On my form i have a DataSet, BindingSource and DataGridView. The datasource of the gridview is the BindingSource. So with the filter property i can easy filter the data in the grid. Now when i click my print button (using crystal reports) i want only the records visible in the gridview. But when i pass the bindingsource as datasourc ...Show All
DaveSimmonds Question about making object instance visible to other objects
I have 3 classes: MainClass SettingsClass FormClass Now, Mainclass handles most operations and does it's job well, upon being instantiated it creates an instance of SettingsClass, we'll call this instance _settings. SettingsClass holds global settings for the application... like the user name, state of various things, that sort of stuff. During the lifetime of MainClass, a FormClass may or may not be instantiated as well. FormC ...Show All
Doc Glazer Can anyone solved this problem with Shockwave Player?
Hi..alll. please see this problem on Visual Studio.net 2005 does anyone know the solutions..: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=94b4aaf8-95de-4d45-9f37-58099fbffabf Best Regards.. sorry i didnt understand the users fix. .Can you tell me how i can solve the problem..or tell me if you have solutoins of you own.. thanks.. did you understand the users fix ...Show All
dick giles How to get different files from one directory with GetFiles()
Hello guys... Is there a way to retrieve the names of all .bmp and .jpg files in one directory with only GetFiles() method....such that it puts all files into one array chire wrote: :) anyway I found the solution...sorry for bothering you Thanks for the fast reply, but with your code you first retrieve all files and them filter them out. And compare them case-sencetive. yeah, mine is a bit n ...Show All
Narayan12345 Pre MDI form shutdown event
Hi all, Visual C# 2003 problem (can't afford 2005 yet) I hope someone can help me because I want to do something and a bit of the puzzle is missing. I have created a MDI program that can display data in different child forms. The children tell the parent if certain events happen - if data has been loaded, modified or saved. If a child is shutdown, the Closing event fires in the child and the user is questioned if data has been modif ...Show All
Moura simple editor using webBrowser control
Hi, I am working on an editor using the htmldocument in the webbrowser control. This is my code for testing out its capability: private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { htmldoc = webBrowser1.Document; htmldoc.ExecCommand("EditMode", true, null); } private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { // proces ...Show All
Chris Darrigo how to get a "summary" or a "snippet" from the result returned by WDS SDK?
Is there a way to retrieve a summary or a snippet from the results returned from the sdk query, which shows a segment of content containing the queried word and its neighboring words Hello eng2chi, We don't currently support exactly what you are looking for. There is, however, one thing that may be helpful to you. If you query for System.Search.Autosummary you can retreive a text snippet that may meet ...Show All
eugene7_11 How To Return Null From Class Instantiation
I usually answer the questions, not ask them .... but today I'm asking : If I have a class to instantiate and there exists the possibility that there may be problems instantiating that class, how can I have the instantiation return null I know that one way out is to throw an exception in the constructor, but we all know how expensive exceptions are. I'd rather have the instantiation be null and have to test for a null: MyCla ...Show All
SonaliC txtbox
hi, i want to enable my 2nd textbox and button after the input on my 1st textbox. i am doing it in C# and ASP .NET. i tried this code but it didn't work. private void textbox1_TextChanged(object sender, System.EventArgs e) { textbox2.Enabled=true; button.Enabled=true; } ok thanks, sorry i didn't change the ontextchange to onchange of my textbox. i thought onchange is not allowed since in my intel ...Show All
