Sivasql2005's Q&A profile
.NET Development System.IO.File.Encrypt do not work
Hello, I been searching the forum and web and can not find any answere to my question so i am hoping someone can give me a clue to why this simple function do not work for me. Problem i am facing is the function: System.IO.File.Encrypt(path); gives me a exception with -->"inccorect function" i have tryed the following code : System.IO.File.Encrypt("c:\\temp\\TestFile.txt"); System.IO.File.Encrypt(".\\TestFile.txt"); System.IO.File.Encrypt("TestFile.txt"); and i know there file is there :) full code: ------------------------------------ String path = "TestFile1.txt"; using (StreamWriter sw ...Show All
Windows Forms DataList in Window Forms
I mostly work with Web Forms but have started to work with Window Forms. I need to create a Sticky Label generator (like those stickers with your address on it). For Web Forms I just had to bind the database table to the DataList and Set how many columns and which direction and i was done. How would i create this with ...Show All
Windows Forms Windows Application Deployment
Hi Windows application developers :) i'm web developer guy, i just wondering if i can run a.net window application without .net framework,, mmmm for sure not without framwork ( sure we need the framework, mscorlib.dll, system.dll ...etc ) in other word can i deploy my windows application by XCopy concept (just copy the needed libraries without any previous installat ...Show All
Windows Forms How to create a loading Winform 1px border style?
hellow, everyone. Do you know how to create a loading Winform 1px border style Hi Scott, Is it possible to change the color of the "Title bar" in Visual Studio 2005. I've search all the properties and found not related to Titlebar /backcolor. Let me know if is possible to make API calls or Form properties to modify the Title bar color. I know themes can help but I am creating application that specifies a color scheme. p.s. I am using VB.net with VS 2005 IDE. thanks, Allan Marshall ...Show All
Visual C++ AFX_MSG_MAp
Hello, in the message map often you can see //{{AFX_MSG_MAP(<the Dialog>) <something> //}}AFX_MSG_MAP Are these comments only for highlighting Can i delete these comments or they are important code for MFC Application Thanks Visual Studio 6.0 used them to find out where are the pieces of code that Class Wizard needs to change but in Visual Studio 2002 and later they aren't used anymore. ...Show All
.NET Development TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; dataSet.Klienci.AddKlienciRow( klientRow ); int result = this.klienciTableAdapter1.Update( dataSet.Klienci ); [/CODE] I got 1 in result variable so i think that database was updated. No my dat ...Show All
Visual Studio Team System Extraction rule
Hi all, i'm new member for this group. I'm currently exploring VSTS. i want know about Extraction rule. Can any one plzz explain clearly. regards rekha Extraction rules are used to extract a value from a response and which can then be used in another request. This is useful if you have some dynamic data that changes for each iteration of a webtest. You can use an extraction rule to pull this value from one response and then bind it to another request. Check out this help link for more info: http://msdn2.microsoft.com/en-us/library/ms404703.aspx ...Show All
Windows Forms Sample Code to Re-Use MenuStrip items directly as Context Menus without having to create the menu twice.
Though I would just share this because it has been a big annoyance since VS.NET 2002 for me, now with 2005 I found the menu's are still missing one simple feature... HOW DO YOU RE-USE A MENUSTRIP OBJECT AS A CONTEXT MENU Here is one answer that I found that appears to be the simplest, and allows me to use the built in menus again. (previously I resorted to 3rd party menus because I usually reuse my main menu portions as context menus) Steps: - Add the Class Listed below to your project. - Populate the Main Menu as normal, EXCEPT use the Class below, "ContextMenuItem", instead of the normal ToolStripMenuItem to create the parents you ...Show All
Visual Studio Team System How to get code coverage from Web Tests?
Hi, I'd like to get code coverage information from Web Tests. I configure the testo configuration in order to instrument the Web Site. I Run my web test but no coverage information was generated. Is there any additional Step Thanks Hello MunjalD, Unfortunately, when I attempt to follow your example in #1 above, I get the result that was originally reported. I have a solution with a Web Service project and a test project. The unit test I am running is a data driven unit test. I enabled Code Coverage in a new test configuration and set it as the one to be run. I ticked the checkbox for the Web Service in the list of assemblies. When&nbs ...Show All
Windows Forms A Copy of Windows Forms Editor within a Web Browser
Hello, I am about to embark on a project that requires a drag and drop form editor, which would allow a user to customize a form for use in the online administration of a website. This must effectively be a carbon copy of the form editor available with Visual Studio 2003 and must be located within a browser frame. Is this possible to implement with Windows Forms Any help would be greatly appreciated. Regards. ...Show All
SQL Server Recovering from a lost log file
I'm trying to make sure that we're following the "best practices" with SQL Server and I have some questions about log files. One general DBA rule is that data files must be on a different device than log files. This way, you can lose either disk and still recover all committed transactions. If you lose the data disk, you restore from backup and then rollforward all of the transactions that are in the log file. If you lose the log disk, you roll back uncommitted transactions and then create a new log file. This scenerio doesn't seem to be supported by SQL Server. It looks like SQL Sever can deal with a failed data disk but, it ...Show All
Visual Studio Cracking the DDEX nut
Ok, so I've gone and written a handy-dandy ADO.NET 2.0 provider for SQLite and decided to look into the DDEX side of things just for completeness. Just to get something on the screen, I followed the chapter entitled " Registering a Non-Package-Based DDEX Provider" and am having trouble getting it to show up. Under the SupportedObjects subkey for my guid, I've added the keys: DataConnectionProperties DataConnectionSupport DataSourceInformation According to the documentation, "You must provide at minimum three keys for the default objects supported by all providers that support ADO.NET" and there they are. I also entered the appropriate keys i ...Show All
Windows Forms How can I check for Null dataset
I wanted to check for an empty dataset which is being returned from a datagrid. How can I do that Dim myDataSet As DataSet ' this code returns the dataset of datagrid dgmonth. myDataSet = CType(dgmonth.DataSource, DataSet) so I wanted to write if myDataSet = nothing then exit sub end if but this if..then loop gives an error. I will appreciate ...Show All
Visual Studio 2008 (Pre-release) Creating a WinFX Windows application GPF's Visual Studio
Hello All, I just installed the SDK, components and add ons and wanted to create a new WinFX Windows Application. I select it from the wizards, the ide starts and then GPF, every singe time. Anyone thanks Ralph GPF shouldnt be caused because you created a WinFX app. You might want to check your system health. The following situations cause GPFs. ( web source ) one application trying to use memory assigned to another application Running an application with insufficient resources Using improper hardware device drivers Corrupted or missing Windows files Applicatio ...Show All
Visual C# Application object model question
Hello, I'm trying to implement an application class like this: http://msdn.microsoft.com/VBasic/default.aspx pull=/library/en-us/dndotnet/html/automationmodel.asp But I can't get the Application object to work; the code is: private static readonly Application instance = new Application(); public static Application Instance { get { return instance; }   ...Show All
