AlCant's Q&A profile
Windows Forms Just a small suggestion.
Just a thought, but since when you right click on the toolbox and click customize it takes so long to load..couldnt the default tabpage be the .net Framework components..it just seems to me that in a .net application I would want to use .net components, and I'd rather see the .net ones than COM upon toolbox config startup..does that make sense or& ...Show All
Visual C# Create a context menu
Hi all, I would like to create a context menu. May I know how to create it from the design view Is there any tutorial Please help. Thanks This is the simpliest design-time way to create a context menu: Select the ContextMenu component from the toolbox, then drop it to your form. Regards, -chris ...Show All
Visual Studio Excel Export formatting problem
Hi reader , When i export my report to excel , empty rows appear(not actually visible ,but they are there with a small height) between data rows. What might cause that Does anybody have an idea Your problem is that you have empty spaces in between the rows. Look in design view to make sure all the fields are parallel (use guides) then make the details section as low in height as you can. If that doesn’t work, do you have any groups If so make sure that if you do not need the group footer(s) you have suppressed it, same thing with the page and report footers (If I am exporting ...Show All
SQL Server Rendering reports programatically
I have just migrated all my SSRS 2000 reports to a different server on SSRS 2005. As a quality check I would now like to render all my 2005 and 2000 reports programatically to a directory so I can compare them. I have a listing of the reports I want to run allong with their parameters (from the execution log). How would I go about rendering them from this list There were some changes to all of the renderers from 2000 to 2005. As such, I wouldn't be surprised if there are some slight changes. The data renderers (XML, CSV) are probably your best bet for doing comparisons. ...Show All
Windows Forms Setup Project: Execute vsi file inside the msi
I assume the title says it all but anyway; I am creating a setup project and adds my exe's and dll's to that project. I now want that, as part of the installation, a vsi file should be executed. How do I indicate that in the setup project Niels In general, you can use an install custom action to run a program you write. If Visual Studio is on the system I believe the program could just do a shell open on that file and that will start it unzipping. If VS isn't on the system then the vsi extension will be unrecognised, but I suspect that the System.IO.Compression classes could be used to unpack it. ...Show All
Visual J# Problem with C++/CLI and J# interaction bug
I'm having a problem with C++/CLI and J#. I am writing a class library in C++/CLI and want to use it from J#. I narrowed down my code and wrote a repro: a.cpp: #using <mscorlib.dll> #include <stdio.h> using namespace System; namespace AA { public ref class A { public : unsigned long Print() { printf( "Hello\n" ); return 0; } }; } b.jsl: import System.*; import AA.*; public class Test { public static void main( String [] args) { A a = new A(); a.Print(); } } To compile do: cl /clr /O2 /MD /c a.cpp link /dll /out:a.dll a.obj mt -outputresource:a.dll;#2 -manifest a.dll.manifest vjc /out:b.exe b.jsl /reference:a.dl ...Show All
Visual C++ Thread again!
I changed my code. to this and it's work properly . but I can't to add " str " to a listobx. what should I do void CThreadTestDlg::OnRunThread() { BOOL T=TRUE; Suspend(T); } UINT CThreadTestDlg::ThreadSimple(LPVOID pParam) { CWnd *pWnd=new CThreadTestDlg; CTest *pTest=(CTest*)pParam; BOOL b=pTest->SetTrue(); while(b) { CString str =pTest->RandString (); pWnd->MessageBox ( str ); ///----m_listbox.AddString(str)----------------error. /// CListBox m_listbox is bublic member in CThreadTestDlg } return 0; } void CThreadTestDlg::Suspend(BOOL bSus) { if(!bSus) { if(m_pThread) { HANDLE hThread ...Show All
Visual C# Create updates of my Setup project…
I make a Setup Project in Visual Studio 2005 for my application. All works well but when I’m going to distribute an update in a new builded version of my application my clients have to first uninstall my application and then reinstall the new one. I get the following error when I try to install my app again: Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel. How do I do to make the new release be installed over the old one The Setup projec ...Show All
Visual Studio ParameterFieldCurrentValueException when exporting or printing crystal report
Hi. I get the ParameterFieldCurrentValueException exception when I try to export or print a crystal report (I am using the version bundled with Visual Studio 2005). The report works fine until I add a sub report to it. The sub report has 1 table but I have not put any of the fields onto the report. Neither does it have any parameters set up so I can't see why it is looking for parameters. Thanks, Will. Yeh, I have exactly the same problem as soon as you have a sub report on the main report and try to execute it, it throws a missing parameter exception. I created a app in the Beta 2 release of VS 2005 an ...Show All
Software Development for Windows Vista Page
How can I set the page size and other PageSetup parameters when creating and printing an XpsDocument PrintTicket pt = printQueue.UserPrintTicket; pt.PageMediaSize.PageMediaSizeName = PageMediaSizeName .ISOA5; seemed like the obvious thing but it is readonly. Thanks Michael penny finally dropped. :) PrintTicket pt = queue.UserPrintTicket; pt.PageMediaSize = new PageMediaSize ( PageMediaSizeName .ISOA5); but the following return nulls:- Double printableWidth = pt.PageMediaSize.Width; Double printableHeight = pt.PageMediaSize.Height; Shoul ...Show All
Windows Forms auto compelete textbox in win forms vb.net
hello all, i am making a form inwhich some key word is typed and searched for. I want that if a key word is typed many times to search for, then it should be saved some where and when first letter is typed next time, the whole word or matching words should start appearing like: if three words (master,member,micro) are searched for frequently, then when type 'm' next time, master,member and micro should start appearing just below the textbox, like it happens when we search on Google. Please write to me soon Autocompletion support isn't available in v1.x. You can add support for it but it isn't easy. Probably the easiest w ...Show All
Visual Basic Number Only Input
First of all, Sorry of this is a really simple question. I'm a bit of a noob. Is there anyway to make an input box that will only allow the input of numeric characters Thanks in advance. EDIT: The following code was taken straight out of help and was used to allow only numbers to be entered into a textbox. ' Boolean flag used to determine when a character other than a number is entered. Private nonNumberEntered As Boolean = False ' Handle the KeyDown event to determine the type of character entered into the control. &nbs ...Show All
SQL Server Data Source Views
I'm looking for examples of using Data Source Views as data source within a Data Flow. I have looked through the code examples supplied with the CTP but no joy. Thanks Al Alasdair, yes, this is possible. I don't know how to set it up specifically but I know you can definately do it. -Jamie ...Show All
SQL Server Random access in a result set
I use an SQL task to produce a result set which I store in a package variable. It works fine to access the result set in a script task by first casting it to a ADODB.Recordset, and then enumerating it and accessing the rows in the given order. But is there a simple and clean way to randomly access the result set In other words to repeatedly select a random row from it One thought I had was to convert the result set to some sort of array which can be randomly indexed. But I didn't find out how... I'm not interested in creating an array by looping through the whole result set and inserting the row ...Show All
Software Development for Windows Vista Getting ready to install Vista
Hello, On a new hardrive so can you tell me the best set up please i.e. do I need two partitions etc and if so what sizes. Sorry if I posted this in the wrong place but I am new to the beta program and these forums. Thanks for your time. Hey, Glad to hear that it is now working! For 5112 (Beta 1), there's an issue that USB modem doesn't work properly. However I'm unaware if this is resolved in the 5219 build. For booting from a USB Device (external hard disk), this isn't a supported scenario, due to numerous reasons. You can't install Windows (any version) on external hard disk. Also, the product key that (s ...Show All
