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

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

KAAU

Member List

tacpower
georgeduke
epsilon_ro
kuntushi
mkfl
Obal Orrestad
Will C.404367
arro239
preps
Marcela Moreno
MDabaan
Radical
Ravi Awasthi
Andy Rabin
curiousss
akshah
KitWest
dkoco
Simon Allardice
erikkl2000
Only Title

KAAU's Q&A profile

  • Visual Studio 2008 (Pre-release) NullReferenceException in the samples that come with the 3.0 sdk

    When canging focus between controls, I get these exceptions all the time, in particular in the Wordgame WPF sample. Since I had the 3.0 framework installed by the NYTimes Reader before installing the SDK, I tried uninstalling the 3.0 framework using http://www.microsoft.com/downloads/details.aspx FamilyId=AAE7FC63-D405-4E13-909F-E85AA9E66146&displaylang=en and then reinstalling it again, following http://msdn.microsoft.com/windowsvista/downloads/products/getthebeta/default.aspx#developWinFXApps but the problem persists. Any idea what could cause this Yes, I see this with most of the SDK examples that are just a bit more complex than "hello world". For example I get an ex ...Show All

  • Visual C# LowLevel Keyboard Hook

    Hello- I'm using a low-level keyboard hook for trapping key presses and had two questions: 1. What is the name of the enum value in Keys for the context-menu button 2. Is there a set of flags pre-defined somewhere for the flags member of the low-level keyboard struct Thanks... Thanks for the reply... The struct I'm thinking of is the lParam, defined here: http://tinyurl.com/mbrqd . I see that the flags are shows as C defines, but I'm not sure where to find them in C#. I could just use the bit-fields defined there, but I'd rather not have magic numbers in my code... ...Show All

  • Visual Studio 2008 (Pre-release) Binding To a User Defined Dependancy Property

    I'm still new to WPF so I'm sorry if this doesn't make sense. I have created a control that inherits from UserControl called MyUserControl. I want to use this in another project and have that working. I then created a dependency property called TestText that is a string. This will get displayed in the text box via data binding in MyUserControl. If I explicitly set this it works just fine. I want to be able to bind to that property from the window that is hosting the control. However when I try to bind in XAML it doesn't seem to update the field. When I bind using code it works. I'm fairly sure my XAML is okay because I can bind the to a label's content alright. Here is the code I am using: MyUserControl.xaml.cs: namespace CustomControlLi ...Show All

  • SQL Server Replacing symmetric keys

    I'm trying to develop a procedure for re-encrypting data with a different symmetric key, but I need the new key to use the old key name. I want to do this without leaving the data in clear text at any point. I would think the process would work like this: 1.Create a new key 2.Decrypt data w/old key and encrypt with new key. 3.Drop old key. 4.Rename new key using the old key name. However, I can't find that there's a way to rename a symmetric key. Is this correct If that is the case, I believe I have to do an additional round of encryption: 1.Create a temp key 2.Decrypt data w/old key and encrypt with temp key. 3.Drop old key. 4.Create a new key with the old key name. 5.Decrypt data w/temp key and encrypt with new key. 6.Drop temp ...Show All

  • Visual C# Interfaces oversold???

    First, I must admit that I am a C# novice and so I probably don’t have as much knowledge and experience on the subject of interface as most of you guys reading this post. After reading a few books on C# and interface design, I still can’t see and understand the real power of interface unless of course, we are talking about interfaces as a powerful concept in OOP ‘only’ and not as a powerful concept in the general sense. When I was first learning OOP I was quite suspicious about the ‘excellent features’ that OOP claims to be able to deliver to the world and I was right. For example, in reality OOP offers very little if any, code reuse. I am now having the same suspicion about interfaces even though I see a lot nice words used to d ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Animating Billboards Using A Single Texture

    I just finished a basic billboard class that is capable of reading in multiple textures and animating. However, I would like to read in a single texture file and be able to simply change texture coordinates to change the appearance of the billboard. Now, I could recreate my VertexBuffer each frame, but that would be a lot of wasted processing. Is there a way to dynamically alter the texture coordinates for VertexBuffer objects each frame Edit: As a bonus question, how do I enable the alpha channels in my textures Right now it shows up white. I am using the BasicEffect. Would I have to write my own effect just for that Seems rather silly but I will if I have to. Edit 2: As bonus question 2, how can I disable antialiasing of my textures I'm ...Show All

  • SQL Server Can't Insert Binary Data Into Sql Mobile

    Hi guys, I'm having a problem inserting a file into a SQL Mobile table. I'm updating the table via a tableadapter designed through the Dataset designer in VS2k5. The SQL used to insert is "Insert into TestTable (itemid,itemdata) values (@itemid,@itemdata)" Where ItemID is a GUID, and ItemData is an Image field. The tableadapter has typed the parameters as GUID and Binary properly already. Only problem is when I actually call the command with a byte array containing my file, I get a "Byte truncation" error message. I remember this working properly in SQL CE 2.0 but so far I don't seem to get it to work in SQL mobile, anyone got any pointers Here is a sample of what you ne ...Show All

  • Visual Studio 2008 (Pre-release) Returnvalue from server is null

    I have a problem when making a call from a client to the server. The call is supposed to return a custom object for the client to do some work on, but the object doesnt seem to reach the client. Here's my setup: Service Contract: [ ServiceContract ] public interface IClientControllerServiceContract { [ OperationContract ] TestStructureElement ClientReady(); .... }   Contract Implementation: [ ServiceBehavior (InstanceContextMode= InstanceContextMode .PerSession,ConcurrencyMode= ConcurrencyMode .Multiple)] public class ClientControllerService : IClientControllerServiceContract ..................... public TestStructureElement ClientReady() { List <System. Ty ...Show All

  • SQL Server Lock in FTS

    Hello, There are some king of lock that stop my search process over a FTS table indOfertaCliente. The Query: SELECT TOP 1 * FROM indOfertacliente Works fine...but SELECT * FROM CONTAINSTABLE ( dbo . indOfertaCliente , (*), 'polar' , LANGUAGE 3082 , 1 ) returns timeout. Also i receive timeout when i try to disable de FTS index over the table. Which resource can be locked Where can i see it Sql 2005. SP1 Tahnks in advance ...Show All

  • Windows Forms Formatting data for a DataGridView that has a DataSource

    I'm working with a DataGridView whose data source is a DataTable. I need the DataGridView to display data formatted to a desired number of decimal places but I’m having difficulty doing this. It seems to ignore the format string I use for the DataGridView cell styles and always shows the unformatted value coming from the DataTable. (Also note that if I don't use a data source for the DataGridView and populate it directly the formatting does actually work.) I have attempted formatting cells for decimal places in several ways including setting the Format for the DefaultCellStyle and changing the Format for each cell’s style in a CellFormatting event but nothing seems to have any effect. I am able to change other properties of a C ...Show All

  • Visual Studio VSS 6.0 with VS 2005.

    Hello there, I got a trouble here. I've use for long time VSS 6.0 with VS 2003. But now i'm using VS 2005. With the VS 2003, i can make/set VIRTUAL FOLDERS at IIS normally. But working with the VS 2005 in VSS 6.0, when i set the folder at IIS it's ok. But when i go to open the PROJECT from SOURCE SAFE CONTROL in VS 2005, it's make a new copy of the project at InetPub folder's. It's the trouble. Example: I set the virtual folder "localhost://"myname" But it's creates "localhost://"projectName" I would apreciate your help. Thanks in advance. Ok, here we go. The trouble's the follow ~ 1. I'm trying to open an existing web project from s ...Show All

  • SQL Server scalability of ssrs

    hi all i want to know that how much performance of ssrs will be vary when i m installing ssrs on same machine where my database is stored, or when i m storing ssrs on different machine and database on different machine. I would suggest installing SSRS on the same machine that your database is stored. I wouldn't want to risk the network bottlenecking the communication between the database and report server. ...Show All

  • Visual Studio Express Editions spellchecker?

    I want to make a spellchecker for a program of mine.  I did a search of the forums and found some code.  I slightly edited it to match my individual use and apparently did something to it to make it not work.  because it ended up throwing the exception and I KNOW I have MS Word. This is the code I used:  Function spellcheck( ByVal text2check As System.Windows.Forms.RichTextBox) If text2check.Text.Length > 0 Then Try text2check.SelectAll() ' Copy everything from the richtextbox to clipboard text2check.Copy() ' Make a Word server object. Dim word_server As New Word.Application ' Hide the server. word_server.Visible = False ' Make a Word Document. ...Show All

  • Visual Studio Express Editions C# Program Ideas

    Hello, I am trying to learn C# and so I have been reading the book and doing the sample apps, but now I would like to go a little farther. I want to write an app that I can sharpen and learn more with C#, but I am out of ideas for applications. I could write a game and that might not be bad, but I was wonder if anyone had any ideas for a program. I feel like a writter who just can not come up with an idea for a book. So any Ideas how about an imaging program Such as, drag and drop files into a window, and being able to create a CD/DVD ISO image from it Would be an interesting project Now that would be a great program, I just not sure if I am smart enough to write it. But hey, I think I might just have ...Show All

  • Visual Basic Compile Error : Expected function or variable

    I'm getting this odd error in my code. its probably obvious but i've been staring at it for so long i've got code blindness ! i've highlighted the error line in red below. error is : expected function or variable the msdn definition is here :http://msdn.microsoft.com/library/default.asp url=/library/en-us/msaa/msaaccrf_0bla.asp Public Function WinEventFunc(ByVal HookHandle As Long, ByVal LEvent As Long, ByVal HWnd As Long, ByVal idObject As Long, ByVal idChild As Long, ByVal idEventThread As Long, ByVal dwmsEventTime As Long) As Long   Dim ObA As IAccessible   Dim LRet As Long   Dim V As Variant   Dim s As String, s1 As String, sName As String     On Error Resume Next  Dim pxLeft As Long, py ...Show All

©2008 Software Development Network