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

Software Development Network >> p.hansen's Q&A profile

p.hansen

Member List

SQLBOY36
Chrisull
cap1000
Thalion
Whiplash8
smalamas
C McQuade
AmpLiF1eD
dfl
Indigo Cowboy
ChrisBarth1
sticky
FerdBirfel
NeederOfVBHelp
asiaindian
venp
J.Meier
mfareezaw
harlequinben
Alba
Only Title

p.hansen's Q&A profile

  • Architecture Looking for guidance

    Hi, I am developing a ASP.net 2.0 web app in C#.I am going to use MVP pattern.I am designing,my domain model first.I have 2 questions.. 1. I want to use 2- way databinding,with gridview,for which I can use objectdatasource..should i create an objectdatasource object representing my domain,since my classes in domain wont follow pattern required by objectdatasdource.. 2...In MVP pattern,how to trransfer data from presenter to model..use a dto,or directly model classes.. thks I think you mean MVC. In fact, if you are using code-behind model, you are using a variation of MVC (Model-View-Controller) pattern. If you put your data access coding into another class, your can further decouple model with controller. For mor ...Show All

  • Smart Device Development Scaling control problem

    Hi, I have a problem when I programmatically add controls to a user control. This all works fine when the device is 96 dpi but when the device is 192 dpi the controls do not scale correctly. The method I'm using is Create the control, set the x, y, Width and Height and then adding it to the control array. Thanks in advance Andy Hough Hi Andy Your issue is very similar to the question in the following thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1081850&SiteID=1 My answer does apply to your problem as well. Michael ...Show All

  • SQL Server no more suprise in my tables

    Hi, every one, i've a problem. i use catalogs in my DB, in fact i dont have any more for the moment to insert in that tables, i try to protect it from others persons than use the same user to make replication from this DB, since they started the replication started the problems,i cant protect from them my information , and i'm no sure if they need all the permission and what kind of role they need what can i do to protec my tables from the protecters   tavoras wrote: Hi, every one, i've a problem. what can i do to protec my tables from the protecters You can start by asking in a more appropriate forum. This forum is for SQL Server Integration Services, not security . Thanks, Phil ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rendering to multiple full screens

    For a special application we need to do the following using a NVidia Quadro FX 4500 X2 (2 GPUs with 4 outputs) on a system with 4 CPUs. - we get 8 input images from acquisition devices - these 8 images must be rendered to 8 textures using fragment shader programs in two render passes - the resulting images must be rendered to 4 render contexts fullscreen in full HD Resolution (1920x1080) again using a fragment shader program All this should happen as parallel as possible with 25 fps. We do not need any user input or any animation. We have not yet decided, how to do the implementation. As we see it, our possibilities are: - using DirectX 9.0 with unmanaged C++ - using DirectX 9.0 with managed C++ or C# - using OpenGL with unmanaged C++ - us ...Show All

  • Windows Forms Implements ICloneable. form disappear .

    Public Class FormTemplate Inherits Form Implements ICloneable Private Sub BaseForm_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load End Sub Public Function Clone() As Object Implements System.ICloneable.Clone Return Me .MemberwiseClone End Function End Class Public Class MainMenu Inherits FormTemplate Public m_ChildFormNumber As Integer = 0 Public Forms As New List( Of String ) Public Sub New () InitializeComponent() End Sub Public Sub NewForm( Of t As FormTemplate)( ByRef i As t) Dim f As t f = i.Clone If Not Forms.Contains(f.GetTyp ...Show All

  • Windows Forms How to show the caps lock is on balloon warning like Windows

    Does anyone know how I can show that balloon that windows shows when you are trying to logon and your caps lock key is on There are some VB examples out there of how to show balloons, but I need to show one using C# not VB as a warning to users when their caps lock key is on and they are trying to logon to an internal system. Anyone have any links to how to do this in C# or some C# code that will do this I would appreciate it. Thanks, Nathan Ok, I have re-written the vb code into a c# class that will create the balloon tooltip, but I'm having a problem with one piece of it. The class shows and works fine except for when my Timer_Elapsed event occurs. For some reason the Destroy method isn't doi ...Show All

  • Visual C# Copy file to folder

    string cpath = listBox2.SelectedIndex.ToString(); string cpath2 = cpath + "temp"; if (cpath.Substring(cpath.Length-3,3).ToLower() == "xml") { File.Copy(cpath, cpath2); } I have a listbox of folders and when i click a folder the files appear in my listbox2...i want to select one the files click by button and that file is copied to my c:\\temp folder.....I am getting the exception that my start index must be less than zero....any help...thanks! I also tried it like so, but the compiler tells me that it Cannot create a file when that file already exists....I know the file already exsist i just want to move it too c:\\temp....would it have anything to do with how my files s ...Show All

  • SQL Server Alternative to Merge Replication?

    Is there a simpler alternative to merge replication I am concerned about the splash of GUID across the DB, performance issues, and the complexity of the deployment. there are many articles and whitepapers about replication deployments on the net, maybe we can ease you if you describe your scenario and deployment concerns. i.e. how many subscribers are we talking about as far as GUIDs, if you specify correctly column lists for all your insert statements, you shouldn't have any application breaks, it should be seamless. ...Show All

  • .NET Development What's wrong with this XML construction

    I'm trying to upload data from a PDA data store to a remote server, and am writing an XML document to transmit the data. The data is stored in two tables, a transaction summary for each transaction, product level details for that purchase. I transmit multiple transactions at a time. The XML I'm creating for each transaction looks OK, but when I try to append this node to the document, it fails with an 'Invalid ChildType' error. I create my XML by first creating the document ( xdoc ) doing the minimum initialization, then making repeated calls to xdoc.CreateNode(.. ). It has always bothered me that I create a node at the document level but then add it to a child node, but I've never had problems with it. Any help is greatly appreci ...Show All

  • Visual C++ How to control mouse movements

    Hello everybody! I'm developing an app in vc++ for my final project to control a point & click device using head movements detected by a camera. I cannot find relevant info about how to control mouse movements and clicks system wide, it has something to do with system wide hooks Thanks in advance for your answer. Best regards Carlo Rampa And this newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.kernel&lang=en&cr=US ...Show All

  • .NET Development get ip address of remote pc

    Hello Everbody I have a problem in getting ip address of the remote pc i m connected with that pc through dial up connection that is throught the API RasDial() which is the part of ras32.ll As u know in dial up connection there is a phone line so i dial a phone number and through PPP we are able to get the ip address Now the thing is i want to know the ip address to which i am connected with. I hope u got my problem 1) Connect to remote pc throught dial up i.e. PPP come 2) i m getting my ip that happens through negotiation betn 2 pc 3) i want to know the ip of remote pc You can Use Remoting and call a function on Remote Machine after Connection is established which will return the IP Adress ...Show All

  • .NET Development SetServiceStatus - service handler

    Hi, I'm following the example in http://msdn2.microsoft.com/en-us/library/system.serviceprocess.servicebase.aspx # In the OnStart Method there is this: IntPtr handle = this.ServiceHandle; But the System.ServiceProcess.ServiceBase class does not have this atrribute. How can I get myservice handler to pass to the SetServiceStatus method Help is really appreciated, D I depend on each client infrastructure for that. The thing is that I would like, when the service is stopped, to give my threads a chance to shutdown properly even on .NET 1.1 Can’t I request more time on V1.1 Regards, D ...Show All

  • SQL Server Dynamic formatting question

    Hello, I have a dataset that returns one column of data from which some fields are supposed to appear horizontally in the report, while the rest appear line by line vertically. Is it possible to take, for example, three consecutive fields from the dataset and merge the corresponding table rows that hold these fields in the report Perhaps using an expression or custom code Thanks in advance for any help. I'd be happy to provide examples of what I need if it can help clarify the question. RLGow Not exactly sure what you are trying to do, but you can write expressions that concatenate the value of multiple fields, such as: =Fields!ColumnA.Value & Fields!ColumnB.Value & Fields!ColumnC ...Show All

  • SQL Server Populating DateTime variable from Execute SQL task

    Please help! I am designing an SSIS package and need to change the value of a DateTime global variable with the value returned from an Execute SQL task. The queary is as follows: Select Versiondate = dateadd(dd,+1,Max(CreateDate)) from msdb..sysdtspackages p with(nolock) where name = '@name' The error message is as follows: SSIS package "Package.dtsx" starting. Error: 0xC002F210 at VersionDate_Set, Execute SQL Task: Executing the query "Select Versiondate = dateadd(dd,+1,Max(CreateDate)) from msdb..sysdtspackages p with(nolock) where name = '@name'" failed with the following error: "The type of the value being assigned to variable "User::VersionDate" differs from the current variable type. Variables ...Show All

  • Software Development for Windows Vista binding dynamicproperties through xaml only

    Hi, I saw in one of of forum, we can bind dynamic properties to other actities like this: activitybind1.Name = "dynamicPropertiesActivity"; // The name of the source activity (a DynamicPropertiesActivity) activitybind1.Path = "ParameterBindings[\"DynamicInt\"].Value"; //This is the trick: access the ParameterBindings property this.someFixedActivity1.Name = "someFixedActivity1"; this.someFixedActivity1.SetBinding(DynamicPropertyActivityLibrary.SomeFixedActivity.IntProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1))); I want to do this binding through XAML only workflows. I tried like this: SomeFixedActivity1 x:Name="someFixedActivity1" Integer="{ActivityBind Name=dynamicPropertiesActivity1, Path=ParameterBin ...Show All

©2008 Software Development Network