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

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

reya276

Member List

Daniel Gary
stombiztalker
maverick_majnoo
Benjamino
enric vives
Douwe
Vijay R
Agent00
Michael_Shao
Freddde
Sideout
kenlefeb
ronlahav
JasonG271009
Esterill
Erik11
Kauli123
Sune Henriksen
lucerias
ongle
Only Title

reya276's Q&A profile

  • Visual C# Why can't attribute parameters be dynamic?

    I was looking at decorating a method with the PrincipalPermission attribute. It tried to do this: protected static string foo = "bar"; [PrincipalPermission(SecurityAction.Demand, Role = foo )] public void DoSomething() { } But it doesn't compile: "An attribute argument must be a constant expression, typeof expression or array creation expression" What the technical reason for this and do you think it would be good feature to have this, or better to leave it as it is I would be very interested in hearing your opinions on this, thanks! The value of the attributes paramters must be fixed at compile time. In your example, "foo" can change at run-time. If you change the line to protec ...Show All

  • Smart Device Development can vb.net 2005 support visual fox pro database & tables????

    i had symbol mc50 pocket pc. And i m using vb.net 2005. Can it support visual fox pro database & tables. Can giv me some sample code that manage add, delete, update, dataset, connection string. Thanz i had facing one problem that is i cant create new project. The status bar written "creating project DeviceApplication1 project creation failed". I had see all the forums disscuss that IE7.0 can effected, but my pc doesnt install IE7.0. So what is the solution. Besides, when first time i install the visual studio 2005, there will have "7494682B-37A0-11D2-A273-00C04F8EF4FF" of error. Thanz. ...Show All

  • Visual C# whats the difference between DTO and entity class

    what is the difference between a EntityClass and DTO(Data Transfer Object). I m not able to understand when DTO's shud be used... As per my current understanding ...DTO's are simply a collection of related values, with no business logic embedded. so can DTO be a simple class with member variables and properties to use those variables. Thanx in advance. ...Show All

  • Visual Basic How do I format user input (1 shows up as 001)

    I need to know how to convert numerical data so it always shows up in the format of 001,002, 003, 004, etc. when a user enters 1, 2, 3, 4, etc. Using VB.NET 2003, how do I write the code to convert it like this Thanks. Private Sub Textbox1_Validating (...) Handles Textbox1.Validating if IsNumeric(Textbox1.Text) Then Textbox1.Text = Textbox1.Text.PadLeft(3,"0") else Msgbox("Please enter a number.") e.Cancel = True End If End Sub ...Show All

  • SQL Server What is the separator of sql statements

    hello. A question please. What is the separator for sql statements in SqlServer   I'd want to write many statements and then depending on the cursor position, to execute it.  Thanks... First your original question. The semicolon CAN seperate SQL Statements, but TSQL does not require a statement terminator. The query compiler knows how to seperate statements in most cases without one. There are a couple of situations in SQL Server 2005 where you must use a semicolon now when there are multiple statements (like before a CTE). For your second question, technically this is not possible. Code in SQL Server is not tightly coupled with the editor as much as it is in .NET languages. ...Show All

  • Software Development for Windows Vista Vastly decreased multiuser Jet DB Performance under Vista

    Testing our VB6-based database application under Vista (Business Pro, Release version, Clean install on fresh partition), all seems largely well with one very noticeable exception: Multiuser Jet 4.0 database access is vastly decreased (often involving several minute waits for simple queries that generally run in one or two seconds); on the other hand, single user access seems quite comparable to its former speed, as does general file system/file server performance. Is this a known issue with Jet 4.0 under Vista Can anyone suggest any potential workarounds or know of any factors which might be responsible for the performance hit -Pete Wow, I haven't seen or heard about such an issue.  Be interested i ...Show All

  • SQL Server Group age by a parameter and find out the value corresponding to that.

    Hi guys... My goal is to change the given stored procedure so that I can find out the different age gorup according to users parameter and find out sumof these values for that group: s.TVmins, s.Notional$, COUNT(*) AS Qty, SUM(s.TVmins) AS TVMinsAmt, SUM(s.Notional$) AS NotionalAmt For that I am planning to put another parameter @count for the group interval and I need to group accordingly. So my answer should look like: if the user give the @count value as 10: the result should: age group TVMins Notional 1-9 1560 125632( the sum of that particluar group) 10-19 -- -- --- 91-100 -- --- I have a field DOB( Date of birth) , I have to extract age from that field first and then g ...Show All

  • Visual C# Question about objects

    I am a novice c# programmer and have a rudamentary question. I have a class to handle permissions, so to check permission you have to open an object. However, trying to consolitdate code in one spot, i have the class logging the person out if for some reason his/her userID is lost. In doing this, I am not closing out the object I created to check permissions. Will the object close automatically here is some code: permissions p = new permissions (intUserID, "cont" , strDBConn); //if no userid, user is logged off public class permissions public permissions( int userID, string prefix, string dbConn) { if (userID <= 0) { logUserOut(); } intUserID = userID; strPrefix = prefix; str ...Show All

  • Smart Device Development Error InvalidOperationException unhandled - help needed urgently

    hi, I have implemented the code for cameracapturedialog using WM 5.0 and VS 2005 and Windows 2000 professional OS .I m getting error using the ShowDialog() method of the CameraCaptureDialog. Code is like this CameraCaptureDialog cameraCapture = new CameraCaptureDialog(); cameraCapture.Owner = this; cameraCapture.Mode = CameraCaptureMode.Still; cameraCapture.StillQuality = CameraCaptureStillQuality.High; cameraCapture.Resolution = new Size(175, 150); cameraCapture.DefaultFileName = @"test.jpg"; cameraCapture.InitialDirectory = @"\My Documents"; cameraCapture.ShowDialog(); Stack Trace ========================== System.InvalidOperationExceptoion: {"An unknown ...Show All

  • Visual FoxPro using tow field index with codebase

    Hi, I'm using codebase to create table and index and i use VFP 9.0 to open the table and execute querys. when i'm creating an index for one feild : "CREATE INDEX ind ON person(age)" every thing works fine and there the index is working well. when i'm creating an index for two fields or more: "CREATE INDEX ind ON person(age,name)" VFP cant open the table. what seems to be the problem thanks ishay Can you tell the first byte value of table file Is 0x30 Beginning with vfp8 is something changed in table header(AutotIncrement) who can affect compability with codebase. ...Show All

  • SQL Server database recovery if no backup available

    Hi,    If we delete a Database accidentally (no backup exists), Is it possible to recover. How   Thanks ven-- You can try some third-party file recovery tools to attempt to un-delete the files, and then attach them to the instance. You might get lucky. Otherwise, there's not much to be done. We can't fix a file that isn't there without a backup. ...Show All

  • Visual Studio Express Editions Begginer code

    I'm trying to write a really easy program, one that will open a new window, with 3 text boxes, 2 buttons and a web browser. First two fields will be for userID and password, and the third, which must initially be unselectable, should be the URL provider for the web browser. The two buttons: Logout and Login. The third text box becomes available only after logging in. Here is the code for the object functions: private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { if (textBox1->Text == "User1" && textBox2->Text == "zxc" ) { textBox3->CanSelect = true ; } else { textBox3->CanSelect = false ; } } private : System::Void button2_Click ...Show All

  • .NET Development How to can I control the Scrollbar on the Textbox...??

    Hi. I'm writting C# Application. I want to know thumb position on the Scrollbar on the Textbox. (or How to can I control the Scollbar on the Textbox ) The System.Windows.Forms.Textbox didn't have any members to control it. Could you help me You'll have to P/Invoke the GetScrollInfo() API function to find out where the thumb is at. Try this: using System.Runtime.InteropServices; ... public static double GetScrollPercentage(TextBoxBase ctl) { SCROLLINFO info = new SCROLLINFO(); info.cbSize = Marshal.SizeOf(info); info.fMask = 0x17; GetScrollInfo(ctl.Handle, 1, ref info); if (info.nMax <= info.nPage + 1) return 100; return 100.0 * info.nPos / (info.nMax - info.nPage + 1); } [DllImp ...Show All

  • Visual Studio Team System Build reports not reflected in project portal

    hi.. I am in the process of doing build automation for .Net1.1 projects... I was given a solution in my previous thread.... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=874329&SiteID=1 I followed the solution given in http://blogs.msdn.com/nagarajp/archive/2005/10/26/485368.aspx This works well. But after building the project, it is not reflected in the portal. I checked with the database in the TFS Server. The data is getting inserted in the build related tables. But this information is not available in the portal. Please help me on this. Thanks Bob. Hi Aaron.. Thanks for the reply... Since our scenario forces us to use Approach #2, we have to insert the data ...Show All

  • Software Development for Windows Vista What object to I want to release?

    Hello, I'm writing a simple in-place tranform filter, and have encountered a refcount problem. My filter is based on the sample CNullNull filter, with some additional logic in the Transform method that calls SetTime() on the media sample that's passed in. Running in GraphEdit works until I quit, at which time I get a "there are still 3 active objects" error and GraphEdit crashes. Commenting out the call to pSample->SetTime(&startTime, &endTime) elimnates the error, but of course I need that statement for the filter to work. Does this mean I need to call pSample->Release() If so, when Releasing pSample within the Transform method causes bigger problems. Thanks in advance for any advice. -mmc ...Show All

©2008 Software Development Network