rchokler's Q&A profile
Visual Basic mdi parents and mdi child
Hi, I am using mdi forms to design my application. Now I have menu with menu "windows", when new form is opened, a opened form text will be added in Menu "windows", and when user use mouse to display any opened form at the top, but right now ,I would like to use codes to realize this function, what can I do because I will use buttons as well. thank you yhong: 1...Add menustrip to MDI form 2...add menuitem to menustip named "WindowsToolStripMenuItem" 3...set menustip mdiWindowList property to "WindowsToolStripMenuItem" :) Ibrahim ...Show All
Visual Studio Generate .chm file based on my own .htm or .doc...etc files
Hi, Is there way in sandcastle to generate the .chm not only based on .dll,exe.. but, based on my own .htm, .doc, ...etc Thanks, Naveen It may compile them into the help file but they won't show up in the table of content unless you manually modify the .hhc file too. As an alternative, you can use the Sandcastle Help File Builder available at http://www.codeplex.com/SHFB . It has extensive support for additional content including replicating the folder structure in the table of content and support for additional tags to sort the content, set the default topic, etc. Eric ...Show All
Visual Basic Creating visualizations like WM, Jet Audio !?
Hi there , I am creating a media player using MCI API's , but I want to create Visualization just like every media player you use . If you have any idea please help me . If you are doing this yourself, rather than creating Windows Media Player visualizations then anything goes. Start reading here to pick up some ideas... ...Show All
.NET Development problem of callback function call C# to C++
Hello, My problem is the following : - I have a DLL in C++ which is called by my application in C#, a callback function pointer is passed to this DLL in order to be called later for progress purpose. - It seems to be OK but when the C++ DLL call back the C# application using the callback function pointer, an error is raised. It seems that the prototype of the callback function is wrong here is my code sample : { // callback prototype public unsafe delegate int PROGRESSCALLBACK( int reader, void* pUserData, int progress, int status ); // C++ DLL function called [DllImport( "ePerso.dll" )] public static extern unsafe int ePersoRead( int iReader, int iBlock, [MarshalAs( UnmanagedType.FunctionPtr )] PROGRESSCALLBACK pFnCallBack, void* p ...Show All
.NET Development How do you copy in a newer version of the current exe?
I am running my app on a LAN. When I produce an upgrade, it is not feasable to run the upgrade on all the PC's, so I am wanting to check the version of each file I am using on statup, and compare to a central folder. Any file that has been changed in the central folder will automatically get copied. I then close the app, so the user will restart with the new versions. This all works fine, except I cannot copy in the new exe, as it is being used. Is there any easy way to copy this file in, either on exit, or on startup Also http://www.microsoft.com/downloads/details.aspx familyid=C6C09314-E222-4AF2-9395-1E0BD7060786&displaylang=en ...Show All
SQL Server Error converting data type varchar to float.
Hi, I am experencing a data type cast issue in T-SQL, basically our application comtains both numeric and non-numeric data in the same column, I want to retrieve the numeric data only. Assuming a table has one column create table TT(c1 varchar(20) ) and insert 2 rows into the table insert into TT values('100') insert into TT values('test') Now if I want to do numeric comparison on column c1, I will get an error, e.g. select * from TT where c1 >100 because SQL server trying to convert 'test' to a number impcilitly. I tried to create an UDF to handle the non-numeric data conversion, e.g. if the data is numeric then return the number, if the data is non-numeric, then return a NULL. create function numcas ...Show All
Visual Studio Express Editions using codejock
hi i am using codejock and i had difficulties with skinframwork to load a new skins on my project. any one can help with it This website looks like the best place to ask for help... ...Show All
Visual Basic while inputbox
Hi, i'm using vb 2005. my question is: i have this code: Dim x As String = "" While IsNumeric(x) = False x = InputBox( "Enter a number" , "New Value" , "0" ) End While How can i exit a while statement if the user pressed the cancel button in the inputbox Thanks... Personally, I wouldnt use the input box for a number of reasons 1. Its not easy to determine between a blank string returned or cancel being pressed. 2. It doesnt permit you to validate the input prior to clicking closing the form. So I prefer to create my own dialog forms - which are very easy to create with a return property. I can call this dialog which is easy to ...Show All
Windows Forms ClickOnce Deployment Issue - File Has Different Computed Hash Than Specified In Manifest - Urgent!
Hello, originally posted this in the VB General forum - didn't get much response, so I thought I would post it here. I'm trying to deploy a ClickOnce Windows app. I have successfully installed it in the past. I made some changes to the .mdf file I have referenced in my application (I made the changes in SQL Server). When I published the app on another machine, I started receiving the error message "File ....mdf, has a different computed hash than specified in manifest". I tried a number of different suggestions that people have made on these forums, but no luck - I tried building the app twice, then deploying; I tried manually updating the revision number; I tried creating a new Test Certificate; I tried signing the assembly; I t ...Show All
.NET Development Web Service Security Issue
I developed a very simple web service program which reads data from Active Directory. I put it on our IIS6.0, when I opened service.asmx, I saw the web method: GetADData, but when I tested it, it gave me an error,"System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.". Can anyboday help on this issue Thanks! To read data from AD you should have created a DirectoryEntry class instance at some time, right Make sure you provide to that instance a valid AD account with enough permissions for that.... you can use the following contructor for that: public DirectoryEntry ( string path , string username , string password ) Rgds Rodrigo ...Show All
Visual Studio 2008 (Pre-release) General Question Navigate to a Page threw a Window
I have a Window Application (Window1) and was woundering if i was to add a Page . If I can Navigate to that Page with in Window1 Same principle as in the Media Center 2005 on my System or the Media Center in Vista thats on my other system...I want to use a Button for Navigation ,not a NavigateUri using a Hyperlink...In the Applications = Code + MarkUp book i just got it shows something similar more along the lines of a Wizard..but i'm not making a Installation Wizard thou.. Thxs Rattlerr right now i have a Frame in a Grid thats in Window1...Using a Timeline for MouseEnter to trigger the frames Opacity from 0 - 100 fading in the Frame...The only problem i seem to be having which is weird because i ...Show All
Visual Studio Team System Missing fields in build data
Hi, I am enumerating builds using BuildStore.GetListOFBuilds() and the returned BuildData collection seems to be missing some fields, such as TeamProject & BuildMachine, which are null. Any reason why these fields are null Any other way of retrieving the build machine for a specified build Thank You, Shay ...Show All
Visual J# library.xml not created when called from MSBuild
Hi; If we build out J# based DLL using VS 2005 or nant - it created WindwardReports.dll and WindwardReports.xml. If we build it using MSBuild, no WindwardReports.xml. We have a C# library also and it does have the .xml file built. Any ideas thanks - dave Support, You can drop this issue as it is a known bug. --TeleRiddler ...Show All
Visual Studio Can not install Microsoft SQL Server 2005 Compact Edition Tools for Visual Studio 2005
I am trying to install Microsoft SQL Server 2005 Compact Edition Tools for Visual Studio 2005 SP1, but I keep getting the following error, then the installer closes: The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program I have Visual Studio 2005 SP1, MS SQL Compact Edition runtime, and MS SQL Compact Edition SDK all installed. Any ideas why this wont install Extract the msp from the exe with: ssce31vstools-enu.exe /extract:c:\temp Run the following command: msiexec.exe /l* c:\temp\ssce31.log /update c:\temp\ssce31vstools-enu.msp Now you have the log file c:\temp\ssce31.log, take a look at wh ...Show All
Windows Forms Merging MenuStrips
How are you supposed to create merge menus using the MenuStrip control in VS2005 Beta 2 I can't successfully get MDI child forms merge with the MDI parent using the merge index, and I'm not sure if I'm just not doing it right or if it is a bug. Can someone please point me in the right direction Merging with ToolStrips in significantly different than previous versions. Here are some guidelines... In the case of an activated MDChild, we automatically merge toolstrips to the MDIParent. You need to create the source strip control that contains the items you'd like to merge into the parent. There are two aspects of the source strip - it needs to contain the items to be merged and the structure to "match" ...Show All
