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

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

Cavetroll

Member List

Claudio Perrone
Rick Delahanty
The Dwarf
kdong
ReneeC
Adam Miles
Nath_UTSA
Steven P.
RameezM
Gosovic
2006
minigendo
JimElNino
mshytech
Tryst
Bjoern.Greiff
bbJosh
Mr Dave
shahidferoz
tjorvi
Only Title

Cavetroll's Q&A profile

  • .NET Development Programatically Setting the Priority of the Windows Service to Low.

    Hello, I have written a windows service. But the service priority is normal. I need to set the priority to low or lowest. Does anyone know how to do this programatically using C#. Thanks In Advance With Regards Sunil Dutt Yes, Priority of the Service means the Priority as indicated in the task manager. I tried by assigning the AppParameters in the Regedit to -p 64 but my service is still showing priority as Normal and not as Low. ...Show All

  • Visual Studio Express Editions Run .exe in Project Directory

    I'm trying to create an app that runs an .exe file located in the project's directory (eg the url is "project name\file.exe"). I've tried several Process.start methods, including process.starting a method with the StartInfo.filename property set to ".\\Project Name\\file.exe" but nothing works. Please help. Thanks, Ian Sorry... wrong forum. I'm using VB Express 2005. The project is an installation wizard. (I like ClickOnce but I hate the UI of the ClickOnce Wizard so I created my own wizard UI). I published the app with ClickOnce, and copied all the pub. files into my project directory, in a folder "ClickOnce". Basically, what I want to do is have an installation form with a progress bar control on it ...Show All

  • Visual Studio Express Editions download file from http web page

    i want to download a file from a website does anyone know hoe this can be done in visual basic Try My .Computer.Network.DownloadFile( _ "http://www.freewebs.com/reneecc/index.htm" , _ "c:\test.htm" ) Catch ex As Exception MessageBox.Show( "Reason: " + ex.Message, _ "Could not copy File" , MessageBoxButtons.OK, _ MessageBoxIcon.Exclamation) End Try ...Show All

  • SQL Server How to create CHECK CONSTRAINT with SMO

    I am using C# and SMO to create tables. Have figured out how to create the tables and foreign keys. but not how to add a Check Constraint in code as in: ALTER TABLE [dbo] . [BackgroundChecks] CHECK CONSTRAINT [FK_BackgroundChecks_BackgroundCheckTypes1] Any help is appreciated. On second thought, you probably want to work with the ForeignKey object. Here's an example from BooksOnline that should help: 'Connect to the local, default instance of SQL Server. Dim srv As Server srv = New Server 'Reference the AdventureWorks database. Dim db As Database db = srv.Databases("AdventureWorks") 'Declare a Table object variable and reference the Employee table. Dim tbe As Table tbe = db.Tables("Employee", " ...Show All

  • Visual C# Load a Form Inside a Panel

    Hi The Main form has a Tree view and a panel. There is a Tree view Control In the Left side of the form.On clicking a node i have to load a from which is in a specific path(dll) in to the Panel. Assembly objAssembly = Assembly .LoadFile( @"D:\C#_Test_App\LoadForms\form1\form1\bin\Debug\form1.dll" ); object objFrm = objAssembly.CreateInstance( "form1.Form1" ); //((Form)objFrm).Parent = panel1; (( Form )objFrm).Show(); I dont know how to make the Form Loaded into the Panel. Pls help me Hi You can load a form inside a panel. But before doing that u need to set the form's(Form1) TopLevel property to false during run-time. sample code for yur reference //creati ...Show All

  • .NET Development Binding My Application to SQL Server 2000 ??

    Hi Firstly many more thanks for any collaboration and help I have the following situation :- I work on a very small text exchange application among clients connected to a SQL Server 2000 database through Windows Forms App. the problem is generally : how I can handle the lost of the connection e.g. : how I can update a field in the database and say hey xxxxx is now offline WHILE I do not have any actual live connections to the Data Source ( think of this lost during to any network problems). But I want to know another important aspect !! in the SqlConnection object we have an StateChange event , O.K I add handler on that event and Stopped the SQL Server from the Service Manager !! the event does not respond If ...Show All

  • Visual Studio Express Editions Adding to listveiw on another form?

    I am making an application which has a parent and several children. I have benn using VB6 for years but the higher object coding is getting the best of me. I have a listbox on "form1" form and would like to add to it from another form "form2". I want to add to it when some serial data comes in. I have made a public property on the "form1" to add the value tothe listbox but it does not work. Any help would be awsome.. Here is the property that i call from "form2" to add to the listbox. Public Property Listbx1Add() Get End Get Set ( ByVal value) ListBox1.Items.Add(value ) End Set End Property Well I guess there is something ...Show All

  • Software Development for Windows Vista Sidebar gone

    Hello, My sidebar has diapeared, gadgets still work on desktop. But if I try to open the sidebar there is know response. I'm running vist build 5384 Any ideas TA This is a programming forum. If you have usage problems, you can ask them in the newsgroup linked in the welcome message. This thread will be deleted in 7 days. ...Show All

  • Visual Basic Public Folders and Granting Access

    With .Net 2.0 Framwork the ability to update permissions to the ACL was added. The one thing that I have yet to find is the ability to make that folder and public folder and grant users permissions. Has anyone come across how to do this I believe you can set this by using the File/Directory. Take a look at the System.IO.Directory/File SetAccessControl http://msdn2.microsoft.com/en-us/library/system.io.file.setaccesscontrol.aspx   http://msdn2.microsoft.com/en-us/library/system.io.directoryinfo.setaccesscontrol.aspx ...Show All

  • Windows Forms DataGridView

    I have a DataGridView on a form and I want the user to be able to edit several different fields in any of the rows displayed. After editing the fields (in possibly many rows) I want to find which rows in the DataGridView have been edited. How do I find out which rows in my DGV have been edited Thanks, Dave CAn you clarify when you want to detect a change When it happens for each cell After all cells have been edited See the properties and events of the DataGrodView class or classes for its rows and culumns. The properties names IsCurrentCellDirty and IsCurrentRowDirty might be helpful ...Show All

  • .NET Development Error adding web reference: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by

    Hi there, I am building a new program but have fallen at the first hurdle. I am unable to add in any web references from the Yahoo Marketing API (ews). When I point the Add Reference wizard to the wsdl, I get the follow error: There was an error downloading 'http://ysm.techportal.searchmarketing.yahoo.com/docs/wsdl-sandbox/V1/LocationService.wsdl'. The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF I've tried adding an app config file with the following: < system.net > < settings > < httpWebRequest useUnsafeHeaderParsing = " true " /> </ settings > </ system.net > Still no luck, and I dont see how doing the above would have a ...Show All

  • Visual C++ Need help! Not able to get UdpClient BeginReceive work in VC++/Could this be a complier bug!?

    Hi, I need an urgent help. I am developing a socket application in VC++ that uses asynchronous connnection. After doing search on google, I found the following link http://msdn2.microsoft.com/en-us/library/system.net.sockets.udpclient ... First of all, thanks for microsoft team for this post. However I have couple questions concerning the C++ code in the link. Before posting my questions, first let me show you how I did set up a VS2005 C++ project to test this code. To create a test project, I do following File->New->Project->(Other Languages)->Visaul C++->CLR->Class Library Fill in solution name and put in the following code. ----------------------------------------------- TestAsynCallback.h ----- ...Show All

  • Visual Studio VS2005 TS SP1

    Every project can not be complie after I installed SP1, some messages be show in error list box like"C2144,C2143,C2059... at file string.h,tchar.h,stdio.h,stdlib.h...", why I recommend asking this question on the Visual C++ General forum as chances are big that someone there encountered the same issue and found a solution: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=29&SiteID=1 ...Show All

  • SQL Server SQL 2005 BUG - RIGHT OUTER JOIN on View

    I am having no luck reporting this bug on the feedback link. I type in all information and click "Submit" and it just refreshes the page. So, here it is, I hope someone from MS will post this for me. The problem appears to be a RIGHT OUTER JOIN on a VIEW causes the query to never return, or return very, very slowly. In 2000 SP4 the query returns in 2 seconds, in 2005 (2153) 64bit, it ran for 42 MINUTES before I killed it. The is a duplication script to show a problem I have. This script uses the AdventureWorks database to demonstrate the problem. This is script is not the best, but shows the problem. Please no comments on how to work around the problem. This query is generated by a user using and AdHoc reporting tool. I have NO control ov ...Show All

  • Visual Studio Life without source safe?

    I have used source safe in the past and it was very helpful. I don't have a copy of it in the place i work right now. It's going to be a while before we get that in. I just want to know that if 2 developers work on the same project (saved at a shared location) and ALWAYS work in different forms. Will this cause any problems Thanks for your time!! MSDN Premium (the level where you get Team Suite) comes with VSS, but I don't think it's on the same DVD. Team Foundation Server is pretty complicated to install -- it requires specific versions of SQL, Sharepoint, etc. -- but if you follow the instructions exactly you'll find it's well worth it. ...Show All

©2008 Software Development Network