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

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

raq

Member List

SkyDave
Cem Usta
hayward_ke
Space Cracker
MDesigner
paraGOD
lee d
astrocrep
Sudhakar.hcitek
Kolja
elmira
Mongsreturn
Batikit
Mark from NH
TheViewMaster
Mamta M
Tryst
thegodfather9210
phanf
Namza
Only Title

raq's Q&A profile

  • .NET Development Memory leak in SerialPort.Read?

    Hi. I communicate with the serial port on my ”PDA/smart device” to another device (custom circuit board). The PDA needs to send data at least once a second to the hardware just to confirm that there is a connection; If not the hardware shuts down. The PDA also receives information from the device witch is displayed. The problem is that when the PDA receivea data, the application starts to leak memory. After 30 minutes to an hour the garbage collection procedure takes so much time that the communication halts for several seconds, witch in turn causes a timeout. Could there be a problem in the SerialPort.Receive() or in the garbage collector. Most likely I have done something wrong… Here is a simplified ...Show All

  • Visual Basic array of controls..

    is it possible to create array of controls in UI.. i need to create array of buttons (as similar to VB6) is there any way to do this you can create an array of controls. Example, create an array of textboxes and store them:   Dim theTextBoxes (Size) as TextBoxes for counter as Integer = 0 to theTextBoxes.Length    Dim theTextBox as new TextBox    theTextBox.Name = "txt" & counter.ToString()    theTextBoxes(counter) = theTextBox next   or you can hold them into an arraylist: Dim theTextBoxes as ArrayList() Dim theTextBox as new TextBox() theTextBox.Name = " nameHere " theTextBoxes.Add(theTextBox)   or maybe use the Control object (untested) I ...Show All

  • Visual Studio Express Editions How to use MS office chart component?

    Hi, I have added a Ms office chart 11.0 component to the form. How do I program it to do xy charting base on a set of values in a txt file or excel file Thank you. Try out ZedGraph to plot professional looking charts. http://zedgraph.org/wiki/index.php title=Main_Page ...Show All

  • SQL Server Cannot connect to localhost using Windows Security Group as login

    I have a test environment set up at home with a small windows server 2003 Active Directory domain. I created a windows security group on the dc and added myself and another user to the group. I then use this group as a login for SQL Server and add the login to the sysadmin server role. This works exactly as I would expect on the Windows Server computer (which is also the Domain Controller) regardless of which computer I use to connect to this Windows Server computer. However, when I set up the exact same login on the local sql server instance of my client laptop running windows xp pro, the I get an error message (Login failed for user MYDOMAIN\dgolds...) when I attempt to connect to the local instance of SQL server, even though I am able t ...Show All

  • Visual Studio Datasource List<String> problem

    I have a custom business object that returns a List<String>. In the Report designer, it allows me to use the following property values to bind a textbox to: Fields!Chars.Value Fields!Length.Value The Length works fine and returns the correct lengths for the strings, but the Chars never returns anything. Since Chars doesn't appear to be a property of the String class, I'm wondering if that is the problem. I've tried some other combinations "Fields", "Value", but I can't get anything to work. Does anyone have any ideas I know the actual text is in the object since the length works, and I also switched to a custom class that only contained a string and returned a List<customclass> and that worked fine. S ...Show All

  • Visual Basic Updating a Dataset

    Hi All, I am having a issue with getting some information updated on a datagrid control. here are the steps that I have taken: 1) load the datagrid with the checkbox column (Successful) 2) change the column value by selecting a checkbox (tested :) ) 3) determining which Rows were selected and thereby updating the actual database and doing some additional "stuff" (PROBLEMS :( ) Please remember that so far the information in two is only what was changed on the form by selecting the check boxes. The data has not been updated to the dataset as yet. Below is the code blocks for all so far, any help is appreciated Thanks Michael PS it is a windows form application using VS2003 (so no datagriditem option which i am accustomed to use :( ) Sub Fr ...Show All

  • Visual Studio Problem with size of CR on deployment machine

    Hello guys, I have a problem with page size in Crystal Report when I run my application on deployment machine. The problem is that only part of report page can be seen, and the number of pages is significantly increased (which indicates that all data are there but something wrong with page size). This is windows application (Win XP SP2 is installed on deployment machine). I use Crystal Report for VS2005. On development machine everything works perfectly. I had to notice that also on some deployment machines it is OK, so I suppose that .msi file is correct. I tried both with and without merge modules and results are the same. Does any one have same idea .. We are experiencing exactly the same p ...Show All

  • Visual Studio 2008 (Pre-release) ServiceCertificate - Private Key & Permissions

    I am developing a proof of concept WCF application. I am trying to customise UserNamePasswordValidator. So i have setup my Services as a console app. Setup a endpoint (using net.tcp). I have setup the config file to use my custom UserNamePasswordValidator. However when Host.Open is called the service is erroring saying a certificate is required. So i configure a certificate in the store (with private key) and then point the serviceCredntials to it. The service is still crashing on Host.Open however now it is saying "must have a private key that is capable of key exchange. The process must have access rights for the private key." In the certificate manager it says the cert does have a private key, and i have used the W ...Show All

  • .NET Development Read-only database problem after site installation

    Hi everyone, I have developed a site and since it needs to be installed on different servers, I have added a Web Setup Project which installs the site. The problem is when it installs the application, it doesn't assign write permission on App_Data directory to ASPNET user. So what happens is that as soon as the webservice method(which is being called through the site) tries to modify database, it returns database is readonly error. If I go to wwwroot directory and assign write permission to App_Data directory, the problem wouold be solved. But I wanna automate this process through installer. If you create the site using visual web developer, it automatically assighns that right to App_Data. So the question is: How can I do that using ...Show All

  • Visual Studio 2008 (Pre-release) Complex (?) Layout

    Hi all, I'm trying to make a layout which looks like the following image (drew with Expression Design so i have XAML code) : http://img443.imageshack.us/img443/2481/layoutoz8.png The gray area is where the content will be. I want that when i resize my app the "borders" keep the same size and only the gray area gets bigger and thus allow more visible content (ie no Zoom). Is there another way to do this than using a layout "a la Web" : divide my decoration as a grid with 3 columns and 3 rows, the first and last columns and rows gets a fixed size so that only the center gets resized Thanks, Guillaume Guillaume, here's one of the approaches you can use- just paste (Ctrl+V) this code a ...Show All

  • SQL Server A SSIS package

    Hi, I am used Visual Studio SSIS wizard to transfer some data from one database to another with the same table structure. This is the first time I use SSIS. I see two objects created. OLE DB Source extracts some data based on the create date and OLE DB Destination object is a corresponding table. So query in OLE DB Source: Select ID,[Desc],[CreateDate] from TableSrc where ],[CreateDate] between ‘1/1/2006’ and ‘1/31/2006’ OLE DB Destination has TableDest as the destination. TableDest has the same structure as TableSrc. My problem is that when I run the package twice the data will be imported twice. I need to use this package for both new records and updated records in TableSrc . Is there any way I can check i ...Show All

  • Visual Studio Team System Ridiculous code coverage results?

    We're getting interesting code coverage results from unit tests. In every class that implements IList<T> and therefore must implement System.Collections.IEnumerable.GetEnumerator(), the code coverage result for GetEnumerator is absurd. These methods are 12 lines long, but code coverage says that 2400 or so lines aren't executed. The results roll up to the class level and then the namespace level, and really skew our results. I fully believe the methods are never exercised, but the coverage counter should be able to figure out how many lines there really are in the source. In addition, when coverage coloring is used in the IDE text editor, files containing GetEnumerator methods are painted randomly, as if the painter is computing a ...Show All

  • Visual C++ getting program filepath

    how can i make my program get its own filepath-i have tried GetModuleFileName but all that gives me is "C" when the real directory is something like C:\my documents\visual studio 2005...... is there any other way to do this I think there is other method -- GetCommandLine -- but any method requires correct usage. Perhaps you did not use the GetModuleFileName function correctly (incorrect usage of strings or of sizeof operator etc.) ...Show All

  • SQL Server Need to get separate pages for each person..help

    I'm fairly new to RS and have a problem. I have a query that pulls information on people, courses they have taken, their score and so on. I have a date parameter setup so I can run it by year. Everything works ok on the query side, I get all the information I need on all the people and the courses they have taken. However, when I run the report, I do not get a separate page for each person and their relative information. The first page shows the first name and the rest of the 700 pages list all the courses and other information, with no break. How do I render the report so that I can get a separate page(s) for each person and their specific info I can glady provide more info/code if need be. Bill ...Show All

  • Visual Basic picking off each digit of an integer

    I am using the following code to pick off each digit of a number, from right to left. The number I am working with is 84357. So for the first iteration it should return the number 7 and for the second iteration it should return the number 5, and so on. But for some reason on the first iteration returns the expected results. Each subsequent iteration returns the number plus 1. In other words, when I run the program I am getting: 7, 6, 4, and 9. Instead of 7, 5, 3, 4, and 8. Can someone tell me what's wrong with my code Sub Main() Dim input As Integer = 84357 Dim digit As Integer Dim decimalNumber As Integer Dim divisor As Integer = 1 While input >= 0 digit = (input / divisor) Mod 10 divisor *= ...Show All

©2008 Software Development Network