visual-studio-2008

Set gridview's column width [duplicate]

≡放荡痞女 提交于 2019-12-12 00:43:52
问题 This question already has answers here : set column width of a gridview in asp.net (6 answers) Closed 6 years ago . I have gridview as follows: But when i enters any larger with text in it, its column with gets increased as follows: In this we can see that when i have entered large text English Question column's with has got effected. I wanted to keep it fix. For that i added <ItemStyle HorizontalAlign="Left" Width="45%" /> in grid's templatefield but its not working. I also made wrap="true"

How do you use LsaEnumerateLogonSessions in C#?

那年仲夏 提交于 2019-12-11 23:39:15
问题 In a C# Windows Forms Application, I'm trying to get a list of the users currently logged into a workstation (both local and domain users). Every search about this has led me to threads mentioning "just use LsaEnumerateLogonSessions". So...how do you actually use this? The MSDN page is very sparse and doesn't seem to offer any clues. 回答1: You should use Cassia, an open source wrapper. ITerminalServicesManager manager = new TerminalServicesManager(); using (ITerminalServer server = manager

IE8 + Visual studio error

眉间皱痕 提交于 2019-12-11 23:37:48
问题 I finally let windows nag me into upgrading from IE6 to 8. Now in visual studio 2008 when I try and edit an MFC dialog box, I get a "an error has occured on this page - continue running scripts? error" The add variable screen has a warning "an add-on for this website failed to run" Does Visual Studio 2008 work with IE8? Is this some mysterious plot to stop people using MFC? (times are hard - I have to earn a living) Any idea what magic setting I set to fix this? edit - thanks to Mr Ghost, the

Visual studio 2008 exits as soon as I open it

浪子不回头ぞ 提交于 2019-12-11 23:24:25
问题 I have a problem with my Visual studion 2008. It exits as soon as i open it. I tried these options, devenv /ResetSettings devenv /SafeMode devenv /resetuserdata devenv /resetskippkgs even i tried re-installing Visual Studion 2008. Is there any way i can fix this issue. thank you. Prashant. 回答1: Create a new user account and try using that in order to determine if the problem is due to your user environment or if the problem is system-wide. If it does not occur with the new user, clear your

Debug Techniques: Visual Studio 2008 Process fatal crash after debug of WPF application

谁都会走 提交于 2019-12-11 23:09:11
问题 I have a relatively large C#/WPF Visual Studio 2008 solution that I am trying to test and synchronize across 2 developer's computers. On my computer, I am able to build and debug (run) the project successfully without errors. On the second computer, I am able to build the solution without any errors. When I attempt to run the solution, Visual Studio starts the process but about 3 seconds later the entire development platform exits. Before it exits I briefly see one of our .xaml files opened

“Could not create the file”, “Access is denied” and “Unrecoverable build error” in building setup project in VS 2008

做~自己de王妃 提交于 2019-12-11 22:34:36
问题 When building a setup project I get a message: Error with setup build: Error 27 Could not create the file 'C:\Users\MyName\AppData\Local\Temp\VSI1E1A.tmp' 'Access is denied.' I have tried the following (from http://support.microsoft.com/kb/329214/EN-US) regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\MSI Tools\mergemod.dll" The DLL registers but this does not fix my problem. Also, I tried a Clean build, deleting the temp folder, ran VS2008 as administratror, restart my PC but

How to use IAppVisibility from a VS project prior to VS 2012?

痴心易碎 提交于 2019-12-11 20:44:13
问题 I'm trying to use the IAppVisibility interface (and namely the IAppVisibility::GetAppVisibilityOnMonitor method) from my C++ project that is developed under Visual Studio 2008. I found this code sample, that unfortunately requires VS 2012 to compile. So I was curious, is there a way to call it from a VS project prior to VS 2012? For instance, I'm doing this: #include <Shobjidl.h> //Earlier version IAppVisibility* pAppVis = NULL; HRESULT hr = CoCreateInstance(CLSID_AppVisibility, NULL, CLSCTX

Memory Error in Visual Studio, but plenty of memory available

蹲街弑〆低调 提交于 2019-12-11 20:39:38
问题 This line of code produces the following error rs[se_idx][ev_idx][re_idx].trs = new re_class[report_size]; std::bad_alloc at memory location 0x0037c29c I think this is related to 'not enough memory'. When I decrease the amount being allocated, it runs fine. I have plenty of memory (16 GB) on the machine and a resource monitor shows only a tiny fraction of it is being used by visual studio. I added the compiler options /F 4000000000 and /LARGEADDRESSAWARE , but still getting the error. How can

Unable to open my C# project

爱⌒轻易说出口 提交于 2019-12-11 20:06:25
问题 I'm unable to open my project in Visual Studio 2008. It was developed in C# by my friend. It is showing the this error: "Could not find type 'LibrarySystem.ctrlSeparator'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. " Also "The variable 'ctrlSeparator1' is either undeclared or was never assigned. " How do I rectify this problem? 回答1: With all respect...the

iTextSharp generating pdfs, compiles and runs without error but no PDF appears

拟墨画扇 提交于 2019-12-11 20:01:38
问题 I've tried a number of different variations to output a very basic PDF from memory but all seem to return the same result, which is to say it doesn't actually return anything. The code compiles and runs without error but when VS finishes processing the code nothing happens. I'm using VS2008 and iTextSharp v5.1.1 Does anyone have any suggestions please? Here is my code in its current state: MemoryStream ms = new MemoryStream(); Document doc = new Document(); PdfWriter writer = PdfWriter