Software Development Network Logo
  • Visual J#
  • Game Technologies
  • Windows Vista
  • VS Team System
  • Smart Device
  • Microsoft ISV
  • Visual C#
  • Visual FoxPro
  • VS Express Editions
  • Visual Studio
  • Windows Live
  • Windows Forms
  • Visual Basic
  • Visual C++
  • Architecture

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

gpetrosh

Member List

stepanielauym
NitinP1
Klaus R.
wildcat
phikappa
Mick_RW
Alex J.
Kimse10
renaud.besnard
Boris Vidolov
eugen_safronov
karlytoz
Pierre Drofwarc
jonalder
M.A.D.
DMG
TheBestKeptOne
MMA_man
New-Bee
Aamir Iqbal
Only Title

gpetrosh's Q&A profile

  • Visual C++ notification message from CSliderCtrl when starting to drag

    Hi all, in my application, I have a CSliderCtrl and also one timer. at the timer event, I read the values from an instrument, and refresh the interface, also the CSliderCtrl. For some users, the interval of the timer is too short to change the value before it is refreshed. I want to kill the timer when the user starts dragging the slider and agin start it after he stops. right now I process the NM_REALEASEDCAPTURE message for getting the values from the slider. I did not find any NM_LBUTTONDOWN or so notification. can anybody tell me the correct message to process . thanks, Hardik ...Show All

  • Visual Basic Need Help with Combo Box at Page Render

    Hi, I have combo box inside a data grid. At page render event I want to have additional entry as "Select One..." with value -1 but display the existing old value as default value in drop down list. To get this result first I create a object of ListItemCollection, I add entry as "Select One..." with value of -1 and then assign that ListItemCollection as a datasource to drop down list, but with this method I cant compare values because Values changes to Texts and both text/value pairs in list item have same values as that of list item text I am using following code Dim cmbSegmentation As DropDownList Dim lstOldSegmentation As ListItem ...Show All

  • SQL Server Getting sample databases in Management Studio

    How to get sample database AdventureWorks and AdventureWorksDW deployed in Management Studio. I selected to install sample database entire feature on my local hard drive and I can see it did installed all the .mdf,.ldf,.dim,.cube and the rest in C:\Program Files\Microsoft SQL Server\90\Tools\Samples\ How can I get the database in Management studio. I tried to use Attach db and it didn't worked, gave me following error Msg 1813, Level 16, State 2, Line 1 Could not open new database 'AdventureWorks'. CREATE DATABASE is aborted. Msg 602, Level 21, State 50, Line 1 Could not find row in sysindexes for database ID 8, object ID 1, index ID 1. ...Show All

  • Visual Studio Express Editions Registration

    Anyone else getting endlessly repeated requests from VB 2005 Express to register   I've registered 4 times so far, and still the balloon keeps popping up in the system tray to remind me to do so. I installed from the .img CD download, and there's no option anywhere to enter a reg code.  Does someone know of a registry fix that will turn this off   Nick Savoiu wrote: Hmm, I have the same problem. However, I don't quite understand what do you mean by "For optional registration, Visual Studio has no way of knowing you actually registered or not. " If I enter a registration code shouldn't th ...Show All

  • Visual Studio Tools for Office Button is not getting removed after uninstalling the Word add-in

    Hi All, I'm creating and installing a Word Add-in. The add-in creates a button on standard toolbar. When I uninstall the add-in the button is not getting removed. The add-in is the basic add-in from the link http://support.microsoft.com/default.aspx scid=kb;en-us;Q302901 as it is. The code in OnBeginShutdown is as follows: public void OnBeginShutdown(ref System.Array custom) { object omissing = System.Reflection.Missing.Value ; System.Windows.Forms.MessageBox.Show("MyCOMAddin Add-in is unloading."); MyButton.Delete(omissing); MyButton = null; } Can anyone let me know what am I missing I've even tried using oCommand ...Show All

  • .NET Development How to make a DIGITAL SIGNATURE if the private key is not exportable??

    Dear All: I have a private/public key pair in windows certification store. How can I use the private key to make a digital signature if the private key is not exportable X509CertificateStore store1 = X509CertificateStore.LocalMachineStore("My"); bool flag1 = store1.OpenRead(); X509CertificateCollection collection1 = store1.FindCertificateByKeyIdentifier(Convert.FromBase64String(KeyName)); store1.Close(); if (collection1.Count == 0) { return null; } X509Certificate certificate1 = collection1[0]; if (!certificate1.SupportsDataEncryption) { return null; } RSA rsakey = certificate1.Key; RSACryptoServiceProvider rs ...Show All

  • Visual C# How to share 2.0 app/user settings across multiple projects in a solution?

    I'm working on understanding how the app.config and user.config settings work (2.0 way), and everything is fine when I'm working in one project. I'm going to need a way, though, to share the app.config and user.settings across mulitple projects. So for example when I'm in "ProjectB" I need to access the namespace "ProjectA" settings... ProjectA.Properties.Settings.Default.someVar; The problem is it keeps saying that it can't accesss Settings in accessible due to its protection level. I don't see why if I've added ProjectA is a project dependency for ProjectB and added the reference to the ProjectA namespace, why I can't 'see' the Settings ...Show All

  • .NET Development Best practices with SQL and C#

    Premise: A standard customer database program with INSERTS, UPDATES, SELECT, etc. Since data access is going to be used on a frequent basis, how best to code the SQL portions 1) Hard code the SQL into a class, many different classes for multitude of tables, maintain as a stored procedures, etc. 2) Is it best to open the connection just before the SQL call and close immediately after Thanks in advance, Lance Can you elaborate a bit more on 'why stored procedures are best practice' 1. Speed 2. Security 3. Seperation of data tier 4. less network traffic If you have dynamic querie ...Show All

  • SQL Server Multi value parameters

    Hi All I'm trying to initialize (checkmark) only the first selection of a Multi Value list, (built from an SQL), I can initialize all or nothing. I tried to use (0) next to the value field name in the default value, but that causes an error (Field is not valid because of the(0)).   Thank you Trentino         Hi Lev     sorry for the slow response, I did try to use function First(), I get this error "Aggregate function cannot be used in report parameter expression"   Thanks Trentino ...Show All

  • SQL Server How to retrieve data from query and link the data to a data number?

    i'm doing a project on SQL Server 2005, i'm stack in searching the data and can't link the data in the data number.. can someone help mi with the programming code as i can search for the words in the table but i can't link with the data number.. first thing is how to search the keywords from the tables Second thing after u search the result ,how to link the result to a number related to the result ...Show All

  • SQL Server SSIS Doubts

    I am having this question in my mind from when I started using SSIS.. In a package I have an OleDB source and a flat file destination. and I hook up the source to destination in SSIS and run the package.. it works .. fine.. but internally what is done does SSIS performs BCP out But, bulk insert task is already there in BIDS then whats the difference of using this way ...Show All

  • Windows Forms How I can send one form resualt to another form?

    Hi How I can send one windows form resualt to another form May costumer list is very big and I don't want use combobox to select it. I want make new form an let serch list tehn select and send result to some Object such as combo box or DataGrid in may main form. How I can make new form For select custumer name and then send it's resualt to my main form Object. I can do this for msgbox . how I can send selected data Hi, Just create a public property or variable in your form2 that holds the value of what the user placed in that form. Just access this on the other form: ex: form2.ShowDialog(); // wait for th ...Show All

  • Audio and Video Development What is the good IDE Tool for iHD programming?

    Hi, I'm totally new to this iHD / HD DVD world and I'm exicted that I found this forum. Hopefully I'll learn a lot from and contribute some opinions to this forum. My 1st question in iHD programming is what IDE tool should be used in programming iHD And my 2nd question is how to run / preview all 3 samples from HD DVD Programming Guide. Thanks, -mh Hi mh, Welcome, and glad to hear you're excited! :-) At the moment we are using Visual Studio to do development, since iHD is XML and ECMAScript. Visual Studio provides both XML and ECMAScript authoring support, as well as ECMAScript debugging. You can a ...Show All

  • Visual Studio Express Editions the code has some problem

    Hi, I am using VB express 2005 to create an interface to retrieve data from Excel spreadsheet then store it into my Access database. I am able to retrieve data and store it in a dataset then display it in a dataGridView. But I am not sure how can i store the data into an Access database. I tried to connect VB to Access by opening a connection and then create a table in Access. I created a DataGridView and bind it to this table. I can do normal insertion, deletion to the table. But when i change the content of the dataGridView to my spreadsheet by writing some code then do the normal save as usual, the content in the ...Show All

  • Visual Studio Team System TF80071 connecting MPP to Team project

    Hi, I'm trying to connect MPP with my Team Server. When I click "choose team project" I get the dialog that list the projects. I select one (no matter which ) and get error TF80071 "team foundation encountered an error while acessing the work items database..." I followed every advice in the other thread regarding this error, including changing the mapping and turning off the connection to the office server (which I don't use). i still get the same error. Any idea what's wrong Thank you, Ken Hi Ken, Can you create a config file (WinProj.exe.config in the folder where Wi ...Show All

©2008 Software Development Network