Zodraz's Q&A profile
Windows Forms How to make an mathematical look expression in textbox or lable of Win Form
Hello, I wish to put an mathematical looking expression in Win Form for Lable or other textbox, such as Greek letter, superscript, subscript etc. Could someone please help how to compose that looking. Thank you, James Hi, Have you tried setting the Font property of the Label to "Symbol" That might work for the Greek characters but I am not sure what you can use for superscript and subscript expressions. -Mamta M ...Show All
.NET Development .NET 2.0: Setting WebServiceBindingAttribute.Location leads to a NullReferenceException
Hello, I currently try the contract-first approach when making Web Services on the .NET 2.0. Trying to set the WebServiceBindingAttribute.Location to point on my hand-made wsdl file leads to a NullReferenceException. Does anybody have an idea about what's wrong here Here is the stacktrace: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object . Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: ...Show All
.NET Development Populating A Combobox
Well, what should be a simple task is turning out to be a nightmare. I have a simple combobox on my form. I have a simple database with a table in it and some data. All I want to do is populate this combobox, but nothing works. I setup a dataset, the bindingsource, and tableadapter, in preview data comes back, but when the project is run the combo box is always empty. I've tried a bunch of other stuff, but the results are the same. I've searched and searched for a simple tutorial on this, but can't find anything specific to this problem. I'm using Visual Studio 2005 Beta 2. Any help would be greatly appreciated. ...Show All
SQL Server Error when I setup website to sub level
Hi, I am getting the following error when I use the Membeship Controls w/ Roles enabled. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. I use ROOT>USER>WEBSITE for FTP Directory Setup. If i need to change my old ways please inform me on the best direction. ...Show All
.NET Development Master Templates / Themes in User Controls?
I was surprised recently to discover that neither Master page templates or Themes can be applied to User Controls. Short of porting these to Custom Controls (where I should be able to apply themes, at least) or overriding the Control class does anyone know of any options for working around this My firm's production department often uses User Controls for quick reusable snippets across client web sites since they can easily be created by people with limited development knowlege. Currently we skin these using XML/XLS, CSS or a slough of design properties. This method works but there are various benefits to master pages (in particular) and th ...Show All
SQL Server Bookmark Lookup
Fellow Developers i have a query that has joins of tables with huge data (more than 2G of records per table). the execution plan shows me the 80% of the execution is on a "Bookmark Lookup" on the biggest table. Does anyone have clue how can I optimize this query other than using covering indexes... best regards Jeries Shahin wrote: Other than using covering indexes... Well, if you know the answer already.... Seriously, you need to understand how indexes in SQL Server work (you may already, so here is the short version.) The nonclustered index uses the key of the clustered index rather than keeping a poi ...Show All
Windows Forms Grid and BindingSource object change
I was working thru an excellant example by Robert Green of Microsoft entitled Walkthrough: Smart Client Data in Visual Basic 2005. This was for Visual Studio 2005 beta 1. Using beta 2 there seems to be a significant change. When I worked thru this example the DataConnector object has been replaced with a BindingSource object. Why is this and how do I implement the one to many form using this new object You are correct in that this has changed and we are working on updating the sample. Rather than use the "Add related..." smart tag, you can now do this more naturally ...Show All
Windows Forms Web services help
Hello folks! I have a question: how do you call a web service I compile my own code, and I don't have VS.NET. Could somebody please please please just post a sample or something on how to call a web service, and then display the results Thanks in advance! use wsdl.exe to generate the WS proxy from WSDL, or schema t ...Show All
Windows Forms Using Matrix transformations
I`m experimenting with using Matrix transformations on a GraphicsPath. I have added a rectangle to the path and want to use this path to draw several versions of the rectangle(sheared, rotated, translatet etc..). Question: Is there an easy trick to have the rectangles transformed based on the origin of the original rectangle So that say the next shear doesnt offset but&n ...Show All
Visual C++ MFC Activex Control - Failed to create control: Unspecified error
Hello, I have created an activex control in MFC 8, VS - 2005 Beta 2, which hosts Windows Forms control in it. I have created it as per the article by Nicola (MFC 8 (VC++ 2005 and Windows Forms). When I test using the activex tester I get the message - Failed to create control: Unspecified error. When I refered this object in a html page using the object tag - It does not show the object. I have used the /clr option. I noticed one more thing - When I comment out CWinFormsControl related code, the activex object displays on the html page. ...Show All
Visual Studio Cast error when pass a parameter in localreport and reportviewer
hello friends, i have a problem with my report when pass a pamameter in vb.net and VS 2005 The code is: Dim objParameter As ReportParameter objParameter = New ReportParameter( "Name" , "test" ) Me .ReportViewer1.LocalReport.SetParameters(objParameter) the error is: System.InvalidCastException was unhandled Message="Unable to cast object of type 'Microsoft.Reporting.WinForms.ReportParameter' to type 'System.Collections.Generic.IEnumerable`1[Microsoft.Reporting.WinForms.ReportParameter]'." Please help me Rodrigo SetParameters takes an array of ReportParameter objects, not a sing ...Show All
Visual Studio 2008 (Pre-release) Speed of XAML
Is it possible for you guys to give us a realistic timeline on when XAML wil be ready to be a actual viable option to develop applications for E.g when will the whole framework standardize and when will we be able to develop apps that won't run at snail speed Thank you very much, Jaco There are many applications in development today, and some are even available for evaluation. The February CTP is the build you should use. There are companies that have been developing WPF applications since PDC 2003, and they are fairly well into their development at this point. Is there some specific iss ...Show All
.NET Development Exception: "The underlying connection was closed: The connection was closed unexpectedly." (sometimes)
I have a windows app connecting to a webservice. In some situation(s) (haven't narrowed it down enough), I get the following exception: The underlying connection was closed: The connection was closed unexpectedly. When this exception is thrown, it is calling a method of a web reference. Now the situation that we experience this is on a laptop in the field that is using a WWAN connection in at least one location. It works fine in the lab at the office. Anyone have any ideas what could be causing this If you are transfering large messages or the operation on the service side is taking very long you m ...Show All
.NET Development Getting a version of a file using managed code in .Net 1.1
Hi Is there a way in .Net 1.1 to get a version of a given file using managed code Thanks Rakesh. Hi Rakesh, Look at the System.Diagnostics.FileVersionInfo class: FileVersionInfo info = FileVersionInfo.GetVersionInfo("C:\myFile.exe") hope that helps, Imran. ...Show All
SQL Server Processing a cube dimension
I am trying to process a time dimension on a cube and get the following error. Can some one please help. How can I fix this error Error 1 Errors related to feature availability and configuration: Exceeded the maximum number of partitions in a measure group. The installed server editions allows not more than 3 partitions and not more than 1 writeback partition. 0 0 That is the error if you try to use Standard Edition and partitioning. Partitioning is an EE-only feature. _-_-_ Dave ...Show All
