Raulsassaa's Q&A profile
.NET Development String indexing
Hi all, if there is any other means except hashtable by which we can do string indexing in .net framework. I want to use a collection in which key and value both are string. thanx in advance Hi friend, Thanks 4 reply. Actually the dictionary is itself implemented as hashtable .So i don't find any performance increment by using dictionary. If the hashtable is fastest way to implement key -value based collection of strings ...Show All
.NET Development Notify user of session timeout?
Hi, I need to notify the user when the session times out and I supose I'm looking to solve two things. 1. I would like to warn the user a minute or so before a timeout occurs and allow the user to extend the session. 2. If the session times out, then I want to redirect the user to a "you're logged out page". How is this done Thanks! This isn't related to web services unless you built your own web services authentication. By default the session timeout for the ASP.Net forms authentication is 20 minutes. You could have a javascript counter on each page that warns them when the timeout is about to occur: window.setTimeout(myalertfunction, 19 * 60 * 1000) //warn after 19 minutes funct ...Show All
Visual Basic shift cells down on excel insert row.
I'm using this code to print and invoice to an excel template Dim XL As Excel.Application Dim xlwb As Excel.Workbook Dim xlsheet As Excel.Worksheet XL = New Excel.Application xlwb = XL.Workbooks.Open( "C:\Documents and Settings\S. Ross\My Documents\sales invoice1.xls" ) xlsheet = xlwb.Worksheets(1) XL.Visible = False Try xlsheet.Cells(8, 2).select() XL.Selection.value = Me .NameComboBox.Text.ToString xlsheet.Cells(9, 2).select() XL.Selection.value = Me .AddressTextBox.Text.ToString xlsheet.Cells(10, 2).select() XL.Selection.value = ( Me .CityTextBox.Text.ToString) xlsheet.Cells(10, 3).select() XL.Selection.value = ( Me .StateTextBox.Text.ToString) ...Show All
Software Development for Windows Vista ScardAccessStartedEvent does not signal in Vista services - service hardening?
Dear all, Migrating our core development platform to Windows Vista, one of our Windows services using smartcards is failing. We have debugged the problem and found that the event provided by the function ScardAccessStartedEvent does not receive notification. This event is supposed to signal when the SmartCard Resource Manager starts. As we have a WaitForSingleObject(event,INFINITE), the service hungs. Testing the same service as an ordinary executable ( registering with -regserver ) I can see it works properly. In XP it works properly both as an executable and service. I have read something about Service Hardening in Vista and I guess it may be caused by privilege reduction. So, I've created some code to enumerate the existing ...Show All
Visual Studio Team System Is it possible to set recursion to false?
Currently when automation script is run, an item is duplicated and incremented in subsequent runs. Is it possible to set recursion to false Thanks Test consultant Hi, Can you describe what the script does, and the item that is being duplicated More information will be appreciated on this. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Visual Studio Team System access to the path is denied
Hi! I am trying to copy files from the buildserver to an other storage. But I get following error message: " Access to the path " \\server\storage1\ Helpfile.chm" is denied. < Target Name = " AfterCompile " DependsOnTargets = " CoreDropBuild " > < Copy SourceFiles = " C:\Helpfile.chm " DestinationFolder =" \\server\storage1\ " ContinueOnError = " false " SkipUnchangedFiles = " false " /> </ Target > But I set write permissions on the storage1 for everyone, and exactly for the tfsservice user ! regards Simon Hi! I spoke with our system administrators, the told me that they set a special perm ...Show All
SQL Server ldf file lost
somehow i lost my ldf file and now my sqlexpress is not working. I have the mdf file though. Is there a way to restore my database using mdf file Please help. When I use sp_attach_single_file_db, it gives me this error "The log file cannot be rebuilt because the database was not cleanly shut down" Any ideas. ...Show All
Visual Studio 2008 (Pre-release) store ServiceSecurityContext.Current info
This may sound strange but is it possible to save the ServiceSecurityContext.Current info so that I can retrieve it and use it later I have a scenario where the client subscribes itself via a subscription service in the host. The host resides in another machine. Later, another service from the same host tries to invoke a method from the subscriber's service. The trouble I'm having is with SSPI negotiation. When I try to invoke the client's method, I get a "SSPI negotiation failed" error. I think if I can tell the Host the client's ServiceSecurityContext.Current info, I won't be running into this problem. Thanks. I'm asking what identity executes ServiceHost.Open() on the two servic ...Show All
Visual Basic database report
hello, i'm using ADODB on my vb8-access. before on vb6 i use data report designer to prepare a print, but here on vb8, how can i do that, without using crystal reports i would like to design my report just like report designer, is it possible or are there any turn around for this thanks hello, thanks for your reply, i think this is what i'm looking for, but one more thing, do you have any sample for Access-based and not SQL-Server based and also in VB8 language, the samples i got is in C# ...Show All
Visual C# Update is not effecting to physical dataset
Hi here i'm trying to add a new row to my dataGridView at runtime so i do like this DataTable dt = _dataset.Tables[ "employee" ]; DataRow dr = dt.NewRow(); dr[0] = "Nagu" ; dr[1] = 101; dr[2] = "Salur" ; dr[3] = 35000; dt.Rows.Add(dr); dt.Rows[2][1] = 600; _dataset.AcceptChanges(); _sqlDataAdapter.Update(_dataset, "employee" ); but it accepting locally but its not effecting the original database. How can i do this Is there any mistake Thanx - Nagu Hi Mahesh thanx for ur suggestion according to ur suggestion i modified my code like this SqlDataAdapter myDataAdapter = new SqlDataAdapter (); myDataAdapter.SelectCo ...Show All
Visual C++ DateTime::Now
How would I use a timer and DateTime::Now in order to string a clock that keeps up with the system's For Hours, Minutes, and Seconds There are 1000 milliseconds in a second. Assuming label1 is the control that contains the current time, the following is an example of updating the current time on a form: public partial class Form1 : Form { private System.Windows.Forms.Timer timer1; public Form1 ( ) { InitializeComponent(); if ( this .components == null ) { this .components = new System.ComponentModel.Container(); } this .timer1 = new System.Windows.Forms.Timer( this .components); this .timer1.Tick += new System.EventHandler( this .timer1_Tick); timer1.Interval = 1000; // update once a second timer1.En ...Show All
Visual Basic Class MSAdodcLib.Adodc of control adoDep was not a loaded control class
Can someone please tell me what is wrong with my project. I have been working on this project for 5 months. My deadline is the 9th of October. This morning when I tried to open my project, VB6 told me that it was unable to load my project. I tried opening form by form, but some of the forms wouldn't open and logged and error (Line 9: Class MSAdodcLib.Adodc of control adoDep was not a loaded class). I even tried to make a new project and save add the forms to this project, but they just won't add. All of them gives me the above error. All my other VB6 projects works . Please could you tell me what to do, I have one week left to complete this. I'm using Windows XP SP2, with .Net Framework, and Visual Studio 6 Enterprise Edition. I update my ...Show All
Visual Studio Express Editions VB.NET or C++, Which is best?
I want to start learning C++ and I want to know the type of applications that it is best at making and whether or not it is better than VB. "C++ is better when you deal with hardware, also the application that you write in C++ are faster than vb, but take much time to write applications, for example most of game developer prefer C++ over any managed code" I love VB. I really do do. C++ maybe faster since it's a native mode image, although CLR based assemblies maybe NGENed and converted to native mode cade, they are still dependent upon the CLR. The C++ image will be relatively small, rough, tough and able to run standalone BUT without additional libraries or APIs, it won't do much witho ...Show All
Windows Forms on the taskbar I can't see the minimized window...no button show up
can use the taskbar for such tasks as switching between open windows and starting new applications. This How can I fixe:to see the buttons on the taskbar when minimizing my window....Now I have to go in task manager to get the back the window that I have open, really weired Thank you so much, no again you just saved the live of lots of things that were about to be thrown out of the window. This is a very frustrating problem!!!! Thanks!!!! Wow I am very happy with this solutions...... but why did I have this problem ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can you edit a Model's vertices at runtime?
Is it possible to edit the vertices contained in ModelMesh Like could I get the vertices, alter their position and set the data back in the collection I ask this because for the terrain object in my game, I want it to be deformable. I've been playing with the content pipeline and my custom importer / processor / writer writes the height data as a byte array. When the object is read back, an index buffer and vertex buffer are generated in the terrain class. The vertex buffer is specified with ResourceUsage.Dynamic which to my knowledge is the only way to make the buffer read / write enabled. I'm considering altering my custom content pipeline objects to create ModelContent objects instead of my current approach, but I will abandon that id ...Show All
