Software Development Network Logo
  • Visual Studio
  • Visual FoxPro
  • Microsoft ISV
  • Audio and Video
  • VS Team System
  • Visual C#
  • SharePoint Products
  • SQL Server
  • IE Development
  • Visual C++
  • Windows Vista
  • Visual Basic
  • Windows Forms
  • Game Technologies
  • Smart Devicet

Software Development Network >> Roxanne163's Q&A profile

Roxanne163

Member List

Yasir Imran
Tamim Sadikali
Udo2
gsell
Roffern
Muhsin Zahid Uğur
csLearner
Kris Nye
Denis Ott
Dan Shookowsky
Lionel Johnson
museicon
Mark 2334
Hiney
Sunil Virmani
Troy Lundin
Rakesh Jha
mentas
mike11d11
Dave Fackler
Only Title

Roxanne163's Q&A profile

  • .NET Development Strange: Session cleared after Directory.Delete

    Hi, usually session state is cleared after runtime errors (on a Win2003 Server with .NET2 using C#). But in my case a directory is deleted including all subdirectories and files using Directory.Delete(AbsolutePath, true), don't get any exceptions but nevertheless the session is cleared. By the way: Meanwhile aren't any session operations processed. Could anyone give me a hint, please Or did anyone experienced similar problems Thank you very much in advance! Marcus Hi Marcus. To solve your problem, try creating the directory outside of the application folder. If asp.net detects any changes to the application folder, f. e. from virus scanning or anything else - the application will be recompi ...Show All

  • Smart Device Development Assembly reference

    I have the statement "using Microsoft.WindowsCE.Forms;" to take care of the fact that I am calling MessageWindow. I get the error message "The type or namespace name 'WindowsCE' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) ". I cannot find the assembly reference to add. What do I do now I am using .NET version 2.0. I am not sure why you are still getting the compile error after removing one of the using statements from WaveIn.cs, but in any case you can disambiguate by qualifying the Message class you want, i.e. instead of Message message; use Microsoft.WindowsCE.Forms. Message message; As an aside, I downloaded the library you referred ...Show All

  • Visual Studio 2008 (Pre-release) dynamically getting list of forms from project

    hi all, i have multiple projects, one of them has several windows forms (wpf)... i want to get a list of these forms and be able to open them (or if i cant get that list dynamically, at least be able to open them) from another project.. i can open a form from another project by adding its reference but i dont know the right way to do it when there are multiple forms in one project... thanks in advance :) Hello Hawash, You would also use the System.Reflection namespace to get a list of the forms. Here is the code to do such: string assemblyName = ""; // You can enter .exe or .dll names. This .dll or .exe is the one that contains the types your are attempting to query Assembly assembly = ...Show All

  • SQL Server Remove SP1 or install SP2 Dec. CTP

    This sounds trivial but it has become an issue here. We had the original RTM of SQL2005 with Reporting Services installed and running fine. We were explicity NOT installing SP1 because of a feature that was removed from reporting services (the select-all checkbox in the multi-value parameter). This feature is supposed to be back in SP2. So wouldn't you know it, somehow someone inadvertently installed SP1 in the course of doing windows updates and now users are complaining about the missing select-all checkbox. I figure my options are to either install the SP2 Dec CTP or try uninstalling SP1 (if that's even possible). Any recommendations Problem solved - I installed the hotfixes and now the select-all che ...Show All

  • Visual C++ Exception handling showing undefined behaviour. Help !!!

    Question #1 : The following code crashes in Visual C++ compiler. It fails in the expression _BLOCK_TYPE_IS_VALID(). It means that, it is deleting a bad pointer. When I give a copy constructor, it works fine but the control does not even go in the copy constructor. Why is it showing this behaviour Question #2 : If I throw a local primitive type like an int, the address of that variable matches in the catch block if I am catching by reference. But for objects, the address for the variable in the catch block changes. Why #include <iostream> using namespace std ; class Exception { char * m_pszError ; public : Exception ( const char * p ) { cout << "Exception::E ...Show All

  • .NET Development Trouble Adding Web Service through Data Source Config Wizard

    I am trying to write a web service in ASP.net and consume it in a windows forms application. This is what I am following: http://msdn.microsoft.com/vstudio/tour/vs2005_guided_tour/VS2005pro/Smart_Client/DisplayWebServiceData.htm In my windows app when I use the Data Source Configuration Wizard it will add a web reference but will not add my web service or its methods to the data sources explorer. I even tried it with one of the services from the ASP.net quickstarts: ( http://quickstarts.asp.net/QuickStartv20/webservices/Samples/MathService/vb/Server/MathService.asmx wsdl ) However, I found that if I use a web service from the tutorial above It works fine: ( http://live.capeclear.com/ccx/GlobalWeather wsdl ) Does anybody know ...Show All

  • Visual Basic How to find the number of VbCrLf's in a string?

    I have some code that adds line numbers to a richtextbox control. The code requires that there is at least 2 lines of text in the richtextbox for it to work. How do I detect if there are less than 2 VbCrLf's in a string A simple routine which will give you the occurences      Function CountOccurences(ByVal searchIn As String, ByVal searchFor As String) As Integer         Dim ipos As Integer = 1         Dim IntCount As Integer = 0         If searchIn.Length > 0 Then             Do While InStr(ipos, searchIn, searchFor) > 0      ...Show All

  • Visual C# Minimize form on start up?

    I want to minimize main form to tray at startup. When form is opened and I click on minimize icon it's minimized fine (via notify icon). But when I try to minimize it on stat up: Try this: this .WindowState = FormWindowState .Maximized; this .Hide(); ...Show All

  • Visual Studio Express Editions Treeview NodeMouseClick Event Not Working Properly

    Hello, I have the following code in a Treeview NodeMouseClick event: Try If e.Node.Level = 1 Then ListView1.Items.Clear() Dim nd As TreeNode For Each nd In e.Node.Nodes ListView1.Items.Add(nd.Text, 0) Next Else ListView1.Items.Clear() End If Catch ex As Exception MessageBox.Show("Select a category.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error) End Try If I select a level 1 node, my listview1 is loaded with data from the level 1 node's nodes. If any other level (0, 2, etc), then the listview is to be cleared. However, if I click a level 1 node and then immediately click a level 2 node, the listview DOES NOT clear. I have to click another ( ...Show All

  • Architecture VB 2005 and SQL Server Express

    Hi I'm new to using 2005, both VB and SQL Server Express. I'm trying to create a program which talks to a database on a server for my friends business (big favour!). His company has about 7 people that work there and each of them will have a copy of the VB app installed which will interface with the database. Personally i have quite a bit of experience with standalone VB apps, but i've never really approached anything of this size before, but I'm trying doing this as a) a favour to my friend and b) to learn VB and Sequel a little better as i'm looking to change my job in a few months time. There are no full time IT staff there, any backups will need to be either done automatically or by an office administrator with limited IT skil ...Show All

  • Visual Studio 2008 (Pre-release) WindowsFormsHost object's VisualBrush

    I couldn't get the visualbrush of the grid in which I have added object(Windows control) through WindowsFormsHost. This is, unfortunately, by design (AFAIK) due to the interop factors with HWNDs. More on limitations of CrossBow here . HTH, Drew ...Show All

  • Visual C# HOW DO I: Insert on a table, using tableadapter?

    Hi, I guess my subject said a lot of my problem, but anyways i will try to explain it. this is it: Im new at this c# stuff, so i was tryin' to insert a row, into a two colums table. after tryin' with the DataRow Class, I got to the "tableAdapter.insert" method. it worked once... but I could'nt commit the changes.. not even using the AceptChanges method. anyways you get my point... anybody can help may you are using VS 2005 your data which juste be inserted still in your dataTable i t means that you need to update it to your database ( for example SqlServer ) to save your changes tableAdapter.update() // table Adapter is a name of your dataadapter of the table that ypou want to update it to database h ...Show All

  • SQL Server from sql2005express to sql2000 & vice versa

    My asp.net website is using sqlexpress2005. I am planning to use sql2000 with this existing website. My questions: 1. How can I transfer the database definitions and actual data from 2005 to 2000 is this possible 2. What if I have exisiting database in sql2000, can I convert it to be used in sql2005 3. should I manually recreate the database when converting from one version of sqlserver to another and how abt the actual data PLS HELP. big thanks! There are lots of options and lots of caveats... When a SQL2000 database is attached/touched by a SQL 2005 instance it can not easy be moved back. To go from SQL2000->SQL2005 its as simple as back/restore or detach, move file, attach. Moving data from ...Show All

  • SQL Server Check text file has been updated or wait

    In SSIS, I need to be able to check if a text file has been updated. If it hasn't then go into a wait and check 10 minutes later. Keep looping until the file has been changed. Any suggestions of where to start. I'm fairly new to SSIS and I have been reading up on the various controls, but I'm not sure the best way this should be done. Terry ...Show All

  • Visual Studio 2008 (Pre-release) Updating a self-hosted service

    Context I'm designing a windows service to run a self-hosted scenario of services that are loaded from GAC. I've created a "drop" folder, in which to drop the .dll of the service I want to host. My service watches this folder and when a file has been dropped in, I install it into the GAC and load the ServiceHost. Now, my trouble is that when I'm "updating" an existing hosted service, it does not reflect the updated code that I've installed to the GAC, even though I close the ServiceHost and create a new service host from the GAC. It seems to cache to original service somewhere until I actually restart my Windows service. Question Is there a way to dynamically change the hosted service without ...Show All

©2008 Software Development Network