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

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

JesperStaal

Member List

RyanB88
Montse
Joe Morel - MSFT
Strick213
Bruce Bukovics
AGPX
MarissaM
mshvw
clint 2
WinFXGuy
ChenWang
Hansen Steve
Programm3r
Demonslayer
builtsoftware
Roman Hnatiuk
StriderIRL
Shambhu Sharan
Rui Rosa Mendes
ClaudioBello
Only Title

JesperStaal's Q&A profile

  • Software Development for Windows Vista dinamic SQL Server Database Activity connection string

    I've a small issue with the ConnectionString parameter passed to an SQL Server Database Activity If in a Visual Studio 2005 WWF beta2 project insert in the designer, in the ServerDatabaseActivity ConnectionString parameter the entire string, like "Server=localhost;Integrated Security=True;Database=MyDB", then the designer let me to insert the workflow parameter for the SQLParameters of my stored procedure. This is very time-save because it let to automatically generate the parmeterbinding and the activitybind in the designer.cs If I try to parametrize this ConnectionString property and try to insert the value of a local variable of my workflow then I can't see the SqlParameters of my stored procedure in my SqlDatabaseActivity pro ...Show All

  • Visual Studio 2008 (Pre-release) How do you print in WPF?

    .NETters, Newbie question alert! I am working on a desktop application where family pictures can be arranged in a hierarchical fashion. I current have a Canvas as my main item. One should be able to right click and insert an image at a specific location within this Canvas. I am trying to figure out what I need to do to support printing. The SDK talks about XPS document. Is there a simpler way to redirect the Canvas output to the printer How does paging work Thank you in advance for your help. Pradeep I don't have enough time to explain it myself now, I remember from beta days this blog entry, let's see if it's enough. If not I'll try to reply from home... (Yes, you can di ...Show All

  • Visual Basic Why do some keyboard shortcuts not work.

    I can only get some shortcuts to work. For instance, I cannot assign a shortcut without also assigning it ctrl, shift or alt. On the same note, only ctrl and alt work. When using shift it gives an error. How do I get around this. I also want to use shortcuts like: S instead of say Ctrl+S. Also, how do I assign the Esc key to a shortcut. Thank you. Troy L. no idea if this would make a difference: if e.KeyChar = Keys.S then 'do your thing end if however the form itself must have focus and active/selected so it can respond to the command/event. ...Show All

  • Visual Studio Tools for Office Excel.PivotTable.SourceData

    Hello all, I wrote this code Excel. PivotTable pt = (Excel. PivotTable )wksheet.PivotTables(1); try { pt.SourceData = new string [] { connection, query }; pt.RefreshTable(); } catch { throw ; } finally { System.Runtime.InteropServices. Marshal .ReleaseComObject(pt); } and it works, but there is one problem. If I open Profiler and debud code, I see that query is executed 4 times. 3 times in line "pt.SourceData = new string [] { connection, query };" and 1 times here "pt.RefreshTable();". It takes too long time. Where is the problem this question actually has nothing to do with the VSTO technology - the topic of this forum. I'm not an expert for Excel, ...Show All

  • Windows Forms One or more errors encountered while loading the designer

    Hi, I was working on a simple Winforms C# project. I created a few of TableAdapters using the designer and attached them to datagridviews on my form. After realizing that i did not want one of the tables I went to the XSD designer and deleted it. After that the project still excutes ok but the form designer is unable to display the form in design view I get the following error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take you to the line of code that caused it.   I am not looking for a response to this problem (creating prototype, kicking the ti ...Show All

  • Visual Basic get all computers connected to network

    hi all, i need some help.. does vb.net has any inbuild function/methods that gives me the computers connected in my domain of network or in various domain.. is there any thing available there thanks in advance.. Neither of those namespaces define any classes that will give you the information your are looking for. You can, however, get this information using Active directory via the classes in the System.DirectoryServices namespace. In particular you can use the DirectorySearcher class to execute any LDAP query, including one to list all of the computers in a domain. You can checkout the documentation for the directory search class here: http://msdn2.microsoft.com/en-us/library/system.directoryservices.directorysearcher ...Show All

  • SQL Server All dates between the start and end date

    Table Data/Structure Name StartDate EndDate HrsWorked Rick 01/01/2006 08/01/2006 8 Mike 02/01/2006 11/01/2006 8 How can I create a report that will display all dates between the StartDate and the EndDate and in the column underneath the date, put "8 hrs worked." Jan0106 Jan0206 Jan0306 Jan0406...... 8 8 8 8 0 0 0 0......Till Mike's start date in February Thanks -Rob You're talking about generating data thats not contained in but can be derived from the dataset. Your best bet is to do this in your query and return a row for every day and person. This looks like a job ...Show All

  • Visual Studio 2008 (Pre-release) Virtualizing

    I'd like to use the VirtualizedStackPanel to display almost 3000 rows of data. Please see code below. My hope was that since the only controls created were the first few rows that show on the screen the virtualizing panel would return quickly after the 3000 rows were bound to it. In the code below, it does not seem to matter if I set my ListView's VirtualizingStackPanel.IsVirtualizing to True or False, it still takes about 15 seconds to bind the data. This is actually blazing fast compared to WinForms which could never even do this, but I wonder if vitualizing is really working, because it does not seem to be affecting the time it takes to display the control after binding the data. Are my assumptions about the effects of virtualizing i ...Show All

  • Visual Studio 2008 (Pre-release) How to: SSL passthrough from BigIP?

    We have a BigIP that proxies SSL handling for all of our servers. Our service however is using: < security mode = " TransportWithMessageCredential " > How can I configure WCF to understand that SSL is being proxied by the BigIP Thanks, Drew Yeah, specifically we use an F5 box that load balances and does a bunch of other stuff for our web server farm ( read more about it's capabilities here ). One of the things it does is proxy the SSL encryption so that you only need to install a certificate on it as opposed to installing it on your 30 web servers individually. Not only that, but it has hardware SSL encryption/decryption, so you save the load on your webservers. Essentially traf ...Show All

  • Commerce Server Using Commerce Server Profiles and Marketing engine to server geo targeted house ads.

    We would like to accomplish geo-targeted house ads. We are ready to subscribe to a data feed that would provide us with geographic information by IP Address and save that to a sql table. What we are thinking of doing is if a profile doesn’t exist, take the ip address off the request header and xref it with that table returning all geographic relevant information and then creating a profile with extended properties to include the geographic information. We would then determine a targeting expression based upon the geographic information on the profile to get the marketing engine to serve an ad specific to their location. The problem with this is we have a majority of our profiles as anonymous and this sounds quite expensive to do a read, t ...Show All

  • .NET Development DescriptionAttribute My.Resources Error

    Hi, I am having a problem with the following: When attempting to apply the DescriptionAttribute (or any attribute) to a class property (which is later bound to a PropertyGrid) using the following syntax, everything works properly: DescriptionAttribute( "Specifies the server manifest file name." ) Since my application has to be globalized/localized, I am attempting to do the following which retrieves the language specific string from a resource file: DescriptionAttribute( My.Resources.Errors.ServerManifestFileRequired ) I receive an error stating that it requires a constant; basically telling me that My.Resources.Errors.ServerManifestFileRequired is not a valid string. I have tried adding ...Show All

  • .NET Development Why doesn't System.Array have an indexer?

    I'm probably missing something here, because my all of my searches came up with nothing. It seems only natural for Array to have an indexer. But instead, we have to use Get/Set Value(). Why is that Mattias Sjogren wrote: How many index parameters would it take, considering that it has to support everything from one dimensional to N-dimensional arrays You can declare: public object this[int i] {...} // 1 dimensional public object this[int i1, int i2] {...} // 2 dimensional public object this[params int[] indexes] {...} // N dimensional Just like GetValue()/SetValue() are overloaded. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Multi-core programming

    Will the XNA Framework allow assigning threads to specific cores on the 360 Or more generally, how will XNA Framework interact with the 360's cores and hardware threads Xbox threading is somewhat different to on Windows. It is a much more explicit model: you tell the OS which core each thread should run on, and then the OS keeps out the way and leaves you to it. Wheras on Windows the OS is far more sophisticated (and heavyweight) doing all sorts of automatic allocation behind the scenes even if you don't specify an explicit affinity. We figured that since the underlying OS concepts are quite different, and anyone writing multithreaded code probably cares enough about performance that these dif ...Show All

  • Windows Forms FormClosing Event

    Hi Every body I have a form and i don't want to let the user close it by ALT+F4 or Click on the close button. I know i should handle FormClosing event but how When i use FormClosingEventArgs and write this code : if ( e.CloseReason = CloseReason.UserClosing ) { e.Cancel = true; } I can't close it by calling the close Method. I just wanna close the form by writing codes and not allow the users to close it manually. like SplashScreen forms or something like that.Oh by the way is there any article about creating splashScreen forms in C# thank you. Unfortunately, the CloseReason enum doesn't distinguish between the user closing the form and your code closing the form. A bit of oversight I'd say but ther ...Show All

  • Software Development for Windows Vista Vista + IE7 -- OWA problem composing and replying to messages

    I have 2 Vista Ultiamte RTM machines with Office 2007 installed. When i open up IE7 on both machines and browse to OWA (Exchange Server 2003 SP2) and either compose a new message or reply to an existing message, all i get in the body of the message is a red cross in the top left and nothing else. It makes no difference if i add OWA to trusted sites and/or turn protected mode on or off. I cannot be the only one experiencing this problem and surely with a plain vanilla installation surely MS would have covered this in their pre-release testing Nick I think you will find more information and expertise in the TechNet forums - see the Exchange Server | Clients forum specifically: http://forums.micr ...Show All

©2008 Software Development Network