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

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

Marc_L

Member List

jan.zajic
Bertrandkis
P. Eisel
Michael Nordkvist
Alex Coppola
Gabby_Girl_Lynne
Rdan
Sabita
Whisk
handsumblondy
Hema Bairavan
DeeTonya
Pankaj.Patel
Priyanka Choughule
Richard Lyon
RemcoJVG
clintsinger
bob maskin
kaizenn
Danny Tsai
Only Title

Marc_L's Q&A profile

  • Visual C# Custom 3D, Irregular Shaped Buttons

    What needs to be done in order to create a Non-Rectangular, Ireegular shaped button (from a Bitmap) --Yatharth-- When you don't want to do to fancy stuff you can just inhire the Button class and override the Paint method. Then just paint the Bitmap on the Button and you are done public class MyButton : Button { private Image _image; public MyButton() { _image = Image.FromFile( @"c:\image.bmp" ); } protected override void OnPaint( PaintEventArgs e ) { e.Graphics.DrawImage( _image, 0, 0, Widht, Height ); } } ...Show All

  • SQL Server Counting no. of records

    Hi I need the ability to calculate the no. of records based on the no. of times a value in the sql report is given. For example based on a table shown below: Ref No. First Name Surname 18 test test 18 test test 18 test test 19 test test 19 test test I need to calulate the records returned on the ref no. I have managed to set page breaks based on a new ref no. with grouping and therefore the count will be displayed at the end of each of the records returned. As you can see there are three records returned for ref no. 18 and 2 for 19. How can I achieve this. Many thanks in advance ...Show All

  • .NET Development Collections articles on MSDN

    Hello! Some time ago (a year maybe) there was some articles about collections posted on MSDN. I think it was a part series. I can't find these articles again, I've tried to search for it but I only get alot of other documents. Anyone who knows what I'm talking about and who has the links to the articles Thanks in advance! Is this http://msdn.microsoft.com/msdnmag/issues/05/05/CuttingEdge/default.aspx you are talking about or is it the data structure series that you want to know about ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/datastructures20_1.asp ) ...Show All

  • Visual Basic How do I format a value from the DateTimePicker for Update to SQL2000 using VS2005 VB.Net?

    I get the following error message: "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value." I found that Format works (my system date format is dd/MM/yyyy): Format( ReturnDate.Value, "yyyy/MM/dd hh:mm:ss" ) Using this in the SQL Update statement works for me. Thanks for the help guys. ...Show All

  • Windows Forms AcceptButton like property

    I'd like to add a "Target" property to my UserControl that lists all textboxes on a form and allows me to pick up one and assign it to that property. Something similar to Form's AcceptButton property that list all buttons available on container form. Any hint TIA Corrado   Corrado Cavalli wrote: FYI: Default value does not indicates what type your property accepts but just its default value and how it should be serialized... Hi corrado, Thanks for the correction. I actually want to say the same thing, but I find it difficult sometimes to speak in a foreign language like the language of this forum which is&n ...Show All

  • Visual C++ What happened to io.h?

    I'm using Visual C++ 2005 version 55537-000-0000016-00168 and the only place I can find io.h is in C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\io.h.  Is that intentional Thanks, Keith MacDonald Hi Keith, It was fixed after that. I verified this on build 050215. Ronald ...Show All

  • Visual FoxPro SELECT statement is showing unwanted display of data and is not passing data to a table.

    I'm using a SELECT statement to pull out data from a table... that is working great. What I'm trying to do is feed the selected data to a different table using REPLACE so that it can be used by a report. All of this is triggered from a command button on a form. Here's the code for the CLICK property of the button: SELECT store, stock, year_1, make_1, model_1, auction1, transport, recon, sold_for, fees, net_check, result ; FROM wholesale_table1 ; WHERE In_Date >= DATE ()-60 ; && sets a sixty day date range AND sold_for < 1 && removes all sold vehicles && store.value ='DODGE' -> uncomm ...Show All

  • Windows Forms DataGridViewComboBoxColumn Sorting

    hi Is there a way how to sort a DataGridViewComboBoxColumn by its DisplayMember instead of the ValueMember The problem is, that I can't just call the datagridview.Sort Method because the datagridview is bound to an external datasource. The DataGridViewComboBoxColumn is bound to an external datasource as well, and the ValueMember is an Integer. thanks Manuel No there isn't any way to do this. When databound, the DataGridView doesn't perform the sort -- the datasource performs it. -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All

  • Windows Forms TableAdapter.Insert and Identity

    Is there a way of returning the identity from the stored procedure when doing a TableAdapter.Insert() or will it only return the return value eg I want to be able to do something like this int newrecordid = MyTableAdapter.Insert("new record field1","new record field 2",...); Thanks Amit ...Show All

  • .NET Development RSACryptoServiceProvider & Bad Key Exception

    Hi, I'm hoping somebody can help me with this one. I encrypt a simple string with the RSACryptoServiceProvider, export the RSAParameters and then Serialize the exported RSAParameters, together with the encrypted string, to a file using a BinaryFormatter. Later I deserialize the whole lot, import the RSAParameters into a newly created RSACryptoServiceProvider, and try to decryp the string, but I keep on getting a 'Bad Key' exception. What am I doing wrong here I start with this piece of code: Private Sub mnuToolsSecSettings_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles mnuToolsSecSettings. ...Show All

  • SQL Server Setting Multi-value parameter by default option - Programmatically

    Hi, I want to set the default values to my parameter from my .Net Application. Right now, I have set the default values to my multivalue parameter at BIDS(Business Intelligence Development Studio) IDE only. Samething I want to do programmatically. How it can be done Any Ideas. I am giving my sample of existing code, One of my Report Parameter name is PeerGroupID and having Multi-value option set. ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms. ProcessingMode .Remote; System.Collections.Generic. List < ReportParameter > objParams = new System.Collections.Generic. List < ReportParameter >(); o ...Show All

  • Visual Studio Wrong count result in Crystal Report

    Hi, i'm devoloping some reports for my company which i work for. I found some problem in calculate and summarizing records. If i use foxpro and type count, the result is 65385 (assume the tables is xxx.dbf). But in cyrystal report, using same table and there is no record selection at all, the result in running total to count the total of records is 65359. Why does it be different i get same result in using formula with function count (field) -->65359. I use visual foxpro, the result is 65385, same with foxpro. So, what is the problem any body can help me does crystal report have a bug in this case please any body give me solution. thx ...Show All

  • .NET Development Hierarchical data inserts with autoincrement fields

    I am having a problem inserting hierarchical data into a SQL Server 2000 database using a typed dataset. Here is what is going on. There are three tables in the database with a one->many->many relationship. Call them Parent, Child, and GrandChild. They each have autoincrement primary key fields called, respectively, Parent_Id, Child_Id, and GrandChild_Id. Parent also has a unique field called CaseId, whose value is supplied by the user. Child has a foreign key constraint where the foreign key field is Parent_Id. Similarly, GrandChild has a foreign key constraint where the foreign key field is Child_Id. Of course each of the tables a ...Show All

  • Visual C++ C1083: Cannot open include file: 'resource.h'

    Project converted from VS.NET 2k3 to VS2k5.  Receive the following error in several projects (6/21) that build fine in VS2k3.  The include file exists, is part of the project (auto generated by VS2k3).  Anyone see this   Thanks. Harrier Many of the #includes were unnecessary so I cleaned those up.  Joys of being on a large team. Did a complete CLEAN of the project and deleted all temporary and tool generated files.  Then did a Rebuild. This seemed to fix the issue. ...Show All

  • SQL Server missing notifications

    Hello, We are building a simple distributed application around the service broker where each queue is serviced from a windows service. We have a windows service running constantly as a "listener" on an event queue for each of what we call "request" queues. When a message is received by the request, the listener service instantiates a reader to process the request. As we are in development, things get out of sync at times and the event queues sometimes stop getting the event notification message. I can correct this usually emptying the queues by receiving all messages from the "request" and "event&quo ...Show All

©2008 Software Development Network