sennekeennes's Q&A profile
Visual Basic Is there a VB based regex tutorial anywhere?
Sorry to be a pain but I'm having difficulties getting to grips with the basics of VB regular expresions. I'm not a newbe to regex - I'm just new to VB (don't know whether or not that helps matters). I'm trying to do fairly simple things eg match the text before the markup <option> so would automatically expect something along the lines of /(w*)<option>/ and then simply consider the variable $1, but i have absolutely no idea where to start in vb. While a solution to the specifics would be nice a pointer to a simple tutorial may be a nicer solution. Incidentally is there a way of finding tutorials - specific help on eg regularexpresions.regex.match without "ask a question" - surely there must be and I'm ...Show All
Windows Forms MDI Child Forms not Maximising
Hello, I had a .NET 1.1 MDI application that I've recently updated to .NET v2.0 but there is a problem with showing MDI child forms that wasn't previously there. The MDI parent is split into two. On the left there is a tree view which, when a node is clicked, shows the relevant MDI child form. The MDI child is set to a fixed tool window and when shown it's maximised to fill the space available in the MDI parent. In .NET v1.1. this worked fine however in .NET v2.0, although the form is shown maximised, the form area being displayed is actually the same size as it is at design time. I know the form is maximised because it can be minimised, and when this is done and then the form is re-maximised it fills the space available as its su ...Show All
Visual Studio Express Editions Folder monitor system
I have a short application developed that scans through our project server, looking for specific files in specific places. If it finds certain files, it calls a command-line application to process the file. It runs on a weekly basis, and all is well. What I would like to do, is create a companion application for "on-demand" processing. Users would copy the appropriate file into an "in" folder on the network, where it would be automatically processed into an "out" folder before the original is erased. I have seen something similar done with PDF file creation. I am wondering, has anybody here tried this with VS Express, and can you point me in the right direction using a do ...Show All
SQL Server how to perform this query to return data?
I am using this stored procedure to check if user is exist and update his alread_loggedOn field.. IF EXISTS ( SELECT login_user_id , login_password , person_name , staff_active , is_staff , company_id FROM persons WHERE login_user_id = @login_user_id AND login_password = @login_password AND is_staff = 'Y' AND staff_active = 'Y' AND already_loggedon = 'N' ) BEGIN -- Insert statements for procedure here UPDATE persons SET already_loggedon = 'y' WHERE login_user_id = @login_user_id AND login_password = @login_password AND is_staff = 'Y' AND staff_active = 'Y' END ELSE -- RAISERROR('This value already exists.', 11, 1) RETURN 1073 b ...Show All
Visual Studio Team System MOSS 2007 - My Sites
Hi, I have a ques. I have setup "My Site". I have several web applications and several site collections. My understanding is that the "My site" will pick up all my documents from all these differenet sites and show them to me in "My sites". Problem is I only see 3 documents in total (2 from my sites page and 1 from "records center"). It does not see my documents from the "document center" or "internal portal", etc. I have farm admin rights on the whole farm. I have also manually added myself to the "members" group of these sites. Under "sharepoint sites" it only show the records center, sites and my site but does not show these other sites (like document cen ...Show All
SQL Server SQL Express 2005 Configuration Manager - Cannot connect to WMI provider
Hi, when I go to the SQL Server Configuration Manager utility, the following error pops up : Cannot connect to WMI provider.You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 servers with SQL Server Configuration Manager. Access is denied. [0x80070005] This is on a Windows 2003 SP1 server, and the database is an upgraded MSDE 2000 database. The database itself appears to be working OK. My application can connect to it, I can connect to it via sqlcmd, etc. (all locally). I'm logged on as an Administrator, so permissions shouldn't be a problem. I ran FileMon to see which file it's complaining about, and it seems the culprit is sqlmgmprovider.dll. It's trying to access this .dll as Netw ...Show All
Office Live Development Office live web site design question from a beginner
Hi, I've recently hosted a website through officelive. It is www.elypc.com . It is modest, and I will not add much more too it since it is just a part time hobby. My question is this: I would like to have one of my friends create for me a page using javascript. He is going to make it similar to dell's custom pc pages (not to the same extent). He is concerned that since I am using officelive, they may not allow me to create a page outside of their page wizard. I believe I can create a blank page, and copy the html or code into it from there. Will this work Do I need to pay for a premium service before they will let me add a page that includes java script Also, if my outside designed page can be copied into a blank pag ...Show All
Smart Device Development Serial Port Card Reader Eject Signal
Hi, Anybody have idea of how to send unlock signal to serial port card reader to release the locked card from card reader through dot net code. I am using omron card reader and once the user inserts the card fully it locks the card, manufacture told me to send eject signal to the port to unlock the card... I am totally new to this and unable to figure it out how to do this... Pls anybody have experiance in this, pls share ur inputs to me... urgent... Thanks in advance, RK Hi JR, Thanks for the inputs... i tried getting help from card reader makers but nothing turned out positive...Actually if you know how to send any signals to serial port other than eject pls give me the samp ...Show All
Visual Studio Express Editions Show what is going on faster
When I have a program doing something that takes a few minutes, I like to show them the status, so they know that it is not locked up. The progress bar is a pretty good solution, if you know how many 'things' there are. The label and text or even button text works, but slows the program down quite a bit when it is refreshed. A very unique solution I have found is to create a new window form. Remove all the buttons from it, lock it into the top view (always on top), and resize it so it JUST shows the title bar. Make it invisible. Now, when you need it, call it as shown: dim fr as new formname fr.show fr.text = "Loading record " & record & " of " & totalRecords fr.refresh Update it when y ...Show All
Game Technologies: DirectX, XNA, XACT, etc. F14 XNA Game with Full Source
Well here it is. I finally got my first game into a releasable state. Screenshot, video, and full source available after the jump. http://aroganworld.blogspot.com/2006/09/f14-xna-game.html I couldn't have done it without the great help from this forum (and all those xna sites). Let me know what you think. Thanks. Oh and if anybody is interested in hosting the file let me know. I really don't have a good place to host it. It's around 4.4MB. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Create Graphics device manual
hello is it possible to create graphics device width out reffence to game in the top of the code example partial class SpacewarGame : ( Game) just like the old dayes width mdx 2.0 i wood like to control the graphics device my self so i can put all engine code in a dll file if some one have some code plaese post it michael Yes, you can create the GraphicsDevice manually very similar to how you would in MDX. You can also create your renderer as a GameComponent that publishes the IGraphicsDeviceService interface so other GameComponents that depend on a Device can query for it and use it. ...Show All
Silverlight (formerly WPF/E) Changing Storyboard.TargetName on the fly
Is it possible to change a storyboard target through Javascript var storyboard = target.findName("storyboardID"); storyboard["Storyboard.TargetName"] = objectID; actually overwrites the targetname, but the storyboard still renders on the object first assigned thanks! ps: if the above worked, I could ideally go as far as creating only ONE storyboard, and applying that to any object/property I choose at runtime. that'd be really nice. ...Show All
Software Development for Windows Vista webcam problem
Does anyone else have any errors with the VIMICRO USB PC CAMERA on Vista, it worked fine under XP SP2, however i have tried using it on vista & Windows Live Messenger (Which its designed for), and it can load all the drivers etc, but always displays a black screen . Has anyone managed to get there VIMICRO USB PC CAMERA to run under vista, i am also unable to install the software again due to my OS not being Windows XP, and i have also tried running setup.exe with compatability mode (Win XP SP2), but it still tells me it could not run due to it not being windows XP Hello all, This is a basic install guide for the Vimicro USB PC Camera (ZC301PLH) 1. Unistall the camera via control pane ...Show All
Visual C# TextWriter vs. StreamWriter
I am using this operation to write a string variable response to a *.csv file. It runs into some problem: information gets lost about 50% of the time. using ( StreamWriter sw = new StreamWriter ( pathq ) ) { sw.Write ( response ); } I figured that this is perhaps due to the fact that this class is not thread safe. Another class TextWriter is offered as a substitute however when I change the code above into: using ( TextWriter sw = new TextWriter ( pathq ) ) { sw.Write ( response ); } I get an error: Error 1 Cannot create an instance of the abstract class or interface 'System.IO.TextWriter' D:\VCsharp_Projects\tapTCPports_1\Class2.cs 127 37 tapTCPports_1 Why I posted the same q ...Show All
Smart Device Development Smart Device - FileNotFound Exception
Hi, I am still quite new to C# and especially to smart devices. I have created a simple game and am trying to get it to my device. The game runs just fine when I run the .exe file on my PC as long as my .bmp images are in the same folder. However, when I try to run the emulator or try to run the program once I have moved it onto my device I get a FileNotFoundError if I try to access any of my images. My actually code is quite lengthy. Here is an example line of code that causes the problem: private void pictureBox1_Click( object sender, EventArgs e) { pictureBox1.Image = new Bitmap ( "Bitmap1.bmp" ); } Can somebody let me know if there is a certain way that I need to configure my project so it knows where t ...Show All
