I'm currently setting up TortoiseSVN 1.6.6 on my WinXP system here at work and since I use VS2005 and VS2008 regularly here I'm considering installing AnkhSVN 2.1.7444 to make things easier as at my other job I use VSS (Visual Source Safe) which integrates into VS2003, VS2005 and VS2008 and works very nicely.So for those of you who have used AnkhSVN 2.1.7444 and VS2005/2008 what's your opinion?
we have a CollabNet Subversion Edge server running on a Windows server. Subversion Server is configured to serve via https. When trying to import a Visual Studio project folder with TortoiseSVN it hangs when adding the project file (.vbproj). Test 1: It happens exactly the same when the server is configured to serve via http.Test 2: Importing any project folder using the console utility (svn) works fine.
Both these tests lead to the conclusion that there is neither a network nor authorization problem.
My app is a tray icon which scans the Outlook Inbox periodically. It seems, from testing in my VMWare WinXP machine, that the app stops Windows from shutting down. I press StartShutdown but nothing happens. I have to exit the app first then StartShutdown will shutdown the PC.
I am wondering if I can use VB.NET(I am using visual studio 2010 express) to get and set a environment variable.
I want to add path of my application on system environment. I want to preserve what is already there and then I wan to add my string. This can be done by getting value of PATH and then append my string then re writing it.
I have 2 questions here:
How to get/set system variable in vb.net 2010? Will it be on the fly, I mean will it be immediatly avaialble in dos prompt or there will be delay?
As just for experiment i opened a command prompt then updated the PATH variable manually and it was not updated. I am wondering it I do it through programe it will be same.
I am trying to write a countdown timer I finally succeeded with MSDN. I get to work whatever I wanted, but this drives me nuts: How can I read and set the volume control? I want, once my timer is run down to zero, read out the current system setting, then play a system sound using Media.SystemSounds.Exclamation.Play() Over time I like to ramp up the volume to 80% or until one clicks the Alarm off button (then stop the timer, no sound, and reset volume).
I am trying to make my controls look as cool as xp theme enabled controls like gradient fill background in container controls and colour thames support etc
EnableXpVisualStyles()
I found it to enable visual styles but didn't give me visual thames to apply. So in order to apply thames or colour schemes what should i do?What other commands should i use with combination with it? as I have seen my application giving ugly look even applying that command and other program showing nice loook in my win2003 server
I've found this code and it works in XP: [code] When I run the same code in Vista, I get an exception at the line "System. Environment.Get FolderPath(":See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. [code] I assume this has to do with the Vista UAC. Is there a better way to retrieve the "My Documents" path of either XP or Vista with one piece of code?
i used an old VB6 algorithm to subclass a window and made a few changes at the 'hook method' to make it work in .NET.
Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hWnd As Integer, ByVal nIndex As Integer, ByVal dwNewLong As delWindowProc) As Integer
Within a VB.net program I used IO.File.GetCreationTime to read the file system's creation time of a file. I was irritated, because the returned value didn't match with the time displayed in the explorer. On another machine the time was displayed correctly.
I am connecting to a Microsoft Active Directory server in a DMZ from my .net application (asp.net VB .net 4.0). I need to create a new "inetorgperson" in an orgunit called "SingleCustomerAccount".
I have had to use the System.DirectoryServices.Protocols namespace for all the work, because the ADSI classes (System.DirectoryServices namespace) wouldn't work across the DMZ properly.
Anyway it's been working fine connecting to Active Directory on Windows Server 2003 R2; however we're running tests against Active Directory on Windows Server 2008 R2 (2008r2 in native mode for forest and domain) in order to upgrade.
My existing code to create a user does not work.
System.DirectoryServices.Protocols.DirectoryOperationException: The server cannot handle directory requests. at System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32
I have a sub that I just discovered does not work for my windows 7 users but works fine for my windows XP users. This is basically a sub for a ping monitor to ping devices on a timer. What happens is that when the windows 7 user tries to ping, it always reports "down" on a windows 7 whether actually up or down. But, windows xp will report correctly with "up". 3 different windows 7 boxes, users say it worked before. Can't quite debug correctly as i'm on xp myself and it works just fine. Also, I haven't changed anything in the code in quite awhile and this is a recent bug that just started.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim itm As Object Sec = Sec - 1 If ListView1.Items.Count = 0 Then Me.Close() If Sec <= 0 Then [Code] .....
My objective: Set the printer to use without changing the default in Word under the control of vb.net express 08. Word version is 2000
I have it working, but� Through a lot of trying, I discovered that the WordBasic line would work. Further exploration revealed the �with dialogs(13)� will work. In a Word macro it would be Dialogs(wdFilePrintSetup) or Dialogs(97)
This is where it gets interesting. While Word.WdWordDialog.wdDialogFilePrintSetup equals to 97 it doesn�t activate the correct dialog. After considerable trying, I found that index 13 does yield the correct dialog box.
I've been fighting for weeks now to make a simple music playback program. It would function much like Windows Media Player without the visualisations and playlists. I'm writing this on a Win7 box, but it needs to work on XP and newer.
I say fighting because I'm severely annoyed at how MS has worked some items and it's taken many days to go through everything only to find that it doesn't work.
I started by using WMP in VB Express 2010 and having it play my music. Simple, but not portable. I copied my .exe to a WinXP machine and it blew up. I copied it to a different Win7 machine and it doesn't run (I can double-slick all day, nothing happens, no log entries, nothing....)
Then I find that there is an issue with the GUID of media player on different computers, and it'll most likely fail to run when you try to use it on other machines than the one the program was built on.
So I gave up on that.
I then figured I'd use DirectX. It's on XP and newer already, and is supposed to be backwards compatibile so if I build my app on Win7 it should still run on XP and such. I did that, and it works fine on the machine I built it with (again). My shuffle works,loop/repeat works, got my own version of a playlist and it all works. I copy that to another Win7 box and it doesn't run at all. It's setup as .NET 3 so I can be sure of compatibilty with WinXP.
For grins, I gutted all the code in my VB app involving calls to Directx and built that. It runs fine on other computers, including my XP test box. So I know the problem revolves around DirectX somehow.[code]...
I've adapted the code from this link to use the WinXP on-screen keyboard (osk) for a touch-screen application written in VB.NET v3.5. The osk fills the bottom half of screen etc. and behaves fine except for one little quirk. If the user clicks or taps anywhere on the 'background' area behind/between the virtual keys (within the main osk window), the color of the area changes to that of the keys when any further key subsequently gets focus. The outline of all keys is then lost because they are visually merged into the osk window background. The osk must then be terminated and re-launched to remove the confusing appearance.
This behaviour only occurs when the osk window is set to the child style (i.e. when the menu is hidden), using the SetWindowLong P/Invoke function - e.g.
It's as if the entire area behind the keys is being treated as another key when tapped/clicked, whereupon its color is 'restored' after losing focus.Is there any way to intercept and somehow override the focus event of this osk background area?
I develop my VS2010 project in my laptop with SQL 2008 Standard. In my laptop everything is working good, using the following connect string as global public string when the main form loads:
ive decided to try out win7 since its finally a bit more debugged, ive backed up very carefully all my projects, however there semms to be a problem with the one i was working on, this first chance exception error has been avoided and not even mentioned in winxp however in win7 it not only mentions it but makes the application crash, This is what its nagging me about, i dont get it isnt windows7 the same when it comes to mydocs? Was not possible to locate part of the path: C:UsersEugenDocumentsIOrganizeSettingsCalendarConfig
Sorry i had to translate it, its in portuguese language, yeah i know... if i could i wouldve changed it but win7pro doesnt gimme that option, anyways back to the topic:
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
This is the code i came up with:
If My.Computer.FileSystem.DirectoryExists(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "/IOrganizeSettings" & "/CalendarConfig/") = False Then My.Computer.FileSystem.CreateDirectory(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "/IOrganizeSettings" & "/CalendarConfig/") End If
I need help and wondering if you can help me to get my first project...it's a hobby and wondering if you can get me code for this so i can see how it does it* Evaluate( ) Prints the evaluation of the hand to the evaluation Label.
o If IsFlush( ), prints "flush; " o calls SetPipArray( ) o Uses a For Loop to go through pipArray. For each element, uses a Select Case statement to
In our projects we use setting variables to store user setting for the applications. Moreover, with every latest version of the applications, we upgrade these variables to retain user settings.Normally, this works fine, but recently one of my end user reported an error i.e.Configuration System failed to initialize". The error is related to user.config file. Therefore we requested the user to send us his file.After received the folder, we noticed that it contains 3 files (3begfjb.newcfg,3begfjb.tmp and user. config). 3begfjb.tmp is an empty file, while 3begfjb.newcfg and user.config are identical files. We tried to open these files but the data in user.config isn't proper xml rather its unreadable formatted file.Do any you guys had experienced this sort of issue or any ideas how and what may have created these files and corrupted user.config file.
I am getting following error whenever I want to use IIf function inside entity framework query.
LINQ to Entities does not recognize the method 'System.Object IIf(Boolean, System.Object, System.Object)' method, and this method cannot be translated into a store expression.
I am getting the following erro message: "Unable to cast object of type 'System.String' to type 'System.Predicate`1[System.String]'." on the line of code: If Not StrgFrag.Exists(wrd) Then I was expecting a True/False response and assumed it would work given that wrd is a String variables and StrgFrag in a List(of String). Do I need to reference the wrd variable differently? Dim StrgFrag As New List(Of String)
I am using VS 2008, Office 2007, and Win7 Home Premium on my system.I have a simple application which should be a breeze to build. All I am attempting to do is pull data from an Access database with four small tables into a data grid on a windows project. Should be simple, set up the data connection, choose a datagrid from the table in the data source view, drag it onto the page and done, right?I can't get it to work. It will all work fine until I attempt to run or debug the project. The data will not show up. The data grid does, but I get this error: A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
As I said, the project seems to build fine, but it will not pull the data. After the initial build I get the message that Windows will show this page in Compatibility View. Is it something with Win7 Home Premium, or a setting somewhere?
I have a utility that is a simple exe that is not installed compiled with VS2005 and works well. But when I upgraded to VS2008 the utility can no longer locate files in the active system folder. I have UAC turned off and am logged in as the Administrator and it still can not locate a file that I can see in Windows Explorer. The file I am looking for is PakMgr.exe.
I'm using express 2008 build the windows app. and in the app, it calls a webservice which was built by VS2003.It works fine on most PCs. however, there is one PC, it always shows this error:
System.TypeInitializationException: The type initializer for 'System.ServiceModel.ClientBase' 1' threw an exception .... System.configuration.ConfigurationErrorException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel .....
however, the configuration file was generated by express 2008, and it seems there is no error.
I have a text-boxes that use both the validating event as well as the lostfocus event.I have pinpointed the exception in the post title to the validating events.[code]Maybe I am unaware that CancelEventArgs are not suppose to be used in the validating event? [code]