chxfryer's Q&A profile
.NET Development Efficient way to remove double quotes from a string.
For some reason, I am reading a string out of a config file, and rather than just getting the string, I am getting it in double quotes. Here's a clip of my App.Config file < setting name = " TextLogFileName " serializeAs = " String " > < value > C:\CodeTracingFile.txt </ value > </ setting > When I read this value into a variable, the variable ends up with ""C:\CodeTracingFile.txt"" I don't know why the double quotes are being added, but I'd like a simple efficient way to get rid of them. I tried using String.Replace, but it wants a character, and I don't know how to specify a quote as the item I want replaced. ok. VB.NET handles the quotes differently ...Show All
Visual Studio Tools for Office VSTO/Outlook 2007 TravelAgency Sample Question
hi i have a question regarding the TravelAgency sample add-in. After installing this add-in, if I go into the manifest file and change the formRegionType to 'adjoining' or 'separate', then I can see that this affects the form layout as expected. However, if I change the type to 'replace' or 'replaceAll', then the itineries region seems to get lost altogether. My expectation was that the itineries region would have replaced the standard Contacts form. am i doing something wrong thanks. replace and replaceAll only work on derived message classes. They have no effect on the default Outlook message classes. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=515217&SiteID=1 Regards, St ...Show All
Visual Basic Client certificate from within a services
Hi there, I have build a windows service wich will communicate to a web service. This web service requre a certificate for authorisation. When i run the services under "local system" it doesn't send the certificate to the web services. If i run the services under a user account it's perfectly, but this is not an option for us. How do make the services send the certificate to the web service when it is running under "local system" Thx for the reply. This example works when running in an (console) application, but when i turn the application in a services. It will add the certificate to the proxyobject but it doesn;t send it to the web-service. It looks like the windows se ...Show All
Windows Forms Datagridview and checkbox
Hi all. I have bound a datatable to a datagrid. One of the columns is named "Select" and is a boolean. When i bound this to the grid it is displaying a CheckBox. Nice :-) But if i try to build the datagrid before it is bound to the datatable the column "Select" is not displayed as a CheckBox. Why What do i have to do to get the "Select" displayed as a CheckBox */Code when datagrid is buildt */ column = this .dgvContrprodProduct.Columns.Add( "Select" , "Select" ); this .dgvContrprodProduct.Columns[column].DataPropertyName = "Select" ; this .dgvContrprodProduct.Columns[column].ValueType = typeof ( DataGridViewCheckBoxColumn ); this .dgvContrprodProduct.Columns[col ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation problem
With DirectX to rotate my object I'm using D3DXMatrixRotationYawPitchRoll. So it means , it will rotate around Y , X and after Z axis. But if I change the angle of X or Z, it won't turn around X or Z. How could I turn around the right axis Did you try passing only one value to D3DXMatrixRotationYawPitchRoll() and leaving the rest to zeroes You can also use D3DXMatrixRotationX() or D3DXMatrixRotationZ() to build rotation matrices around these axes... ...Show All
.NET Development timeToleranceInSeconds
I am writing a new application using .NET 2.0 and WSE 2.0. I assume that is a valid combination I've upgraded one solution (to .NET 2.0) already, which uses 2 or 3 web services (WSE 2.0). These seem to work fine. Both the upgraded, and the new applications, talk to the same web server (Windows 2003). My new application keeps throwing an exception (clock cannot be in the future), which I have discovered is related to 'timeToleranceInSeconds'. If I fiddle with the clock on the client I can fix the exception, but this is an unacceptable solution as we will have 100+ clients. My web service is in the BLL subproject of my solution. I've tried adding: < xml version = " 1.0 " encoding = " utf-8 " > ...Show All
Visual Basic Audio Completion Events
I'm trying to have a For... Next looping structure with multiple songs. I want to have a song play, then when it is done, play the next song. So far, it just goes automatically to the last song and plays it, skipping the rest. I just used an My.Computer.Audio.Play(filename) code.. For intCount = 0 To 3 My .Computer.Audio.Play( "E:\" & strSongs(intCount) & ".wav" ) Me .lblCurrentlyPlaying.Text = "Currently playing " & strSongs(intCount) & " by " & strArtist(intCount) Next intCount Is there any way to do this Thanks, Edmund one way would be to use the WMP COM component, create a playlist and then play that playlist! the other using th ...Show All
Community Chat Free Online Visual Basic 2005 book
I have recently made my book free, sponsored by AdSense of course. The book is designed for non-programmers. After many hours of tweaking javascript I have finally completed most of the design of the page, so that it works with google and also so that there are no frames. If anyone would like to help with the book, ie: make it better, then feel free to contact me here or at the site. You can find the book link in my signature... nowhereman1960 wrote: Is it posible to read it off line Well, I suppose you could print it ...Show All
Windows Forms default font in RichTextBox
Hi, I want to set the default font for an empty RichTextBox. I have found no property for that. Simply settings the Font property does not seem to work. I also tried modifying the Rtf accordingly. This works at first, but the font settings get discarded when the user selects the whole content of the RichTextBox and then deletes it. So how can I set the default font Thanks Sebastian I'm not sure why it didn't work before, but setting the Font property now works. Maybe the problem was that the box is part of a custom control and that I overrode the Font property of that control to set the box's property. Well thanks anyway. Sebastian ...Show All
Visual Studio able to uninstall VS .NET 2003 Professional
I had VS .NET 2003 Professional installed on my machine (XP professional) and also Visual Web Developer 2005 Express Edition. Both work and i was able to create projects but after a few days both stopped working. I alway get 'MWDExpress Enviromenment is busy' when i try to access a project or try to create a new one in Web developer. I uninstalled Web Developer and re-installed it but it still didnt work. Always getting the same message. So I tried to uninstall VS .NET 2003 but unable to do so. I tried doing manually as well but it hangs (just freezes) and does not proceed any further. what should I do any ideas How can I uninstall VS .NET 2003 and then re-install it At the moment I can't do anything (Uninstall/reinstall/repair). Eit ...Show All
Visual Studio Express Editions coding help
Public Class Form1 Dim ans As String Public Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'whatever is in here will be executed when you start the program' End Sub Public Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'whatever is in here will be executed when you press the button 1' test() 'this gives me "test is type and cannot be used as expression" ans = InputBox( " thats it" ) End Sub Public Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End Sub End Cla ...Show All
SQL Server SQL Server 2005 SP2 Fails
I have a Windows Server 2003 Enterprise Edition SP1 with a couple of SQL Server 2000 instances on it and two SQL Server 2005 instances on it. I tried to install SQL Server 2005 SP1, but kept getting failures. I saw that SP2 fixed some of the issues with installation issues that SP1 had. So, I tried to install it. Some of the smaller components install successfully (VSS Writer, Backward Compatibility, SQLXML4, MSXML 6.0 Parser, Native Client, Support Files), but all of the base services fail to install (Database services, Reporting Services failed for two different instances). I've downloaded the SP2 from the Microsoft site local to that server and install from there. I don't have space problems on ...Show All
Windows Forms how to select datagridview cell
How to select datagridview cell programatically I tried DataGridView1[1, 0].Selected = true ; but it din't work........ Thanks ...Show All
Visual Studio Team System AssemblyVersion Automation
Ive looked at the AssemblyInfo task on GDN: http://www.gotdotnet.com/codegallery/codegallery.aspx id=93d23e13-c653-4815-9e79-16107919f93e and also Guatams post on using it in Team Build: http://blogs.msdn.com/gautamg/archive/2006/01/04/509146.aspx but it falls down for me for several reasons: - it updates all assemblyinfo files before even attempting compilation of the first project so its not really appropriate for incremental builds where only certain projects will be rebuilt - it doesn't allow for duplicate attribute names (with different attribute values) in a single assemblyinfo file - it necessitates you checkin your automatic update to these files as this is how it increments it next time around - it updates ...Show All
Visual Studio Express Editions missing debug setting "start external program"
Hi, now that I'm able to enter debug-mode I'would like to actually debug my DLL-project which is an MMC snapin-extension. To do so, the SDK-documentation tells me to edit the project properties, debug settings , select the radio button "Start external program" and enter the full path to mmc.exe However, there is no such radio button. =:-| Resetting all settings to default-settings via "Tools | import export settings" didn't help. Even worse, I had to re-enable "Show Advanced Build Configurations". Thanks for your help. Best regards, Holger. Ok. Good to know. So far I always trusted the documentation which is included in the Express Edition. ;-) Thank you. Regards, Holger. ...Show All
