Xengor's Q&A profile
Visual Studio Express Editions why imagelist errors with this?
i keep getting compile errors with this code but why pb.Image = ImageList1.Images(0) Label1.Text = "Gettin ready for the ball...pretty isn't she! " If pb.Image Is ImageList1.Images(0) Then pb.Image = ImageList1.Images(1) Label1.Text = "Bad Gyal forward!" ElseIf pb.Image Is ImageList1.Images(1) Then pb.Image = ImageList1.Images(2) Label1.Text = "Nathan's fave..." ElseIf pb.Image Is ImageList1.Images(2) Then pb.Image = ImageList1.Images(3) ElseIf pb.Image Is ImageList1.Images(3) Then MsgBox("This boi luvs u girl!.x.x.x.") Else Label1.Text = "" End If ive tried everything including with no imagelist: If pb.Image Is ...Show All
Visual C++ Setting breakpoints when attaching to explorer process
Hi I have created a shell extension for displaying thumbnails of an image type. However, I am having trouble debugging in vs. I have been able to place asserts in the code like assert(0) at key points like DllMain and CreateClassFactory etc These functions are called when I go to the directory contain my image files. However, when setting breakpoints in the same places and attaching to the explorer process again the breakpoints are ignored. When I hover over a breakpoint that has an icon of an empty circle and an exclamation mark the tool tip says The breakpoint will not be hits , no symbols loaded for document. Has anyone got any advice Thanks Di ...Show All
SQL Server Ordering date ?
SELECT LEFT(CONVERT(CHAR(11),convert(datetime,task_date),109),3) + ' ' + RIGHT(CONVERT(CHAR(11),convert(datetime,task_date),109),4) as Date, SUM(CASE a.status_id WHEN 1000 THEN b.act_point ELSE 0 END) as Programming, SUM(CASE a.status_id WHEN 1016 THEN b.act_point ELSE 0 END) as Design, SUM(CASE a.status_id WHEN 1752 THEN b.act_point ELSE 0 END) as Upload, SUM(CASE a.status_id WHEN 1032 THEN b.act_point ELSE 0 END) as Testing, SUM(CASE a.status_id WHEN 1128 THEN b.act_point ELSE 0 END) as Meeting, SUM(CASE a.status_id WHEN 1172 THEN b.act_point ELSE 0 END) as Others From task_table a,act_table b where a.status_id=b.act_id and a.user_id=(select user_id from user_table where user_name='Raghu') and a.task_date like '%/%/2006' GROUP BY LEFT(CO ...Show All
Visual Studio Team System Spurious AvoidUnnecessaryStringCreation
Using a switch statement containing a call to String.ToUpper() as the source expression results in (what I think is) a spurious AvoidUnnecessaryStringCreation warning. Example: string foo = "test" ; switch (foo.ToUpper()) { case "FOO" : break ; case "BAR" : break ; case "TEST" : break ; default : break ; } This code snippet results in the following IL: .locals init ( [ 0 ] string text1 , [ 1 ] string text2 ) L_0000: nop L_0001: ldstr "test" L_0006: stloc.0 L_0007: ldloc.0 L_0008: callvirt instance string string :: ToUpper () L_000d: stloc.1 L_000e: ldloc.1 L_000f: brfalse.s L_0040 L_0011: ld ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tabs instead of Spaces by Default, please
Visual Studio 2003 and 2005 default to tabs for spacing, yet for some reason XNA (and perhaps Visual C# Express) defaults to 4 spaces. Further, to find the setting to fix this is a little confusing - you need to realize the "Show All" checkbox is lurking at the bottom of the Options, check that, and then restart your hunt for the "Tabs" section. Please set the default to Tabs in future versions, for everyone's sanity, and source control savings. I'm glad I stumbled across this thread - I also strongly dislike the 'spaces' default, and did not know I could change it. Plus, by realizing that there is an advanced options checkbox, I finally found the option to put line numbers on. Yay ! ...Show All
Visual Studio visual studio 2005 + web projects + sourcesafe
Hi I am having a problem when opening a solution with a web project from source safe. Example I have a source folder located at D:\Source and a test rig folder located at D:Testing. Within folder D:\Source I create a web project e.g D:\Source\Web1 Now I create a test rig solution in D:\Testing\Web1.TR and add Web1 from D:\Source\Web1 to my solution. The web app and test rig are then added to Visual SourceSafe. Now when I open the test rig solution in VS 2005 the solution opens but it brings down the web app from source safe creating a new folder in my test rig location i.e. D:\Testing\Web1 Anyone know why this is happening. The location of the web project is D:\Source\Web1 not D:\Testing\Web1 Any answers great ...Show All
Visual C# ServerProtocolViolation, .Net2 and <httpWebRequest useUnsafeHeaderParsing = "true" />
Why the configuration section <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing = "true" /> </settings> </system.net> in .Net 1 help me to pass the HttpWebRequest problem "The server committed a protocol violation. Section=ResponseStatusLine" but not help in .Net2 Seems this is the bug in .Net 2 Framework Michael Try this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=296969&SiteID=1 ...Show All
Windows Forms Ascii problems with RichTextBox
I have a problem when i save/load information from a RichTextBox, when i save the information into a text file every character that has larger number then 127 in ascii-table becomes strange, so the character O will be \\'d6 and character a will be \\'e5 and so on. And that is a big problem when i later tries to insert the text into the sql database. This character ' is causing problems in my sql query. So, the thing i want to know is, how can i save the information in such a way, that it won't convert every character that has bigger ascii number then 127 into strange character formation. One more thing, i have to save the information in RichText format becuse im using pictures in the RichTextBox. //Mario ...Show All
.NET Development Emails send Through Exchange Server.
Hi All, I need your help regarding sending Email through Microsoft Exchange Server. Is there any code snippet or any .dll which will give me the brief idea As per my info Exchange server act as wrapper and invokes SMTP internally to send the mail. Outlook is client and been connected to exchange server. I don't want to install outlook on my machine and want to directly connect to exchange server which is located at company network. How Should I connect to Exchange Server I have done googling lot but most of comments have use SMTP Server. I am able to send mail using SMTp Server, I have installed a third party SMTP server(ANSMTP) and used for sending mails. I also tried sending mails through Outlook using C# , it's done ...Show All
Visual Studio 2008 (Pre-release) Listview memory leak :-\
I think listview have a memory leak since my application keeps eating memory... I'm making a little task manager which updates itself each 1 second. I bind a bindingList to a processView processView is a listview. blprocesses is bound the processView listView blProcesses = new BindingList<Processes>(); processesView.ItemsSource = (IEnumerable<Processes>)blProcesses; Here is the xaml i used for the listview <ListView DockPanel.Dock="Top" Name="processesView" Loaded="on_processViewLoaded"> <ListView.View> <GridView AllowsColumnReorder="True" ColumnHeaderToolTip=& ...Show All
Visual C++ breakpoints and watches in un/managed c++/cli mixed code
I'm adding managed c++ (c++/cli) code to a mostly unmanaged project and I'm finding that I cannot put any breakpoints in the managed portions and that watches don't return any useful information. Is this a feature, or is there a workround TIA Nope, has no effect. It doesn't seem to matter whether I set the debugger type to mixed, managed only, native only or auto; it only and always breaks in native code. The project has no clr support, while the managed cpp module has /clr set. By the same token I only get intellisense in native code, it's like the olden days of coding with a separate text editor and compiling at the command line, but not in a good way. ...Show All
Visual Studio Tools for Office Outlook 2007 RTM FormRegion editing bugs
I am trying to edit FormRegion in the Outlook 2007 that I was developing in B2TR. When trying to modify it (add more controls) the changes are not saved. Even when trying to "Save As" the dialog is never poping up. By trial an error I've discovered that if I delete the TabControl (MultiPage) from my region it will allow to save it. What's going on Thx... Alex You're right, you should be able to host the InfoPath ActiveX control on a form region. In fact, we did testing to make sure this worked and was possible to do. There isn't a mechanism in place to day to file bugs against RTM Outlook 2007, other than calling product support and opening a service request or by finding someone at Microsoft ...Show All
Visual C# Deployment projects including all files
Hi, I have a deployment project and I want to add all the files in a folder to it. I know I can use Add Files from the File System view, but I want it to determine which files to add at compile time. For example, I want to added all files, so in the IDE I wanted to say *.*, but this is a static command and if new files are added to this folder after the Deployment project was created then the new files are not added in the next build (unless I manually change the setup project). Is there a way round this, or do I have to resort to something like InstallShield Regards Graham I am sure InstallShield v11.5 has such option but for VS 2005 I do not know such functionality. Probabbly there is a way ...Show All
Smart Device Development Display username from phone book to my own application
Hi, I am new in using C#. I am write a program for WM 5.0 pockect PC .I would like to display username on to the listbox from phone book to my own application using C#. Thanks thanks I have already download the sdk file but i still an error. there the error: Error 1 Metadata file '..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\PocketPC2003\Designtimereferences\Microsoft.WindowsMobile.PocketOutlook.dll' could not be found C:\Documents and Settings\Studadmin\My Documents\Visual Studio 2005\Projects\DeviceApplication8\DeviceApplication8\CSC IncomingCall May i know how to do it ...Show All
SQL Server LDAP vs ADSI parameter problem Part II
Dear friends, I created the follow query: ALTER PROCEDURE [dbo] . [GD_SP_LDAP_CGD_GET_CNsByDIR] @MyDIR nvarchar ( 20 ) AS DECLARE @SQLString NVARCHAR ( 500 ) DECLARE @test nvarchar ( 20 ) SET @SQLString = N 'SELECT name FROM OPENQUERY(ADSI,'' SELECT name FROM ''''LDAP://OU=' + @MyDIR + ',OU=Estacoes,OU=Servicos-Centrais,OU=cgd,DC=GrupoCGD,DC=com'''' '') WHERE name LIKE ''%WX%''' ; EXECUTE sp_executesql @SQLString ; It works 100% corrrect! BUT, if I want to insert new parameter column ocur an error... How can insert the value of @Test in result of my query ALTER PROCEDURE [dbo] . [GD_SP_LDAP_CGD_GET_CNsByDIR] @MyDIR nvarchar ( 20 ) AS DECLARE @SQLString NVAR ...Show All
