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

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

Kaspa

Member List

progames25
TeamFlex
Jonas Beckeman
Alessandro Camargo
DR_CHAOS
JHagan
wolfr
Programm3r
amazingsunday
sean_kirkpatrick
GOH Omnipuff
Shahid Mahmood
Morten Dahl
Speedbird186
preethi_rjs
Mark E. Johnson
Mark_Davies
Raconteur971
Subhasmita
progames25
Only Title

Kaspa's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Content Pipeline

    Hi, I haven't really used the Content Pipeline seriously yet but I've seen the official tutorials on it and understand them. Now, I'm thinking - what if I want to load a certain model/effect or anything else that the Content Pipeline supports - BUT I want to load it dynamically/at run-time, e.g. I have a certain filename that my code wants to use to load content, but I don't know it until runtime. Is there some sort of dynamic way of using what otherwise seems to be a static Content Pipeline Thanks... All of your content will need to be pre-processed. You can load any of the processed content at runtime, for example if you had 10 models you could add them to a combo box and let the user pick the one the ...Show All

  • Commerce Server Paging in Commerce Server.

    We have a requirement to set up variants for a product, but display each variant as a product.When we use Paging for our listing, the paging is paged in context of products and not in variants , so we display more number of products ( as each product has many variants) than the page size, worst page 2 and on are totally messed up. Is there a way that I can page on products * variant than just on products in commerce server Code Used: CategoryConfiguration categoryConfiguration = new CategoryConfiguration(); categoryConfiguration.LoadChildProducts = true; CatalogSearchOptions catalogSearchOptions = new CatalogSearchOptions(); catalogSearchOptions.ClassTypes = CatalogClassTypes.ProductClass | CatalogClassTypes.P ...Show All

  • Windows Forms How can i get the index of the SelectedRow in a DataGridView

    Hi all One small and probably a simple question. How can i get the index of the DataGridView1.SelectedRow Lars Hi Lars. First you need to choose which event is necessary to get this value. Below I present you 2 samples: By datagridview_CellMouseDown private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { textBox1.Text = dataGridView1.CurrentRow[e.RowIndex].ToString(); } By Button_Click private void button2_Click(object sender, EventArgs e) { textBox1.Text = dataGridView1.CurrentRow.Index.ToString(); } Hope this can help you ...Show All

  • .NET Development How to empty a table in a database

    Hi, I use VB 2005 Express edition. I want to empty a table in a MS Access data base and set the primary key to 1 for the next entry. How can I do that Thanks! Use an OleDbCommand object and the ExecuteNonQuery method: Dim AccessConn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=e:\My Documents\db1.mdb") AccessConn.Open() Dim AccessCommand As New System.Data.OleDb.OleDbCommand("DELETE * FROM [TABLENAME]", AccessConn) AccessCommand.ExecuteNonQuery() AccessConn.Close() ...Show All

  • Visual Studio Express Editions problem creating mailbox

    Hi. i've some problems creating exchange mailboxes for users... i use this simple code shown below : string primaryMailAddress = <user primary address>; string[] secondaryMailAddresses = <user secondary addresses>; new string[secondaryMailAddresses.Length + 1]; IMailboxStore mailbox; IMailRecipient recpt; //bind user from AD DirectoryEntry DE = new DirectoryEntry(<ADPath>, <username>,<userpwd>); mailbox = (IMailboxStore)DE.NativeObject; //create mailbox mailbox.CreateMailbox(<exchange store path>); //alias operations recpt = (IMailRecipient)mailbox; recpt.Alias = primaryMailAddress; if (!primaryMailAddress.StartsWith("SMTP:")) primaryMailAddress = "SMTP:" + prima ...Show All

  • Visual Basic numericupdown control height not adjustable..?

    I can change the width of the numericupdown control but not it's height. Any ideas. I thought it might be a parent container (the panel it resides on) that is preventing that..but the width is adjustable so that is not the problem. hmmmm. thanks for any ideas. -greg ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Particles

    Hi, Tried creating a basic 3d particle system without success. I don't want to use point sprites (never mind why), and I couldn't get the Matrix.Createbillboard() to work for me. The particles changed angle as I changed the camera angle. Never mind what I did... If anyone can drop a few lines of code of how they accomplish the particle update and rendering I'd be grateful. Thanks, Already seen it... it's 2D not 3D. I have another question on the subject. It would seem that the reason my code doesn't work using the (CreateBillboard() method), is that I supply the method with the wrong camera position. Now, how my camera currently works is so... This is my camera update method which updates the view matrix. private void Update() { m ...Show All

  • Windows Forms Sorting a dataTable by date

    Hello everyone, My problem is that I cannot sort my dataTable by date. I tried to use sorting filters ( with the Select command ) and also using a DataView. But nothing changes. Is there a way to achieve this programmatically Best regards. Assuming that you have a DataColumn of the type DateTime named "Date" you can sort as follows: DataView dataView = dataTable.DefaultView; dataView.Sort = "Date"; listBox1.DataSource = dataView; When you say nothing changes, what exactly are you looking at ...Show All

  • Visual C++ Bitmap in win32 Console Application

    Hi. how can I show a bitmap file in Win32 Console Application with any bit depth (1-4-8-16 or 24bits ) I can show bitmap file in Win32 Application. but in Consoel App thanks. AFAIK, this is not possible. It's a console application, it displays characters not pixels. In addition this question is outside of this forum's topic which is the Visual C++ Language . ...Show All

  • .NET Development DateTime Conversions

    I am using this line to display results on a wepage: <%# DataBinder.Eval(Container.DataItem, "Modified").ToString() %> This works and gives me the modified date as: 9/15/2006 10:55:19 I need to display it as: YYYY-MM-DD HH:MM:SS I tried to do this: <%# DataBinder.Eval(Container.DataItem, "Modified").ToString("yyyy-MM-dd hh:mm:ss") %> But this just gives me an error, what am I doing wrong here Hi Rick Sorry for late reply been busy Here is what you need to do: 1.        Copy and paste this function into your class. public string ToDateString( string wrongDate) { string [] datetime= wrongDate.Sp ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Security Problems for every project

    Hopefully someone can help me sometime soon, because I am finally out of school and will be coding for a while now. Anyway, ever since I tried to load a project off of one of my other computers on the network, all of my applications have security problems. Even now when I try to load projects from the local hard drive, VC# tells me I have a security problem. Some apps will run, but others say access denied on many of my project files. If anyone knows of settings that will change the security back to normal, that would be a great help and thanks in advance. What is the specific error message, and what are you doing before you get it One possible problem is that, by default, applications built on the .NET ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. device resets and resizing a game window

    I've tried following the tutorials on the help section, but I'm stumped. When I resize the window, the window seems to lose focus and disapear under everything else. It will only show when all other windows are minimised. I thought this might be something to do with the device reset function, so I tried to reset the graphics device parameters for the backbuffer etc here... It still does the same thing when there's no sprites in the window. When there are sprites in the window, the program crashes out on the device reset method. below is my code for resizing the window which is registered to the windows.clientsizechanged event void WindowSizeChanged(object sender, EventArgs e) { // Make changes to handle the new window size. ...Show All

  • Visual Studio 2008 (Pre-release) Export to XAML

    I made a drawing in a Canvas using code (I mean I used C# methods to draw lines, polygons, etc.) I wonder if it is possible to export this drawing into a reusable XAML file. (Something similar to Bitmap.Save() in Windows Forms is what I need). Homam Howdy, I was thinking that you might want your drawing tools to be creating path objects directly and that way you just take the Data value which contains the mini-language used by WPF to produce vector images without wads of XAML or code. If you were wanting to view these images as a bitmap, you could create a visual brush from them and then convert that to an image. Cheers ...Show All

  • SQL Server System.NotSupportedException: Different group expressions cannot reference the same field or the same entity

    When running a report with a calculated field from the Report Builder I get the follwing error: System.NotSupportedException: Different group expressions cannot reference the same field or the same entity Any idea what's the reason for this error Thanks. Yes it append to me all the time , a have a new name for the tool , Report BUG because it generat errors at a faster rate then you can generate a report that run ...Show All

  • Visual C# Need help converting VB to C#

    Hi Can someone help me by converting this VB to C#. Thanks a bunch. James Keele Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(Modulo10(TextBox1.Text)) End Sub Private Function Modulo10(ByVal strNummer As String) As Integer 'strNummer may only contain numbers between 0 und 9! Dim intTable(10) As Integer Dim intTransfer As Integer Dim intIndex As Integer intTable(0) = 0 : intTable(1) = 9 intTable(2) = 4 : intTable(3) = 6 intTable(4) = 8 : intTable(5) = 2 intTable(6) = 7 : intTable(7) = 1 intTable(8) = 3 : intTable(9) = 5 For intIndex = 1 To Len(strNummer) intTransfer = intTable((intTransf ...Show All

©2008 Software Development Network