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

Software Development Network >> rpsingh rana's Q&A profile

rpsingh rana

Member List

jciurlin
AZ-xyz
moimoiiomiom
Duncan-Countrywide
g0l3m
bin joy
Bob_Dineen
Mel MacMahon
Miroslav Kulha
tmstewart
MarcCBrooks
Carl Perkins
Code Dragon
moshebs
Debra Dove
bsoft16834
Steve_King
Des Geraghty
Jake2
Kazi
Only Title

rpsingh rana's Q&A profile

  • Visual Basic Inserting large numbers into a byte array

    I have been dealing with this problem for months now and have basically been avoiding it. I have a program that can load a file into a byte array using the following: Public Class Form1 Protected b() As Byte Private Sub LoadFile(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_LoadFile.Click Try Dim open As New OpenFileDialog() With open .CheckFileExists() = True .CheckPathExists() = True .Filter() = "All Files (*.*)|*.*" .FilterIndex() = 0 .Multiselect() = False .SupportMultiDottedExtensions() = True .Title() = &q ...Show All

  • Visual C# How to determine file reading progress

    I am using streamreader to read lines of text from a file. I would like to indicate on a progress bar the status of the reading process. What would be the best way to determine where I am within the file so that I could divide this number by the filename.Length member to display in my statusBar I'm having trouble finding the right method for indicating where the file pointer is... You don't use Control.Invoke to read the file. You use a different thread to read the file, then Control.Invoke from that other thread to update the UI. (The delegate you pass in to do the update will actually be executed in ...Show All

  • Visual C# Thread safe wrapper around generic dictionary

    Could someone give me a pointer as to how I might implement a thread safe wrapper around a genric dictionary   I've written thread-safe dictionaries in C# 1.x by inheriting from the DictionaryBase but I'm a bit stumped as to how to acheive this using Generics. TIA Danny Tobin, thanks for the feedback.  In the absence of any other guidance over the last month I implemented the first option, the 'sub'-class.  Not elegant but it works.  I am very much a threading newbie so to be honest the discussions you've been having with Tag have largely gone over my head. All I'm doing in my class is usi ...Show All

  • Windows Forms Parent dataset in child form

    Hi guys I am developing a MDI applcaition using Vb.net 2003 The parent form has dataset Ds1 which has 7 tables(one of is tblcustomer). The parent form allow to users to select customers from the tblcustomers or add new customer(which opens the new Child form -- to add new customer) How can i add the new customer to the parent dataset and show the new customer in the parent form without clear and refill the dataset. Any help/direction would be much appreciated Thanks A One way would be to pass your dataset to the form child form public _DS as dataset   Then when you declare a new child f ...Show All

  • Visual Studio 2008 (Pre-release) WPF in MFC App

    hi all,   I am experimenting adding WPF controls to an existing MFC app.  Everything seems to work fine except that everytime i make changes to the WPF control xaml, the hole MFC app recompile itself.  I looked at the sample app in the handon lab, and it does the same thing.  Is there a way to get around this jz I am not familiar with the code of the hands on lab. But the following usually happens when a user-defined header is included in stdafx.h. Perhaps each time when you change XAML, it changes a specific header file in WPF project. Same header is included in stdafx.h of the MFC Pr ...Show All

  • .NET Development get data from a stream

    Hi, i've done a little c# server that waits a stream(that contains 23 float numbers) and i can't get the floats numbers . I've looked for a properly method however i haven't been lucky. Exist any method (to extract from the stream the floats) that help me or How can i do it Thanks a lot. For example: class TCPServer { public static void main(String[] args) throws Exception { ServerSocket ServidorSocket = new ServerSocket(10010); Socket conexionSocket = ServidorSocket.accept(); LittleEndianInputStream entrada = new LittleEndianInputStream(con ...Show All

  • Visual C# INullableValue removed from .NET 2.0 RTM??

    I began the process of upgrading one of our Beta2 applications to run under the 2.0 RTM and the compiler is complaining that INullableValue cannot be found in the System namespace. Using the object browser I can verify that there isn't a INullableValue interface defined in the mscorlib assembly version 2.0.50727. Was it intentionally removed If so, why has the documentation not been updated to reflect that change The code I am trying to use has this form: if ( value is INullableValue && ( (INullableValue) value ).HasValue == false ) {    //do something } else if ( value == null ) {    //d ...Show All

  • Visual Studio DateTime picker and the ReportViewer

    Hi, I am running SQL Server 05 (SP 1 CTP) and Visual Studio 05. Is the reportViewer used for the Asp.net webforms supposed to have a working date time picker control I know that this was an issue on the beta 2 but I am still expericiencing the same problem.  The date report parameters work fine on the preview but when displayed on the ReportViewer in a webform  they don't work. I am running version 8.0.0.0 of the  Microsoft.ReportViewer.WebForms Thanks, Mauricio Can you be more specific about how it doesn't work Do you get an error message Does the calendar not show up at all ...Show All

  • SQL Server Set up Login - Missing option for sp_execute

    Evening! OK ... have done this before but I am at a loss right now. Setting up a SQL Server 2000 login. Under the "Database Access" tab, I am looking in the section saying "Database roles for <DBname>" and under that it says ... Permit in Database Role. Of course the usual items are in there like db_datareader, db_datawrite, blah blah blah. what is MISSING is the last option of "sp_execute". It is flat out NOT listed. I have on past servers figured out how to turn this option on for the server and then was able to see the sp_execute option displayed as the last option where I could check ...Show All

  • SQL Server Which Package Configuration Type is best

    Hi, I understand there are different package configuration type like... · XML configuration file · Environment variable · Registry entry · Parent package variable · SQL Server Of the above which is best configuration type to use. Regards, Balaji Thiruvenkataraju There are 5 config types because each has advantages and disadvantages. The default is the XML config file as we expect that to be most widely used. Which is best for you depends on your needs. What are your criteria for a good config type Donald ...Show All

  • .NET Development Update an Oracle table with VWD 2005

    Hello to all Visual Web Developper Guru’s We’ve got a very simple problem to solve here. We’re using Visual Web Developer 2005 with an Oracle Database 8.0. To make it simple, I’ve created a table my_table with 2 nullable fields. Here is the script: Create table my_table ( Field1 NUMBER, Field2 VARCHAR2(50)); SQL> insert into my_table(Field1, Field2) Values (1, 'Hello World'); 1 row created. SQL> insert into my_table(Field1, Field2) Values (2, 'I''ve got a problem ^_^'); 1 row created. SQL> insert into my_table(Field1, Field2) Valu ...Show All

  • Smart Device Development Deployment and/or registration failed with error: 0x8973190d. Error opening file

    Hi All, Dose anyone know why VS2005 is giving this error at deploy time. and How I can fix... here is the execat error when I try to deply the project on a "Pocket PC 2003 Device" or "Windows Mobile 5.0 Pocket PC Device". "Deployment and/or registration failed with error: 0x8973190d. Error opening file 'c:\Projects\Cust\cust_wce\ace_core\wce400\Pocket PC 2003 (ARMV4)\Debug'. Error 0x80070005: Access is denied." "Deployment and/or registration failed with error: 0x8973190d. Error opening file 'c:\Projects\Cust\cust_wce\ace_core\wce400\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug'. Error 0x8007 ...Show All

  • Visual Studio Express Editions How to rename title bar in folderBrowser Dialog?

    Hi, I want to chage the word "Browse for folder" to something else. Can anybody tell me how to do this Thank you in advance hi, i've already set the Description text to some other thing and also want to change the title bar. As in the file save/open dialog, also got a property to change the title. anybody can help ...Show All

  • Visual Studio Express Editions Unable to update the database

    Hi. I am trying to insert data in a form and the data is saved in the database. Currently, im using the VS 2005 Express edition. I used the connection string. Everything works well, but it seemed that the updated data is not saved in the database. Is there anyone who knows any solution to this problem This worked for me as well....What is up with this spuratic error ...Show All

  • SQL Server Database restores using Enterprise Manager

    Good afternoon. I am using MS SQL 2K and was wondering if it is possible to restore multiple back-up files (database and transaction logs) to a database, if you haven't created a back-up set, using Enterprise Manager. I know that you can write T-SQL to first restore the back-up file and each of the transaction log files, except the last one, with the option of norecovery, and then the last transaction log file, with recovery. Any help would be greatly appreciated. Thank you. Chris That the way, restoring the database files one by one. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

©2008 Software Development Network