Answer Questions
vikomall Error while connecting to a cube
Following error occured when connecting to a Sql Server 2005 Analysis Services through aspx page Server Error in '/Cube' Application. I don't believe this is a deployment issue. Depending on the IIS/ASP.Net configuration, the web code page might be running with an impersonated account, or it might be running with an ASP machine account. You need to figure out what account is being used for ASP.NET apps. It works on your machine perhaps because it's running with your account, but that doesn't have to be the case for other users accessing the deployed web page. In other words the mesage is correct - ASP.NET code running with unauthorised accounts can't access the CIA database.... Try an ASP.NET forum. ...Show All
Keith Vinson Events and interfaces
I have a similar question to this - in my case I have an application which has been written to use DLLs that will change from system to system. These conform to a common, defined interface and are accessed by the main executable using late binding. Each DLL essentially provides a UserControl which can then change appearance and functionality depending on which one is used (i.e. one for each customer). I have no problems accessing the parameters and methods defined by the interface, but I can't find any useful information on how to handle the Events within it using C#. What I need to know is a) how to define the events within the Interface and then b) how to handle these events from within the main application. Any info would be great ...Show All
markse Number to Word conversion
Hi I have to convert any digit to word format. Give some help about that. example : Suppose Number is : 1,25,345 In word: One lac twenty five thousand three hundred fourty five. please give solution or code for that. shyamal Shyamal Patel wrote: Hi I have to convert any digit to word format. Give some help about that. example : Suppose Number is : 1,25,345 In word: One lac twenty five thousand three hundred fourty five. please give solution or code for that. shyamal Can u give me this code & solution. ...Show All
Ron L General Window Forms Oddness!!
Hi My frmMain is an MDI parent. Its size is 800 * 600. I have 4 forms in my application that need to open maximised as child windows, one of these is called TaskList. The forms that open from these 4 are dialogs. I have 3 questions that I can't work out. 1) When the application starts, the task list form should display maximised automatically. When it does the status bar of the TaskList window (you now have 2 status bars one for frmMain and one for TaskList) stops the vertical scroll bar from fully showing. (hence you can't see the bottom item in the fully docked listview). If the form is not maximised then you can see all the scroll bar. http:\\www.shagracing.co.uk\coding\01 ...Show All
ClydeD MSI Package Question
I have developed an VS2005/VB application that I have installed on a couple of end-users PC. The application works great with one exception. After I install the package and run the application the first time, either as a local administrator or standard user, the application looks for the MSI package to complete the install. What can I do to get this to stop. I'm not sure why it would not work the first time I setup the install package, but I deleted the setup routine and re-created it and now it works just fine. A repair. MSI will restore missing files, and that will require access to the original MSI source. I just repackaged my setup application, copied to my flas ...Show All
Michael Collins Groupbox help
Hello, I have a windows form which has a groupbox control that contains several objects. I would like to create several instances of this object at runtime. In the "Windows Form Designer generated code" we will stuff like... Friend WithEvents gbRangeTemplate As System.Windows.Forms.GroupBox Me.gbRangeTemplate = New System.Windows.Forms.GroupBox Me.gbRangeTemplate.Controls.Add(Me.txtRangeTemplateOperator) Me.gbRangeTemplate. ...Show All
pvphuc UserControl with ComboBox
My aplication needs a usercontrol consisting a combobox. So I have to provide the commonly used propertiesfor the comboBox for this usercontrol as well. I build this UserControl DLL and using in some other Windows Forms, but then some problems arises. I have few problems in that: 1. There is a property called "FormatString", I have attached the editor "FormatStringEditor" also with this while declaring this property. But when I try to use this property in the "property-pane" I am getting an error Object Reference not set to an instance of an object" 2. I have also exposed the property for "Text" and "Items" and attached these properties to the ComboBox corresponding prop ...Show All
Job Lot datagridview making one eventhandler
Hi, I have an xml file which contains the history of send sms messages. The program has an sms tabpage where you can send sms messages. You do this by entering the phone number and the message. Then pressing the 'send' button. This program also keeps a history of messages that has been send. It does this by writing the data into an xml file. I want to show the history of the sended messages in xml with datagridview and when the user selects a cell/row or double clicks a cell/row it should load the data back in the controls where the phone number and message was typed. I can load the xml file into the datagridview. The problem is, i don't know how i can load the data back into ...Show All
beefeater Storing custom class in Application Settings
I would like to store a class defined by me in the "windows from application settings". This is not easy to do, but it seems to work, mostly: 1) Open Settings.settings with the Settings Designer. Because the dropdown list doesn't allow me to chose my own class, I just use a property of type string. Close the Settings Designer and save the changes. 2) Open Settings.settings with a text editor. Change the type to my class. save the change. 3) Open Settings.settings with the Settings Designer. A property wiht my the type of my class is displayed. Nice :-) From my code, I can create a new instance of my class and assign it to the application settings, save them and read them again. This works for all fields in my class wh ...Show All
willthiswork89 Combobox dropdownlist with duplicate items
I have a bound combobox wich shows duplicate DisplayMembers, but with different ValueMembers. Think of a list with invoices where one person has several invoices. His name is several times in the list. When the dropdownlist opens, it always select the first of the DisplayMembers (for that name), although another DisplayMember (and ValueMember) was chosen before. This is a part of the code I use to bind the data to the combobox: DataSet ds = new DataSet(); cn.Open(); adapter.Fill(ds, "dbo.GetNamesAndInvoiceList"); cn.Close(); this.cboInvoiceNames.DataSource = ds.Tables[0]; this.cboInvoiceNames.DisplayMember = "DisplayName".ToString(); this.cboInvoiceNames.ValueMember = "PK_InvoiceID".ToString(); How ca ...Show All
επιστημη How to scale controls to 96 Dpi in 120 Dpi environment
Hello all, I'm stuck on a really serious issue. I need to scale any type of control (e.g. DataGridView) to 96 Dpi in a 120 DPI Windows environment. How can I do this. It would be even better if there is a way to have my whole application (C#) run in 96 DPI and ignore the 120 DPI Windows setting. Is there a way to do this type of thing Please help me on this one, I'm writing this system for someone who runs the app in a 120 DPI environment. It's a desktop app. I see there's a SetProcessDpiAware function that one can use, but I've seen no practical example of how it is used. Could someone please help Thanks in advance Nathanael I hav ...Show All
Michael Herman - Parallelspace can we use sytem.data.oracleclient and oracle.dataaccessclient parallely ?
hi (modified post) can we create objects like this 1) create connection,dataadapter, commandbuilder using the oracle.dataaccess.client Namespace. 2) and the datatable using the system.data.oracleclient Namespace. because, the Oracledataadapter creates one dataset for each one dataadapter.resulting many datasets (more maintenance.) But while using the datasource configuration wizard we get a single dataset for all the tables. Will this create any problems Thanks in advance Mohan Raj K. hi Reply please. ...Show All
RichardW411084 Label within a label? C# and .NET
Hi guys. I have an interesting issue. I have labels created dynamically at runtime in my app, and placed in a flow panel. What I need is for some of those labels to have an extra label with a single digit placed in one corner. What I have so far done is created a class which derives from a label AND has a label in it. i.e. class Slide : Label { public Label l_IndexLabel; public Slide() { l_IndexLabel = new Label(); } public void SetUpSlide() { l_IndexLabel.Text = this.Tag.ToString(); l_IndexLabel.Size = new System.Drawing.Size(10, 20); l_IndexLabel.BorderStyle = BorderStyle.FixedSingle; l_IndexLabel.Location = new System.Drawing.Point(this.Right - 10, this.Top + 20); l_IndexLabel.Show(); l_IndexLabel. ...Show All
BenMo Developing a UI with a DataGridView Control
I found that I could construct a table defined with appropriate columns with added data in rows which I could edit, add more rows or delete rows. The content of this table with any indicated ccchangespersisted - it survived closing and re-opening the table I found that above table could fully populate a DataGridView control on the Form-Form1 of the project. Gudance notes indicated that I should expect to be able to edit, add rows, and delete records in the UI which would be carried through to the main table of the database. - this did not happen. Add and save data buttins int he UI seemed to have no effect at all. Moreover if the columns included a computer column specification with a formula and Yes to inicate that the enty is per ...Show All
ykgreene how to query a sql6.5 db from vb.net 2005
You can not use a standarad system.data.sql to connect to a sql6.5 db how can I query it with out using an open query to a 2003/2005 db You need to use System.Data.OleDb. http://msdn2.microsoft.com/en-us/library/a6cd7c08(VS.80).aspx ...Show All
