Mateusz Rajca's Q&A profile
Visual Studio Express Editions Parsing Text files
Hi, I have created a vb application that loads the contents of a comma delimited text file to a textBox1. I now want to change the format of the data held in textBox1.text and have the changes shown in textBox2.text, as shown below: textBox1.text = 55, Smith, Fred, Actor, Retired textBox2.text = Fred, Smith, Retired, Actor, 55 Any help with the method to use to re-arrange the textBox1. text string to textBox2.text string would be much appreciated. Jason Dave, can you tell me how I would need to modify the code to deal with a textBox that had multiple lines of data as shown below 55, Smith, Fred, Actor, Retired 45, Jones, Chris, Actor, Retired 23, Clarke, Andy, Acto ...Show All
Windows Search Technologies WDS 3.01 and Outlook 2003 (Exchange)
Somehow I can't select folders from Outlook 2003 to index. The only visible folder is 'public folders' but greyed out because I don't run Outlook in cached mode. WDS 2.66 did show the open inboxes in Outlook and indexed them nicely, in WDS 3.01 they are gone and I can't get them to show. Found the file, it's in the installation file but get deleted after installation from the temp dir. Anyway... I can now index my own inbox, but the other 4 mailboxes from my colleagues that I have open in Outlook don't appear in the list. ...Show All
Windows Forms WebBrowser control freezing up
I have created a windows forms application containing a WebBrowser control. One of the pages that is loaded by the control contains a Windows Media Player ActiveX object. The movie that is being played in a 500MB mpg and it is set to loop indefinately. After it has been in use for a few hours, the application locks up and must be killed with task manager. This issue is not seen if I access the pages in IE, only if I use the WebBrowser control. I believe this is a memory issue and would like to be able to free the memory used by media player when the page is navigated away from. If anyone has any suggestions or help, it would be appreciated. Mike interesting. firstly why would you play the file ...Show All
Windows Forms List View HotTracking Property
Hi, I have a requirement for the HotTracking property feature which underlines list items as the mouse moves over them. However, it appears that the hoverSelection must also be enabled for it to be allowed. The HoverSelection provides a blue background as the mouse moves over the text. This is very poor in response and not required. Is there away to only have the HotTracking without the HoverSelection Me .ListAccounts.HotTracking = True Me .ListAccounts.HoverSelection = False ' not allowd must set to true Ron Nobugz, Although my code above works it is a bit slow in response to a fast hover, that is, the underline is not that responsive to a fast mouse hover. ...Show All
SQL Server Where to install SRSS DB?
We're planning to use one instance of SSRS installed for all of our clients. What performance differences could we get when deploying SQL Server DB for SSRS according to the following 2 scenarios 1. On the same server box 2. On another server box I agree with Teo - performance usually isn't a factor unless you are running very long queries. Here are some other things to look at for the scenarios you posted... Backups: If you put the Report Server databases on an existing SQL Server you can simply add them to the backup tasks. Web Farm: If you have the Enterprise Edition of SRS, then you can put the databases on one SQL Server and have the Web Farm set without one point of failure (being ...Show All
Software Development for Windows Vista How Can I Disabling a specific System Warning?
System Warning Warning: A problem with the cooling system has been detected. Please turn off the computer immediately, return it for service. I believe this is not a valid message after talking with Toshiba support and changing the CPU fan. Also, I am having no heat issues, pc works fine and fan is running... Thanks for the time and effort ;)- i had this error on a toshiba laptop after it had been to another centre for repair. Looked at the problem in a different way as it being hardware fault, so stripped laptop down reseated heatsink and fan ran a few tests and hey presto all working. ...Show All
.NET Development Frequent error in eventlog (clr20r3, cannotunloadappdomain)
Hi, I have a major problem with one of my web sites whereof the application seems to restart itself quite frequently. It seems like we have a memory leak which we can't reproduce in our development environment. Do you have any ideas as of where to start Background: The website consists of two webservers with dual CPUs, 4 GB RAM and okay disks. The load is about 3000-4000 active sessions during peak. We use EPiServer for CMS, the web application (as well as all referenced assemblies) are written in C# (2.0) Below you'll find errors and warnings from the event log (system): 1. EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 system.web, P5 2.0.0.0, P6 4333aecd, P7 5ce, P8 47, P9 system.cannotunloadappdomain, P10 ...Show All
SQL Server How to avoid cursors and loops
hi, My problem is basically i need to call a stored proc for each entry in a table, i.e, basically a for loop calling stored procs with parameter coming from the table. I know two ways of doing this .. using cursor and using while loop with temp table. I dont like both approaches. Is there any good practice for this situation.. declare mycur cursor fast_forward for select ID from sometable open mycur FETCH NEXT FROM mycur INTO @AID WHILE @@FETCH_STATUS = 0 begin exec dbo.storedproc @AID FETCH NEXT FROM mycur INTO @AID end CLOSE mycur DEALLOCATE mycur Hi there, Thnx for the reps. I cannot use UDF coz there are some underlying procedures to this procedures. UDF's ...Show All
.NET Development Can 2.0 clients call WCF services?
Can I call WCF services from .Net 2.0 clients Yes they can. It's basically two steps. Once you've created the WCF service, you need to ensure it exposes metadata so the WSDL is available. You then use the WSDL.exe tool, or the Add Web Reference within Visual Studio to target the service making sure you put wsdl at the end of the url e.g. http://localhost/services/myservice.svc wsdl . Microsoft have a good article available here http://msdn2.microsoft.com/en-us/library/ms751433.aspx Best of luck, Tomas ...Show All
Windows Forms DataGridView :Question on Display
Hi All, can you please let me know how i can do the following a. I have disabled the datagridview, but the FirstCell in the First Row gets selected by Default. How can i prevent the Selection or Clear the selection. b. On the datagrid , i have hidden the RowHeader , ColumnHeader and RowEditingIcon , still i have a footer which gets displayed at the end of the datagrid.How can i hide the footer on the datagridview any help would be greatly appreciated. Thanks, Swaroop Looks like this topic is a bit old...but the problem with the responces to date is that while they both show an effective method to clear the selection, the issue here is the timing. The command to select this entry is gi ...Show All
Internet Explorer Development IE7 doesn't show SSL certificate padlock on Status bar
In IE6, when showing a web page from a secure site (such as my on-line banking account) the status bar at the bottom of the screen showed a yellow SSL padlock icon. IE7 doesn't show this for secure sites. Can I turn this display on anywhere in IE7 as it is the only visible sign that I'm in a valid webpage. I'll not be using IE7 if this padlock is not visibly shown. Hi Bob18, I too had the same issue with IE7 but managed to find the answer on some obscure web page that Microsoft had hidden away....If you haven't already been told or found the answer - the padlock is still there but they have moved it - instead of being at the bottom right of the screen like in IE6, it's now at the top right immed ...Show All
Audio and Video Development [Seemingly] wrong behaviour for AccessKey:Default handlers in general
Consider this scenario.... I have tested it on the latest ihd Simulator. =========================== The test content has multiple apps app1 --- doc1 --- has accesskey for VK_MENU app2 --- doc2 --- has event handler regestered for "controller_key_down" ZORDER(app1) > ZORDER(app2) Now, --- when VK_1 is pressed .... "controller_key_down" event would go to app1.... not handled there.. then to app2.... and handled by event handler regesterd on it. fine... --- the behaviour is similar when VK_MENU is pressed. The question is a) When VK_MENU is pressed then I think the event should be deemed to be consumed by the app1 and should not flow to the next app. Refer 7.2.8.1 too. Remember that access-key processing happens AFTE ...Show All
.NET Development Validating xml file with schema.
Shraddha Gurav wrote : My requirement is somewhat like this: Suppose this is my xml file, which I want to validate using schema. <myroot> <married>yes</married> <dateofwedding>1973-10-12</dateofwedding> </myroot> I would love to have the possibility of having something like this in XML schema: (look at the condition attributes in the dateofwedding element) <xsd:element name="myroot"> <xsd:complexType> <xsd:element name="married"> <xsd:simpleType> <xsd:restriction base="xsd:string"> &nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawableGameComponent - Need to create Texture on fly!
I have created and drawable component but need to recreate a texture (2d sprite) on the fly from a bitmap using Texture2D.FromFile. To do this i need to access the Graphics Device. The graphics device (this.GraphicsDevice) exposed from the base class (DrawableGameComponent.GraphicsDevice) returns a null reference in both the Update and Draw (override) methods. Help Did you add your DrawableComponent to your game's component list Personally, I just make a public property in my game class (public GraphicsDevice GraphicsDevice{get{return graphics.GraphicsDevice;}}), which all my components have references to. Then, I just use game.GraphicsDevice to access the device. ...Show All
SQL Server Error while executing SSIS package from other SSIS package
Hi, In our project we have two SSIS package. And there is a task (Execute SSIS package) in First package that calls the execution of second package. I m continuously receiving an error "Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available." As we are running first package by job, job runs successfully logging above error The protection level of second package is set to "EncryptSensitiveWithUserKey" Can anybody please suggest how to handle it ...Show All
