Software Development Network Logo
  • Audio and Video
  • SQL Server
  • Visual C#
  • Windows Forms
  • Microsoft ISV
  • Windows Vista
  • Visual Studio
  • Smart Devicet
  • SharePoint Products
  • Visual Basic
  • .NET Development
  • Visual C++
  • Game Technologies
  • IE Development
  • Visual FoxPro

Software Development Network >> Alan M.'s Q&A profile

Alan M.

Member List

PJFINTRAX
Yorik
prashanthkumarhv
Rod Yager
Darren Tao
Dan.Jurden
ccyt
jgd12345
CinoV
AE_Cory
J. Clark
CIB
Amitai
GRK
AlbertG
Kea
Alanu
ItsMe!!!
John Oliver (UK)MSP, VSIP
shades921
Only Title

Alan M.'s Q&A profile

  • Software Development for Windows Vista Elevated privileges for MSI Package in Vista.

    Hi, How does one build in Vista a MSI package with elevated privilege such that UAC dialog pops up asking for user consent to proceed (Allow /Cancel) when the MSI setup is clicked upon I tried using the Orca tool making few changes as mentioned in a number of fourms but to no avail. Could anybody guide me in achieving the above mentioned elevation in MSI . Clarker wrote: I added a Custom Action that does the necessary file copy functions by calling a DLL. This will almost certainly break in various managed deployment scenarios. You should reserve custom actions only for things that absolutely cannot be done via the standard MSI tables. ...Show All

  • Windows Forms Saving Files in MDI

    Hi... I Need to be able to save different MDI child windows each with many different fields. How would I do this Thankee Thanks for your help, though it sounds like this would only be useful if you wanted to save every MDI window open. what I want to do is, when you click the save button, to only save the active MDI window, and the problem I am getting is that my check for what type of window the active child window is, is always returning a null PS: I am creating a tool for organizing rock bands ...Show All

  • Visual Studio Express Editions problem with assigning values to cells in excel

    Hi. VB don't want to asign values to excel cells, this is my code: Dim oExcel As New Excel._ExcelApplication Dim oWorkbook As Excel.Workbook = oExcel.Workbooks.add oExcel.Visible = True oWorkbook.Worksheets.Add() Dim xlws As Excel.Worksheet = oExcel.oWorkbook.Worksheets.Item(1) xlws.Cells(1, 2) = "Number" Please help me!!! Any sugestions now everything is fine but when I want to create that excel file error apperas in this line: Dim oWorkbook As Excel.Workbooks = oExcel.Workbooks.add ...Show All

  • Visual C# Form MessageBox mouseleave

    Hi, I am using a form's showdialogue property to show the form as a messagebox. I would like the functionality so that when a user mouse over the form and then mouses out - the messagebox would close automatically. However, the mouse out event doesn't fire all the time, it fires sporadically. I'm not in love with this event, I would be glad to use another one if it achieves the same result. Any help Basically, I just want to call the dispose method of the form when the user mouses over and then out. Oops, I think we're having a miscommunication. First, I mispelled unload. It should read onload. This is the event handler that executes when the form loads. I figured it out. I have a flowlayoutpanel that is docked on the form ...Show All

  • Windows Forms Dynamic Filling of TextBox AutoComplete not working

    Hi guys,   i would like to fill the textbox autocomplete stringcollection "on the fly" while typing. i don't want to fill the collection while initializing, 'cause it's too much data: the sql server-table has about 100.000+ rows. the filling takes too much time and the "autocomplete-popup-find-something-box" itself is getting too slow, too. my configuration: .NET-Framework: 2.0.50727, System.Windows.Forms.TextBox TextBox-Properties: AutoCompleteSource: CustomSource; AutoCompleteMode: Suggest i tried several different things... 1. i did put this code in the “TextChanged”-event, but i think it's 'too late' there: private void textTiteUltTest_TextChanged( object sender, EventArgs e) {     ...Show All

  • .NET Development Error when 2 programs connect to one MDF database file simultanously.

    Hi I have a web application (ASP.NET) that connects to a database file the connection string is : " Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" and I have a second application that uses the same connection string to connect to a database but if I run both projects I get the followind error:- 2006/11/06 03:36:00 PM : System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\iBaseService\bin\Debug\ASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owni ...Show All

  • Smart Device Development How to remove the "x" button at the upper and right corner on the interface?

    Hi, I am using VB.net and Visual Studio 2005 to compile a program for a Pocket PC with MicrosoftR Windows Mobile 2003 Second Edition. When every interface is opened, there is a "x" button at the upper and right corner on the upper blue bar of the interface. This blue bar is always there, and users can click this "x" button to close an interface. However, I would not like to ask users to use this "x" button to close an interface. What I want to do is just to ask users to close interface by clicking a "Exit" button to close interface, and this "Exit" button is put onto the interface through the design part of Visual Studio when I compile this program. So How can remove the "x" ...Show All

  • Visual Studio Tools for Office Opening OutLook problem

    Dear All, I'm trying to open outlook 2003 via my application in C# in VS2005. I just copied the sample from this link http://support.microsoft.com/default.aspx id=819398 and tried to run the application but I got following exception in this line: //Automate the Outlook mail item. Outlook. MailItemClass mItem = (Outlook. MailItemClass )doc.MailEnvelope.Item; Additional information: Unable to cast COM object of type 'System.__ComObject' to class type 'Microsoft.Office.Interop.Outlook.MailItemClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however ...Show All

  • .NET Development How to get Dictionary<Tkey, TValue> entry information through reflection?

    I have been working on some code that probe through the entries of a generic dictionary Dictionary < TKey , TValue > , using reflection. Unlike working with Hashtable, it's not easy to find out the entries' key and value information. Here is the code depict the problem. Suppose I have a class hold two fields: public class MyClass { Dictionary < string , DateTime > m_dateTimeDictionary; Hashtable m_dateTimeHashTable; } I have an instance of the class and its type info: … MyClass myClass = new MyClass (); Type myType = myClass.GetType(); … I have some code that probe through the reflection: foreach ( FieldInfo fi in myType.GetFields( B ...Show All

  • Visual C# Executing Exe

    Ok i added a exe file to my solutions explorer and i wanted to know what code i needed to execute the exe in my form 1 Here it is: public static void RunEmbededExe(string exeName) { int read = 0; byte[] buffer = new byte[2048]; Assembly asm = Assembly.GetExecutingAssembly(); using (Stream stream = asm.GetManifestResourceStream(asm.GetName().Name + "." + exeName)) { using (FileStream fs = new FileStream(Application.StartupPath + "\\" + exeName, FileMode.Create, FileAccess.Write)) { using (BinaryWriter bw = new BinaryWriter(fs)) { while ((read = stream.Read(buffer, 0, buffer.Length)) > 0) { bw.Write(buffer, 0, read); bw.Flush(); } } } } ...Show All

  • SQL Server Rebuilding System Databses

    I have just spent 2 days trying to rebuild my system databases after a crash. Each time I issued the start /wait setup.exe etc . command, the task would fail with the error: MSI (s) (80:10) [12:07:34:815]: Product: Microsoft SQL Server 2005 -- Error 1706. An installation package for the product Microsoft SQL Server 2005 cannot be found. Try the installation again using a valid copy of the installation package 'SqlRun_SQL.msi'. The initial install of SQL was run from a network share. The rebuild was from CD. It seems that the original installation source paths are retained in the registry and are not ignored when attempting a rebuild. Searching the registry for 'SqlRun_SQL.msi' throws up ...Show All

  • .NET Development cross thread exception in background worker_runCompleted?

    I have read about threading and know that updating GUI components in a worker thread is a no no. I thought when using a background worker on the runworkercompleted event that it was back on the main thread and you can edit the components. I posted my code, i get a cross thread exception when trying to update the labels in the switch statement. thanks private void bgwCurrentWorker_RunWorkerCompleted( object sender, RunWorkerCompletedEventArgs e) { if (e.Error == null ) //background process successful 'e' should be xml string { string sWeather; sWeather = ( string )e.Result; if (sWeather.Contains( "Success" )) { XmlReader reader = XmlReader .Create( new System.IO ...Show All

  • Visual Studio VSS 2005 and Visual Studio 2005 Professional Edition

    Is Visual Source Safe 2005 included in Visual Studio 2005 Professional Edition I haven't been able to find information on this anywhere.  We are worried that we may have to purchase Visual Studio 2005 Professional Edition and also purchase Visual Source Safe 2005.  Previously, we only had to purchase Visual Studio .NET 2003 Enterprise Architect which included Visual Source Safe 6. Any information will help. Thanks.     Hi Alfredo, So is it possible to boundle these two products in future Thanks. Jones Ekvall ...Show All

  • Visual FoxPro Error loading file

    Hello, I can't open same forms and report, I getting error "Error loading file - record number n. "object" <or one of its members>. : Memo file c:\mypath...\my database.dct is missing or is infalid Is there a way to open these file I will deeply appreciate advices or ideas.. Thanks. You can check: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_foxhelp/html/err1881.asp ...Show All

  • SQL Server server groups

    is there a way to enumerate through existing server groups Im trying to create children server groups. Imports Microsoft.SqlServer.Management.Smo Imports Microsoft.SQLServer.Management.Smo.Server Imports Microsoft.SqlServer.Management.Smo.RegisteredServers Dim svr As Server = New Server() Dim grp As ServerGroup = New ServerGroup( "Test" ) grp.Create() '--register server Dim regSvr As RegisteredServer = New RegisteredServer(grp, "NTSQLDEV02" ) regSvr.ServerInstance = "NTSQLDev02" regSvr.LoginSecure = True regSvr.Create() This creates a group and registers the server. Im wanting to create subgroups like ...Show All

©2008 Software Development Network