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

Software Development Network >> Piter Jasiulewicz's Q&A profile

Piter Jasiulewicz

Member List

RayRay1039
Dietz
goku_simon
sakarmo
Whoisit
JUNJIE.HONG
TheGamer
Cadey
chubbysilk
Ron A. Buckton
lalithak
Thunder2002
dagfari
su45937
jackrudolf
Amos Soma
Nick_Dev
Kestutis
wafer
e.neu
Only Title

Piter Jasiulewicz's Q&A profile

  • Visual Studio 2008 (Pre-release) DrawImage "InterpolationMode" in WPF?

    I need to control the interpolation of a BitmapSource when it is rendered to the screen - I have an application requirement that says the images must be interpolated using nearest-neighbor when resized. I have fruitlessly looked for something in WPF corresponding to System.Drawing.Drawing2D.InterpolationMode. The closest I have gotten is RenderOptions.SetBitmapScalingMode(...,...) but it does not do nearest-neighbor interpolation. Any ideas Seems strange that the interpolation-options would not be available in WPF. Thanks, Andreas Hallberg There's no way to natively select nearest neighbor from within WPF. The default image rescaling algorithm is the "fant" scaler which uses a tr ...Show All

  • .NET Development Problem Importing Data From Excel

    I'm attempting to import data from a spreadsheet and I have the following problem. Some of the fields appear blank even though in the spreadsheet they have values further down the sheet. This is my connection string. conStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Documents and Settings\mark.bosman\Desktop\test.xls;" & _ "Extended Properties=""Excel 8.0;HDR=YES;MaxScanRows=0;""" The rest of the data populates fine, but two columns containing integer values that are not populated till around the 150th row don't appear. Any suggestions Perhaps my understanding is flawed. My code is below. I thought the maxscanro ...Show All

  • Windows Forms adding date columns and time rows to a datagridview

    Is it possible to set up a datagridview thats connected to an access database, to have columns and rows like this monday tuesday wednesday 7:00 (data) (data) (data) 8:00 (data) (data) (data) 9:00 (data) (data) (data) what I'm trying to do is write this little app that schedules classrooms and I need to display chronologically the dates and times on the grid. All I have in the DB is the start date, end date, and what days of the week the classes are.and i have interval time also Please tell me the logic Hi; form access we can drag an OleDBDataAdapter  control to the form, then set connection by the wizard using Microsoft.Jet.OLEDB. .0,(according version) I am srue it ...Show All

  • .NET Development Setting An Object To Null Ensures Getting It Garbage Collected?

    Will setting an object to null ensures getting it marked for garbage collection even if it still within its execution scope The reason I'm asking this is to know whether or not setting a global object (defined in the class scope) to null ensures getting it garbage collected by the runtime GC (even if it's still not out of scope). Hi MandarDate Setting references to null is not necessary in .NET. The GC will determine when an object is no longer reachable and collect it. See http://blogs.msdn.com/clyon/archive/2004/12/01/273144.aspx for more information -Chris ...Show All

  • Visual C# Instance Method V Class Method...

    Hello all, When we have: String abc = etc etc; We can call abc.IndexOf(<some string>) Whereas when we have an Array we need to use the class method... string[] bcd = etc etc; The equivalent is: Array.IndexOf(bcd, <object>); They both effectively do the same thing (on their respective objects), i'm just curious as to why the difference in syntax in calling them Thank you Chris Arrays are ordered collections of items of the same data type that are accessed using the array name in conjunction with the offset from the start of the array of the desired item. Whereas a string is a reference type that represents a group (string) of unicode characters. From there it is all in the syntax. Me ...Show All

  • SQL Server .dtsx package from Informix using ODBC

    Help! I'm trying to create a simple .dtsx package that imports data to SQL server 2005 from an informix 7.3 db using an ADO.net ODBC connection. I am first creating the groundwork for the dtsx package in SQL server using the wizard, and then editing the file later in visual studio. My data source SQL in the dataflow task is simple and it works great until I hit a locked record on the Informix database. select <coulmns> from <table> Where <condition> The work around syntax for the locked row on the informix DB should be: set isolation to dirty read go select <coulmns> from <table> where <condition> This syntax will return the data correctly using a non-microsoft ...Show All

  • Visual Studio Error while assigning datasource through code!!!

    Hi, I am trying to generate one report using ReportVeiwer control. I have created a Dataset in my project and DataTable manually(.xsd). I am trying to assign the dataset by using the following code,but it displays only the header not the values.what would be the errors in my code how can i do this DataSet dt=ts.getDetailsBySql("select * from mSales");//my webservice return a data set here. Microsoft.Reporting.WinForms.ReportDataSource rptSource = new Microsoft.Reporting.WinForms.ReportDataSource(); mSaleBindingSource.Add(dt.Tables["mSale"]); rptSource.Value = mSaleBindingSource; this.reportViewer1.LocalReport.DataSources.Add(rptSource); this.reportViewer1.RefreshRep ...Show All

  • SQL Server Setting report credentials programmatically -- this should be easy!

    This should be easy... but I can't figure out the answer from MSDN help or from google. I have my reports set up with a custom data extension. You can access the reports via report manager and enter credentials and view the report. But, the reports will be accessible via a web application as well. In this case, the user will already be logged in, so I want to either disable credentials on the fly, or set the username/password to empty. Then I set a hidden session ID parameter and the data extension can authenticate using this parameter. I know about viewer.ServerReport.ReportServerCredentials but for the web, there seems to be no ReportServerCredentials class. I have seen the help topic at http://msdn2.microsoft.com/en-us/library/microsof ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Xbox 360 Guides in XNA

    Hi there, I've been playing around with the framework and I have a little question for any MSFTies who can answer. On the Windows side of things, if we want to call up any useful built in functions of Windows like say the common dialog box colour picker (for say, a player's car paint job) or a MessageBox (you've reached the end of the demo!), we can still do so by calling in to the Windows.Forms namespace. On the Xbox 360 side though, any such UI we would have to recoded manually. However, as we all know, there are certain built in elements of UI on the 360 too in the form of the various Xbox Guide slide out panels. Currently, access to one of these does exist in XNA (The save Location guide for letting the user choose a Memor ...Show All

  • SQL Server Monitor Jobs on SQL Server

    Hi, I'd like to know if I can monitor all the jobs in SQL Server 2000 or 2005 using SMO Objects. Specifically, I'd like to know if the jobs has been run, executed suceefully or not (recording to Log files). I also like to view/enumerate all the existing jobs. I'd like to know if all these are possible if I use SMO Object with Visual Basic.net.. If possible please give me sample code or web site so I can learn how to do it. Thanks for reading my post. Thanks for reply my post. Furthermore, can i monitor the jobs that has been run successfully or not by using SMO object for example, i like to have the SMO object to tell me if the jobs has run successfully or failed after a certain period. Thanks. ...Show All

  • SQL Server Calculated Member (beginner)

    Hi, I'm building a calculated member which should only calculate the measures in the calculated member if specific measure is > 0 (otherwise the value should be Null) For example: If physicalStock > 0 [Measures].[Netweight] * [Measures].[Physical] How do I build this in the calculated member... (Using Analysis2000) Thanks in advance Haakon It is my error. Try this: IIF ([Measures ].[Physical] > 0,[Measures].[Netweight] / ([Measures].[amount_count] * [Measures].[Physical]), Null) Copy and paste this example above. Regards Thomas Ivarsson ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Question about location and number of main game objects

    Ok so I'm still starting out with XNA, so apologies if this sounds like a strange question. I'm still getting the hang of the architeture of XNA, and am having trouble working out the numbers and location in the heirarcy of certain important game objects. Im using a GameState style engine for my game, and refer to each "state" as a "screen" This is my current layout... GraphicsDevice - One in main game class, passed through constructors to relevent functions ContentManager - One per "screen", made sense as if a screen unloads then all its content should unload too ( ) SpriteBatch - Currently one for each low level game object (eg, Sprite object, UIElement object) however i think this should be higher up and pa ...Show All

  • Visual Studio Express Editions Visual Basic 2005 Express Edition Data Binding is not updating the database

    Hi Microsoft Community, I'm a new visual basic developer and am using the visual basic 2005 express edition with sql server 2005 express edition.  I've been going through some lessons and have encountered a situation that I'm hoping someone can identify what the issue is. When creating a form with listbox and textbox components, I first request data from a table called customer.  I'm using a table adapter to manage the connection, request and response from my sql server express database called mycompany.  Upon the return of the data, my intermediate dataset is populated with the requested data.  I'm sure the data has been retrieved because by utiizing the binding navigator component, I can view the data.  I have t ...Show All

  • .NET Development problem with .Net code running on framework 1.1 stopped working on 2.0

    Hi, I have an application built on VB6.0 using VB.Net dll built on .Net framework 1.1. It has a piece of code in .Net that downloads a file from database using System.IO.BinaryWriter and saves on Windows folder. It's fine working when .Net framework 1.1 is only my system but started downloading the files with 0 bytes(though the files is 73 KB) after installing .Net framework 2.0 Can someone let me know what could be the reason for this issue and how to fix/make my existing application work for all the the versions of the .Net Framework. Please post me if you have any references/links for this Thanks in advance Esh Please post the code you are having difficulties with so we can ...Show All

  • Smart Device Development how to make a drawing area?

    hi I was wondering if anyone have a link to a tutorial or knows how to implement a drawing area, where the users can draw (or have drawn comments) on a particular area in the form, and then capture that area and save it to a file (Or database) I'm not sure if OpenNETCF can do it, if so what should I be using Thanks alot Thanks for your code. I was wondering if anyone has C# code for that I tried to convert your example into C# and I had trouble understanding what you mean by pDrawWindow I tried calling the invalidate method on both the form and the panel but nothing comes up. thanks     public partial class Form2 : Form     {         private ...Show All

©2008 Software Development Network