kamuixkotori's Q&A profile
Visual Studio Express Editions MDI Child Once Only please
Good Afternoon All, or morning or whatever, I'm sure one or two of you have come accros this and the answer is probably staring me right in the face, but how do I get the child forms to be shown once, for example.... .... I have my MDI Form, a menu etc under one of my menu items "&Help" I have, "&About", "&Support" and "&Licence" now I only what each of these forms to be shown once. I have tried: about f = new about(); f.MdiParent = this; f.ShowDialog(); but this just throughts an exception (cant remember of the top of my head) some thing like this form can not be displayed in this manor. When I get home I'll make a note of the error and post it here (if I rem ...Show All
Windows Forms Help on PropertyGrid
Hi there! Is there another way of setting the properties in a PropertyGrid besides using propertyGrid.SelectedObject or propertyGrid.SelectedObjects I would like to load the properties without having the PropertyGrid read them from myObject. For example, is there a way of doing something like: propertyGrid.SetProperties (collectionOfProperties) or anything similar to that You can do two things,set the Browsable attribute for a property to false,if you dont want to see the property in a property grid. [Browsable( false )] public string Name { get { } set { } } Will this help you ...Show All
Visual Studio Express Editions I can't install!
This is the error: Error 32003.File 'C:\Program Files\Microsoft Visual Studio 8\Common 7\Tools\vsvars32.bat' could not be opened for write. It won't install! Can anyone help I am out of ideas but maybe this thread will help you further. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=889624&SiteID=1&mode=1 ...Show All
Visual Basic Binding a dataset to a combo box does not behave as I expected.....
Hi All I wanted to use databinding to facilitate a lookup up table kind of thing. You all know the scenario, the user selects "United Kingdom" from the combo box, but the value stored in the db is "GB". I have therefore created dataset that contains 2 fields; code and description. In this case the app is a publishing app and the data is for the user to select a media type, so the typical values would be Code =1, Description = "Printed" Code =2, Description ="Electronic" etc I do not want the binding to update the dataset, I handle all SQL updates through my update classes, I just want to know what value to store. Here is the code I used to bind/populate the combo ...Show All
Visual C# Stack and Heap Data Structure
hai all, value-type uses Stack Data structure, for method calls. ref-type uses Heap Data structure, for method calls. And my question is, What is Heap DS Anyone pls explain me . Also in this regard, how it is used with ref-types .That is how heap is used to change the original value Also, how is Stack DS used with value-types thanks.. Check this out: http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory01122006130034PM/csharp_memory.aspx ArticleID=9adb0e3c-b3f6-40b5-98b5-413b6d348b91 ...Show All
Visual Studio Tools for Office Stack overflow in calling Range.InsertXML()
I'm using Range.InsertXML() to display an xml blob on a particular area on the document. The xml blob comes from the database and I use recursion to insert all records on the word document. I'm getting a stack overflow error when the records gets too big (50+ pages). I saw a thread on stack overflos in excel and it suggests using Application.EnableEvents set to false before calling a method. Word don't have this event. Any ideas how to prevent this error Recursion... Any idea how many "layers deep" this is getting Are you concatenating all the information into one "xml blob" before using Range.InsertXML Or are you using the method "rapid-fire" into the document ...Show All
Windows Forms Need to change printer settings.. how?
Hello, I need to change the Duplex setting on a printer. I can get the printer object and probe for the duplex setting, but cannot change it. Here's what I have so far: code: ===== Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objPrint As New System.Drawing.Printing.PrinterSettings() objPrint.PrinterName = "<printer name>" objPrint.Duplex = Printing.Duplex.Simplex TextBox1.Text = objPrint.CanDuplex End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objPrint As New System.Drawing.Printing.PrinterSettings() objPrint.PrinterName = "<printer name>" ...Show All
Windows Forms Command-Line for Setup.exe
Hi I have a setup.exe file which will ask from user to select the path and the user a/c while install. Need to execute this file from the command prompt and user should not get these prompt messages by default, the install should process with particular folder (e.g. C:\MyApp) without asking inoput from user. How to implement this Any help Thanks and Regard Thanks a lot... There is a little change msiexec /i C:\MyApp.msi TARGETDIR=C:\MyApp /quiet ...Show All
Visual Studio Visual Studio Addin Menus - Internationalization
I am having a large problem with adding menus in Visual Studio. When I run my addins on a standard en_US locale there are no issues. The problem popped up when I internationalized my addins. For Visual Studio 2005 I found that I needed to use the translated version of "Tools" in order to add my menus. The problem was that I needed to provide this translation myself. I would like to move away from this dependance. Is there any way to access the menu in a more basic way than this As in a way to reference the ResourceManager that Visual Studio uses to translate "Tools" in the first place The real problem is that when I run the Visual Studio 2003 version of the addin the "tools" menu is not found - even though the string that I am using to ...Show All
SQL Server Help with converting code: VB code in SQL Server 2000->Visual Studio BI 2005
Hi all--I'm trying to convert a function which I inherited from a SQL Server 2000 DTS package to something usable in an SSIS package in SQL Server 2005. Given the original code here: Function Main() on error resume next dim cn, i, rs, sSQL Set cn = CreateObject("ADODB.Connection") cn.Open "Provider=sqloledb;Server=<server_name>;Database=<db_name>;User ID=<sysadmin_user>;Password=<password>" set rs = CreateObject("ADODB.Recordset") set rs = DTSGlobalVariables("SQLstring").value for i = 1 to rs.RecordCount sSQL = rs.Fields(0).value cn.Execute sSQL, , 128 ...Show All
Windows Forms DataGridView and focus
Hi, This should be pretty easy to fix, but I just cannot find the C# code! I have a datagridview and some buttons to move the rows up and down. What I'm missing is the focus on the row. I think the code should be something like: this .dataGridView1.CurrentRow .Index = row - 1; But this is a read only method. Anybody knows Thanks, B. Hi, Bertrand Caillet You can use the BindingNavigator control to navigate the records in the DataGridView instead of adding buttons by yourself, bind the BindingNavigator and DataGridView to the same datasource, then them will stay in sync. sample code as: DataSet ds = new DataSet ();   ...Show All
Visual Basic Number too big? (1000000000000000000000000)
I'm using a number in my program (a yottameter, or 1,000,000,000,000,000,000,000,000 meters) and I get an error that says overflow. How can I overcome this Using a double , however, will loose you significant digits - which may or may not be important to you. Even a 64 bit integer ( long ) will not work in this case. However, you could use a decimal value which has 29 significant digits (to your 25 significant digits). ...Show All
Visual Studio Tools for Office UDF FOR EXCEL 2003 USING VSTO 2005 SE.
hi guys i am pretty new to vsto 2005 SE. i have created a add-in using VSTO 2005 SE. i want to write a user defined function say Add(int,int). when we write in the cell =Add(1,2) this will return us the sum. i want to ask where this Add function will be declared and what other refrences are required. i want to know how UDF are used and declared . please enlighten with the above example if possible. otherwise give idea in steps. plzz help me. hi thanks but this could not solve my problem. when we create add-in using vsto 2005 SE we get two methods as: private void ThisAddIn_Startup(object sender, System.EventArgs e) and private void ThisAddIn_Shutdown(object sender, System.EventArgs e) so dont have method with name : ThisWorkbook_St ...Show All
Visual Studio Team System Team System Warehouse Problems
Hello, About five days ago I started seeing a bunch of errors in the Windows Application Event Log. I've been searching for solutions for the past few days with no luck so now I'm posting here. Here's the errors I'm getting in order: ============================================================== Event Type: Error Event Source: MSSQLServerOLAPService Event Category: (289) Event ID: 19 Date: 9/20/2006 Time: 9:56:27 AM User: N/A Computer: TEAMSERVER Description: Errors in the metadata manager. An error occurred when loading the Changeset dimension, from the file, '\\ \D:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\TFSWarehouse.0.db\Changeset.200.dim.xml'. For more information, see Help and Support Center at http://go.m ...Show All
Windows Live Developer Forums FF Polyline ReArraging?
I am having very strange behaviour in FF which seems to take the LeftTop edge of the last Poly I add and reArrange all of my other Polys' starting at that LeftTop edge, strangley keeping their proper shape...in certain cases even cropping the regions. Live Example: http://mssa.coba.usf.edu/mapControl/ Use IE to see proper result first, then watch it go nuts in FF. I'd paste the source, but the pages are all ASPX and ASCX - you all can see a good "glued" version of the code being delivered to your browser. Is there something I need to do differently, maybe do it on separete layers or what Yep, this is a known issue and a bug has been filed about it. As always, I can't say anything about when you'll see the ...Show All
