F. Gsell's Q&A profile
Visual C# horizontal scrollbars for a ListView component in my WinForm
Hi, I am having a ListView component in my WinForm, when i add some images into it, it gives me a vertical scroll bar. What i want is, the horizontal scrollbar instead of vertical. Is there any way to hide the vertical scrollbars and display horizontal scrollbars ...Show All
Visual C# Error in Visual Studio (C#) AND Visual Studio (C#) - Data Source
Hello- I am receiving the same error message within Visual C# Express Edition as well as Visual Studio 2005 when I attempt to add a new data source in my project. The error I keep recieving in both Visual C# Express and Visual Studio is "An error occured while creating the new data source: Could not get the type information for 'Lesson09.Database1DataSet' ". Why is that and what does that mean I cannot proceed with my lessons because I cannot get past this point to participate. I have also tried opening a sample project which uses the same techniques and also recieved errors while loading it into Visual Studio as well as C# Express Edition. I get the following build errors: 1- Error 1 ...Show All
Visual Studio Team System Just to clarify TeamSystem license - TFS
I have been reading a lot of different information about TFS x TeamSystem license model, concerning Cals etc One thing I am almost sure is when we sign for MSDN Premium TeamSystem (whether Suite, Dev, Tester or Arch), we do have rights for 5 CALs to access TFS. Another issue has to do with using this package after expiration. I have posted previously about the possibility of signing for MSDN Premium TeamSystetm Suite, and when renewing, choosing a lower package (tester for instance). In this case, I would not receive any other new features on the other versions (in this case Dev and Arch), but I would be fully license covered to continue using the whole package I had up to that moment. Could anyone from Microsoft confirm this 2 in ...Show All
Visual Studio Team System CTP 6.0 Test Project
I've now uninstalled CTP5 and Instal CTP 6.0 i'm getting the same problem within this solution. If I try to create a DB unit test by right clicking on a sproc I get a message box with "An item with the same key has already been added" this bug was also reported in CTP 5.0 and also now its on CTP 6.0 Is there any way of fixing that Thanks To make sure we have the process right. Here are the steps that should happen: 1. Solution contains Database project with stored procedures and other projects 2. Right-click on the stored proc and select “Create Unit Tests…” 3. The Create Unit Tests dialog appears. You select a new test project and then provide a name for the test class. Click OK 4. The design ...Show All
Visual C++ About Multi-threading???
Hello, I am writing a small MFC program in which I created a UI thread for a dialog that has a text box. I created a UI thread with the following codes: void CLinkCheckerDlg::OnBnClickedButtonCheck() { CWinThread *ptrUIThread = AfxBeginThread(RUNTIME_CLASS(CStatusUIThread)); .............. ............. } where CStatusUIThread class has InitInstance() function where I created a dialog as follow: BOOL CStatusUIThread::InitInstance() { // TODO: perform and per-thread initialization here m_pMainWnd= &m_dlgStatus; m_dlgStatus.DoModal(); return TRUE; } where m_dlgStatus is a dialog object that has a text box with string variable named as "m_strStatus". I like to access thi ...Show All
Microsoft ISV Community Center Forums Highlight Row depending on truncated text - Excel VBA -
Is there a way to highlight a cell if it has truncated text like the cells that show #### Thanks in advance for your help! -Lyosha Hello You can use a Range object's Text property to specify or determine the text the range contains. For example, the following code selects the row that conatins the text "##" Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Call SelectRowContainingSharpText End Sub Private Sub SelectRowContainingSharpText() Dim rng As Range For Each rng In ActiveCell.Rows.EntireRow.Cells &nb ...Show All
Visual Studio 2008 (Pre-release) ArgumentOutOfRangeException in SubmitChanges
Hi, I receive the following exception when trying to submit changes made in a database backed class. Test method UserManagerTest.MyTest threw exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index. at System.Collections.BitArray.Get(Int32 index) at System.Data.DLinq.SimpleTrackedObject.HasChanged(MetaDataMember mm) in C:\Program Files\LINQ Preview\Bin\Disasm\System.Data.DLinq.il:line 106219 at System.Data.DLinq.SimpleTrackedObject.<GetDataChanges>d__0.MoveNext() in C:\Program Files\LINQ Preview\Bin\Disasm\System.Data.DLinq.il:line 105226 at System.Data.DLinq.SimpleChangeDirector.GetUpdateCommand(TrackedObject tracked) in ...Show All
Connected Services Framework Simulating Exception scenarios for third party services
Hi, I am trying to simulate a scenario where I have a third party webservice as a participant in my Session manifest. This service throws an exception (a normal .NET exception) based on some condition. Since this is a third party service, I do not have access to code and will not be able to ensure that exception thrown is of should be of type SoapFaultException. The following is the code for the web service method that throws exception: [ WebMethod ] public string HelloWorld() { throw new Exception ( "Testing exceptions" ); return "Hello World" ; } I get the following in Session_OutputTrace.webinfo: <processingStep description="Processed message"> <soa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA 3d models invalid texture
Hello, I wish to use my 3D models I've created in 3D Studio Max. This is possible using the export function. XNA can handle the FBX format. However, employing this exported model gives the following error: Error 2 Invalid texture. Face 0 is sized 367x480, but textures using DXT compressed formats must be multiples of four. It is hard to believe all of my textures should be of the format multiples of four. This leaves a lot of the available 3D models in the dark. Is there any way of avoiding this error Or am I missing something Thanks in advance. That is a limitation the exporter, but also a limitation on alot of hardware. Not all hardware supports non power of two textures. In cases where it snot suppor ...Show All
Visual C# CD-ROM opening and closing with two buttons
Hey all.First I will say that I am totally beginner in visual C# 2005 so I need very big help with one thing.I am trying to make when I click "button1" the cd-rom door opens and when I click "button2" the cd-rom door closes.I really need a big help in this!I tryed everything but there are always errors.So if anyone can help me with this,tell me everything in details if it's not a problem. THANKS! S.T.A.R.S. wrote: Lol I am totally beginner so I don't really get this long code xD Can you write me the code which you would write for opening the cd-rom by clicking two times on button1 Same for closing the cd-rom by clicking on button2. Thanks! Unfortunately, C# doesnot provide a ...Show All
SQL Server Login failed from Windows Service
I'm building a Windows Service which keeps getting denied access to SQL Server 2k. The Service operates as a System User rather than an individual user profile. I've tried Trusted_Connection=yes and Integrated Security=SSPI but these are both denied. Any ideas what the connection string to connect to SQL Server 2k from a Wndows Service is I just tried adding NT Authority as a user but I can't see it in the list of users. I performed a search of users and 'NT Authority' wasn't found. Should 'builtin\administrator' be listed as one of the users or not Also, for distribution purposes, can whatever steps need to be taken for the Service to access the database be performed from an installation file Th ...Show All
SQL Server There's just no escaping it... data containing quotes ruining CSV files
Much to my surprise and dismay, after burning hours and hours developing various SSIS packages to extract data from my SQL 2005 DB to CSV flat files, I found out the hard way that SSIS doesn't properly escape quotes (") in the data (my output file is required to have quotes as text qualifiers). It seems like I'm pretty much forced to create derived columns to test for the existence of quotes in my data, then either escape them or replace them with another character. This is really NOT COOL. Not only will this significantly hinder performance, it makes my packages a heck of a lot more complicated (especially when I'm exporting lots of text columns). Am I doing something wrong, or does SSIS really not escape the text qualifier ...Show All
Visual C++ command line cross-compiling X86, X64 and IA64 with Visual Studio 2005
Hi, I can compile project in X86, X64 and IA64 with the Visual Studio 2005 without problem. But, when I try to compile with the command line (cl.exe, link.exe), I got this error when generating dll : module machine type 'x64' conflicts with target machine type 'IA64' And also, all the lib are (different) but with the same size witch it's impossible. I use the option /MACHINE:[X86|X64|IA64] with link.exe but I don't know witch option use with cl.exe to specify the target machine. Regards, Eric (I use Visual Studio 2005 team fondation with PlatformSDK 3.0 and Windows XP x64) Now I understand :-) I don't have to chose manually the good binary cl.exe. The script vcvarsall.bat set the envir ...Show All
SQL Server SQL Server 2005 Hanging - Selecting uncommitted data
We have found an issue with using MSS 2005 with odbc connections, some of our code inserts data, then reselects the data back with a select using a different handle. This hasn't caused any issues before but in one customer this causes a lock up. The timeout error doesn't occur as you would expect if trying to select data that is uncommitted by another user. Although obviously we could re-code to avoid selecting uncommitted rows, can anyone tell me why this works sometimes but not others. Some kind of setting in MSS that we're unaware of maybe. The code works ok on other MSS 2005 & MSS 2000 servers and oracle & sqlbase. Hi, are there differences in ConnectionPools / Queries Hints or lock beh ...Show All
Windows Forms Error when publish
Hi Hope this is the right forum after some problem with my server, i have a problem with my old projects When i try to publish my old project's i get this error: Signtool reported an error "Keys dosn't exsits" I a new project i don't get this error Hope some one can help Alvin ...Show All
