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

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

JasonToTheH

Member List

softwarejaeger
Dietz
Amos Soma
Sanchit Bahal
Leon Mayne
Alex2200
Chris Mayo - MSFT
Dong Xie
laboremus
Nick__A.
Todd Biggs - Windows Live
jason_sbi
Eldoktor
yadgor2000
mobigital
Declan_
ammard
mikeret
GaryPod
vandewst
Only Title

JasonToTheH's Q&A profile

  • Visual Studio Tools for Office ListObject bug or something silly?

    Hi there, I'm hoping someone can tell me if I'm doing something stupid or this is a bug. I have 2 list objects on a single worksheet. Each is bound to an array (2x different arrays of the same class) via a BindingSource object. The array class has about 10 string members, each which has a property to get/set it (I'm assuming this is how the DataSource knows what columns to fill in on the list object etc). So anyways, 2 list objects using a different datasource object each, but each datasource points to an array of the same class, but different values. I have a button that I click which sets the datasource of each BindingSource object to each array (which fills the listobject as the listobject has its datasource set to this BindingSource ...Show All

  • Visual Basic FormClosing Event

    Hi there. I have an inherited form hierarchy where the root form captures the FormClosing event, which then invokes a overriden "FormClose" method. The overriden method correctly determines the value of the e.cancel attribute and passes it back to the root FormClosingEvent handler. However, when e.cancel = true the form closing event is not canceled and the form closes anyway. The root form, and all it's children, are children for a MDI form. Can anyone tell me why e.cancel = true in the case doesn't prevent the form from closing Thanks. Here is the declaration of the FormClosing Event handler: Private Sub StandardUIForm_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEve ...Show All

  • .NET Development Generic performance... benefit?

    Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All

  • Visual C++ GDI+ problem initialize(please help).

    Hi , I could initialize GDI+ in MFC , my previous system is Intel P4 CPU. I try in visual C++ .NET 2003 & try in visual C++ .NET 2005 & every thing is good and i use GDI+ function from my application. but when i change my system (my system is AMD 4400+ X2 CPU) i write code for initialize GDI+ in MFC, visual C++ .net does not have error when compile my code but my project does not call GDI+ function , for example if i call DrawLine(...) ,nothing happen in my dialog window. another things i can not understand when i excute my code in second system that i worte with my previous system , everythings are good & my project work properly. I use these routine for initialize and use GDI+ in MFC: http://www.codeproject.com/vcpp/gdiplus ...Show All

  • SQL Server SUBSTRING with multibyte codeset

    SELECT SUBSTRING(fieldOne, 1, 4) FROM tableOne; For the above statement, I want to get EXACTLY four bytes. However, if fieldOne contains some multibyte characters, it will return more than four bytes. I don't have too much experience in SQL server. Any solutions/suggestion will be appreciated. Thank you. Start and length for character data type values specified in SUBSTRING refers to number of characters. So this is expected behavior. You could convert the string to binary data and then use SUBSTRING. But this may not produce the correct results for Unicode data or in other words you may get truncated results when you try to convert from binary to nvarchar. See BOL topic on SUBSTRING for mo ...Show All

  • Visual Studio Express Editions Move pogam

    I wat to take my program to a different computer so i put it on a USB key and took it to the computer then when i go to run it, something happened and errors come up and the program doesn't work. How to i pack it up so i can take it to a different computer and edit the code Instead of just copying the files - Do a click once deployment to CD. This will create a proper deployment setup which you can then run on other machines - one of the requirements in the deployment will be .NET 2.0 Framework so if its not on the machines it will install it. Click Once is really neat. A video that shows a lot of the simple stuff on click once and answers a lot of questions is at http://dnrtv.com/default.aspx sh ...Show All

  • SQL Server Multi-part Identfier could not be found (with SQL Script)

    Hi all, I have attached the following script from which the error message come from. Please help me out. use PatientCare go select pr . PatientId , p . FirstName , p . LastName , m . Name from Prescription as pr inner join Patient as p inner join Medicine as m on p . PatientId = pr . PatientId on pr . MedicineCode = m . MedicineCode ; Error message got is as below: Msg 4104, Level 16, State 1, Line 1 The multi-part identifier "pr.PatientId" could not be bound. Thanx in advance. Ronald hi ronald looks like you got a syntax error and adamus is right i deleted you other post cause it looks identical to this one ragards ...Show All

  • Visual Studio 2008 (Pre-release) OperationContract with List<Byte[]> Request Param

    Hi, I am developing a windows service hosting a WCF endpoint (wsHttpBinding) and using MTOM for buffered transfer. The service will receive a collection of photos and process them. However I continue to get Null references in my List of photos (List<Byte[]> photos ) on the service side, its like my list is always null. Service Code:----------------------------------------- IJobService: [ ServiceContract ()] public interface IJobService { [ OperationContract ] void SubmitJob( JobRequest request); [ OperationContract ] void SubmitPhotoTest( byte [] photo); } [ DataContract ] public class JobRequest { [ DataMember ] public List < byte []> photos; } J ...Show All

  • .NET Development SqlDataAdapter: Unable to save data in a SQL database, What's wrong?

    Hi All, I am unable to save data in a SQL database, What's wrong I am coding with VB .NET and I am unable to retrieve data from the database, beside I can read from the database without problems. How can I do, This thing is driving me crazy, it is 4 days that I am tryng to write in the database and I ahve tried everything update, insert. Somebody Know how to manage the SqlDataAdapter, beside the SqlDataReader is working perfectly. I am not used to the SqlDataAdapter. Is there anyone who know how to write in the database or where I am in mistake Thanks in advance. Here is the code: Dim oCmd As SqlClient.SqlCommand Dim oDR As SqlClient.SqlDataReader Dim strSQL, strSQL1, strSQL2 As String Dim adapter As System.Data.SqlClient ...Show All

  • Internet Explorer Development IE7 icon Problem

    Firstly, let's clear up the icon definitions. Favicons are those that are downloaded from the linked website and show the websites logo or whatever. The icons that we are all concerned with here in this fourm that are in error are the windows icons. These icons along with an array of others are usually contained in system dll files. Indexes into these files are kept track of in the registry and in the shortcut or favorite itself under properties. For example if the dll has 256 icons and windows calls the dll as shell.dll, 255 the 255 is the index into the icon file. In this case the last one (base 0). The problem here is with IE7. The registry entries under HKEY_CLASSES_ROOT (url and internetshortcut) appear correct. I ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Using .X files for world model

    In my game, using .X file format for objects in the world (players, health pack etc...) is okay. Right now, my game doesn't have a detailed world. When it does have a detailed world, can I use the .X format for the entire world One .X file for a huge level or part of the level If I use it, Can I get the individual triangle vertices from the mesh Using one or more .x files for the level is up to your choice. The two solutions will work. You can get vertices from a mesh using ID3DXBaseMesh interface and LockVertexBuffer function. You'll have to use the vertex declaration obtained with ID3DXBaseMesh::GetDeclaration or GetFVF functions to understand the vertex buffer layout. Triangle indexes can also be fetched using the ID3DXBaseMesh ...Show All

  • Visual Basic array of controls..

    is it possible to create array of controls in UI.. i need to create array of buttons (as similar to VB6) is there any way to do this I'm hoping to do something similar to what the op was asking about. I'm fairly new to VB, so forgive the ignorance. Once I get this simple thing going, I'll work it into what I really want to do. Simply put, I'm trying to create an array of 5 buttons on a form. I'm hoping that having this code in the form loader will create those buttons, but nothing appears on the form when I run it. Any suggestions on making these buttons appear Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim theButtons(5) As Button Dim bu ...Show All

  • Visual C# What is the recommanded way to write logs and handle exceptions in a large program?

    I have a large program with allot of classes, dependencies and so on. I want to handle exceptions and write log files, in the properly way. Are there good articles on these subjects if your project is really parge, you may want to try the Logging Application Block and the Exception Handling Application Block in Microsoft Enterprise Library ...Show All

  • SQL Server Create Customer Ranking in Cube

    Hey guys, is there a way i can create a Rank Member or measure in my cube based on sales for that customer, no matter what time heirarchy we are looking at. I have reporting requirements where they want to see all customers, ordered by Sales Amount. It could be at a year level, month level, or even a week/day level.. Im new to SSAS and MDX, i have looked at a few examples posted here, but cannot work out where i put the script in my cube. Is it a measure or do i do it as a calculated column in the DSV. Any help is much appreciated. Thanks Scotty Thanks Mosha.. this worked great.. If i may ask for one more piece of advise, when i do this,, all the customers that have 0 sales are still shown with the lowest rank ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Multi-texturing a mesh

    After some fruitless searching I have found no clear answer to a multitexturing problem I have. I figure it must be so straightforward that no one has bothered to write it down. How can I apply multiple textures to a mesh, with different textures associated with different vertices My particular problem is related to a terrain engine, but I will reduce it to a simple example. Suppose I have a mesh of 4 vertices (ie 2 triangles); I also have a map-type file (a .tga in my case) whose values indicate which textures should be applied to each vertex. So: (0,0) = grass (1,0) = stone (0,1) = earth (1,1) = water Do I declare which texture should be used when the vertices or mesh are created Is this done during the rendering, and i ...Show All

©2008 Software Development Network