Software Development Network Logo
  • Smart Device
  • Architecture
  • Windows Live
  • Windows Forms
  • Windows Vista
  • Visual Basic
  • Visual C++
  • VS Team System
  • Visual J#
  • Visual Studio
  • Visual C#
  • SQL Server
  • Microsoft ISV
  • Visual FoxPro
  • .NET Development

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

cvajre

Member List

MisterChief
EWoodruff
tech710
flipdoubt
eddie_r
AshClarke
Andreas Wolff
timmid
thinhbui
Bryan D.
Sneha Desai
FxCop
acole
BrandonNC
c#oder
phantastikfan
FrAgFo0d
abdu
Rodz
engaref2000
Only Title

cvajre's Q&A profile

  • Visual Basic Using the progressbar

    This is what I am trying to do: Copy a file from my resources to the temp directory. Get the size of the file in my resources in bytes. For every byte that is copied I want to step the progressbar by 1. The part I am having troubles with is getting the size of my file. I want to get the size so I can set the progressbar's maximum property to the same value. Also, would it be a good idea to use a background worker for this Thanks. Then simply total up the size of the files. Getting the file size in bytes using fileinfo. When each file copies then update your byte count and compare to the total byte count, calculate a percentage ...Show All

  • Visual Studio Express Editions Configuration Manager In C# Express

    How to change Configuration Manager in C# Express 2005. I try to open Configuration Manager dialog box but Configuration Manager menu is disable. i try with this step: 1. Select Solution in Solution Explorer. 2. Choose menu Build - Connfiguration Manager am i miss something thanks. best regards, OktaEndy You need to reference the System.Configuration (version 2.0) library in your Solution References. ...Show All

  • SQL Server SQL Code converting a String to a number

    I am trying to write a SQL code to insert a record into a ODBC table. The variable 'lscus' holds a 12 character string for customer # e.g. 000000000022. The variable captures and displays a 12 character string, but when the INSERT SQL is run it converts the variable into a number e.g. 22. Why is it converting to a number How can I Insert a string value for 'lscus' Thanks for your help Private Sub cmdAddRecord_Click() On Error GoTo Err_cmdAddRecord_Click ' Create todays date into a Format "YYYYMMDD" string Dim stDate As String Dim stTime As Double stDate = CStr(Mid(Now(), 6, 4)) + CStr(Mid(f ...Show All

  • Visual C# File Upload with restricted extensions not working

    I have a file upload class, and in it's constructor it needs to be able to take in an array of possible file extensions (using the new params keyword) I won't know how many or what extensions are being passed in, but once they are only those passed in are allowed to be uploaded. The class I'm having problems with inherits from it's parent class that works fine and doesn't restrict anything. The new inherited class compiles fine, but still allows anything to uploaded, even when I've specified ".doc" as the only type allowed. Here's how one would create and use it: UploadFileOptions  myUpload = new UploadFileOptions("C:\testfiles\", FileU ...Show All

  • Visual Studio Team System How to show my own control in Work Item Editor

    I can modify the process template XML to add a custom tab besides the tabs like "details" , "Links" in work item editor. Say I add a new tab like "Related Work Items". Now I want to show a drop down of work items from where user will select one (or more) to set as related work item. Q1. How do I show a drop down/picker of another work item (can't use existing LinkControl) Q2. How can I host my own control in the new empty tab Please help me. I hope these features will be integrated in the final release. Otherwise the Work Item Editor will have very limited extensibility feature. Thanks Tony. LinksControl is already available in one ...Show All

  • Visual Basic varptr

    Hi, I am trying to migrate VB6 code to VB Express. Unfortunately I am using an activeX object which has methods that expect parameter to be passed byref. The old VB6 code is something like activeX.methods(3, varptr(x),1) How can I let the same work in .net Thanks Luca These two may be of help System.Runtime.InteropServices.GCHandle.Alloc'   System.Runtime.InteropServices.GCHandle.AddressOfPinnedObject'  http://www.codeproject.com/vb/net/Marshal.asp shows how to use them which may be your applicable for your solution. ...Show All

  • Visual C# Requirements for a C#.NET Windows Application

    Could anyone pls tell me the minimum System Requirements for a C#.NET Windows application. ie. Requirements like RAM, Processor, Hard Disk Free Space etc. There is one important change: .NET 2.0 no longer installs on Windows NT 4.0. Windows 98/Me are still supported, unfortunately... ...Show All

  • Visual Studio Team System VSTS Team Builds - Project Build Order

    VSTS Beta 3... I have a single sollution with approximately 10 projects - I need certain projects to build in a particular order. Setting up my project dependencies and building the sollution locally works fine...when I look at the Project Build Order in the Solution...it looks something like this: A B C D E and it succeeds on build. When I build via Team Builds, the build order ends up like this: B A E D C And it fails on build. How can I correct this thanks in advance, dec. Problem fixed. A couple of GUID keys where different in our .sln file compared ...Show All

  • Visual Studio Express Editions Build doesn't work

    Every time I build a project and get a .exe file I can't send it to anyone. Why I have one file Kekke.exe in the debug folder which I can open but when I tried to send it to my other computer it couldn't open it.. What happens 1. I asume that you build a native exe that uses the CRT in a DLL. So you need the DLLs of the CRT. http://www.codeproject.com/useritems/vcredists_x86.asp 2. You are not allowed to redistribute the DLLs of the Debug build, so only copy the Release Builds! ...Show All

  • .NET Development Help : "error: 40 - Could not open a connection to SQL Server"

    I'm using VS2005 and SQL2000. I created a database name "myDatabase" in SQL Server 2000 and built a website that connet to this database. When I'm running this website in VS2005 IDE (press F5 or Ctrl-F5), everything is OK. I publiced this site. When I connect to database on my computer, everything is OK also, but when I connect to database on another computer, an error occurred like this : "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, ...Show All

  • SQL Server SQL Server authentication mode in 'Transfer SQL Server Objects Task' gives error

    I was trying to transfer a SQL Server 2000 database  to SQL Server 2005 using SQL Server Objects Task. However, The following error message was encountered:   "[Transfer SQL Server Objects Task] Error: Execution failed with the following error: "Cannot apply value null to property Login: Value cannot be null..".“   Once I changed the authentication mode from SQL Server authentication to Windows Authentication for the connections in connections manager, the package got executed successfully. Can anyone tell me why the package was giving this error with the SQL Server authentication, while works fine ...Show All

  • Visual C# How do I test a button when running an event?

    I have a start button which runs a section of code continuously - how do I test the stop button while this code is running Colin, it is usually not a good idea to have an event executing for a long time, as while you are serving an event, the other events get blocked. This amounts to freeze the user interface. If you plan to have a lengthy task running in response to a button click, you should probably use a Thread, or the ThreadPool. It's fairly easy to use, and it's well worth the little time it takes to set them up, as the code becomes cleaner and easier to manage. Anyway, there is another option, ...Show All

  • .NET Development connection to access db

    HI people, i have visual studio B2. i try to connect to a access data base with control bidingsource but after i select witch table i want i’ve get this error: "Some updating commands could not be generatied automatically. The error message was: ERROR [HYC00] [Microsoft] [ODBC Access Driver] Optional Feature not implemented" Any sugestions Thanks Yupypt I think you have problem with "UPDATE Qurey". You have to be carefull with updating the PK Field. Anyways, as we cant see any code and the Table specaification it would be hard to know why this getting this error. Please, post some related code a ...Show All

  • .NET Development Framework 1.1 and Citrix Metaframe

    Hi There I am running a WinForm application with .NET framework 1.1 on a Citrix Metaframe. Is it possible to get the user's actual machine name and not the serveur name  I am currently using System.Environment.MachineName of the .NET framework and it gives me the server name. Arnaud I've got a solution : the clientname session variable is available as environnment variable. Just do System.Environment.GetEnvironmentVariable("CLIENTNAME"); Arnaud ...Show All

  • .NET Development How do I check if object locked?

    Is there a way to access the list of locked objects kept by System.Threading.Monitor The purpose being, I have a function that I only want called if the sync object in the class is in a locked state.  If the sync object is not locked, I want the function to throw an error, but how do I check if the sync object is locked Thanks. use a delegate. . . in the firstline after aquiring the lock, set the delegate to the method you want to call. in the last line before releaseing the lock set the delegate to null. calling the delegate from anywhere in the program will throw an error if the sync object isn' ...Show All

©2008 Software Development Network