visual-studio-2008

How to Make RichTextBox Text Only? [duplicate]

佐手、 提交于 2019-12-18 13:36:58
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to prevent richTextBox to paste images within it? If you're using Richtextbox , there are several advantages in Richtextbox for example: we can use color font on it Setting custom font in a region Attach files on it.. etc take a look at the picture: Here is my problem: Can i just make it text only? In my project, attach file or the like is unnecessary at all. I even didn't want attach or paste an images on

Visual Studio 2008 Xaml Editor not working / disappeared

天大地大妈咪最大 提交于 2019-12-18 13:33:55
问题 When I start up VS 2008 to work on a WPF / Silverlight App and open a XAML or XML file the XAML / XML editor is no longer working. The designer does not show up and intellisense is unavailable. It basically looks like a text file has been opened. 回答1: Try running the following command. "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\ide\devenv" /resetSkipPkgs If that doesn't work try repairing the Visual Studio Install Start -> Control Panel Add Remove Programs Select VS Choose repair 回答2

How to get a list of all domains?

爷,独闯天下 提交于 2019-12-18 13:32:26
问题 I'm trying to get all domains that are available in the Windows Login dialog (in the Domain dropdown). I've tried the following code but it only returns the domain I am logged into. Am I missing something? StringCollection domainList = new StringCollection(); try { DirectoryEntry en = new DirectoryEntry(); // Search for objectCategory type "Domain" DirectorySearcher srch = new DirectorySearcher(en, "objectCategory=Domain"); SearchResultCollection coll = srch.FindAll(); // Enumerate over each

Visual Studio Settings file - how does it work?

半城伤御伤魂 提交于 2019-12-18 13:29:56
问题 I do not understand the following things: What is the difference between app.config (applicationname.exe.config) and settings file ? I am unable to locate the *.settings file in Windows7 AppData directory under the specific account (I heard that it should be located somewhere over there) ? Let's assume that *.settings file is somewhere on the hard drive. Why on the development time the data from settings file are copied to application config file? Kind Regards PK 回答1: So the default settings

Qt4 in Visual Studio 2008 - moc-ed files get excluded from build?

╄→尐↘猪︶ㄣ 提交于 2019-12-18 13:26:36
问题 Recently I have installed VS Addin from Qt Software and I imported my .pro project to VS2008. Generally, all works fine, with one small but annoying exception. Suppose I have a file.cpp with has a class which declares that it is a Q_OBJECT. So, as such the file is MOC-ed and moc_file.cpp is generated, and is available in Solution under "Generated files". So far so good. The funny thing is, when I change something in file.cpp (add a line, for example), and save the file using Ctrl+S, the moc

deploying winform application with embedded sqlite

て烟熏妆下的殇ゞ 提交于 2019-12-18 13:24:49
问题 I'm deploying a winform application built with vs 2008 0n XP sp3. I created a database with empty schema which i dropped in the root folder of the project and in properties i choosed Build Action : Embedded Resources and Copy to Output directory : Copy always . Now instead of having connectionstring in the app.config connectionString section, i put an entry in appSetting : key ="database"; value ="mydb.db;Version=3". So to create my connectionString i used : SQLiteConnection con = new

what is Visual Studio 2008 Shell (integrated mode)?

佐手、 提交于 2019-12-18 13:22:40
问题 I am new to Visual Studio 2008 Shell (integrated mode), I just want to know what is its function? (I did not find much clearly from the web.) From http://msdn.microsoft.com/en-us/vstudio/bb510103.aspx looks like it is some interface/framework to allow tools to integrate with VSTS IDE. My question is whether any Microsoft VSTS tools (like databse designer and other tools in VSTS) dependent on VSTS Shell? I am asking this question because it is conflicting with SQL Server 2008, and I want to

MFC Combo-Box Control is not showing the full list of items when I click the drop-down menu

ε祈祈猫儿з 提交于 2019-12-18 13:10:07
问题 I'm coding an app in MSVS 2008, which has a ComboBox control which I initialize thru the code as below: static char* OptionString[4] = {"Opt1", "Opt2", "Opt3", "Opt4"}; BOOL CMyAppDlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon // TODO: Add extra initialization here m_Option.AddString

Intersection between two rectangles in 3D

北慕城南 提交于 2019-12-18 13:05:17
问题 To get the line of intersection between two rectangles in 3D, I converted them to planes, then get the line of intersection using cross product of their normals, then I try to get the line intersection with each line segment of the rectangle. The problem is the line is parallel to three segments, and intersect with only one in NAN,NAN,NAN which is totally wrong. Can you advise me what's wrong in my code? I use vector3 from this link http://www.koders.com/csharp

What is the difference between “Create Precompiled Header” (/Yc) and “Use Precompiled Header” (/Yu) in Visual Studio?

冷暖自知 提交于 2019-12-18 12:54:38
问题 I read the documentation in MSDN, but in the end I didn't get a clear idea what is the practical difference between them, exactly. Both seem to require stdafx.h to be added at the top of every *.cpp file. I'm using VS2008. Can anyone help clear things up? 回答1: Well, I think that you must first understand the purpose of precompiled headers. In large projects, it can take ages to process all the headers required by a single client extension for example, so some people prefer to distribute the