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

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

LtScho

Member List

ehrlich
faith2006
nglow
avikhinvasara
monkeynova
Abhishek bhadouria
Shajeel
ASP.Thinker
Herru Perdana
Pipz
Lino!
yatingg
MMMalik
Richard78
Mateusz Rajca
clint 2
Hans van Vliet
R.Tutus
jaapdevries
Stefan Gabriel Georgescu
Only Title

LtScho's Q&A profile

  • Visual Basic while inputbox

    Hi, i'm using vb 2005. my question is: i have this code: Dim x As String = "" While IsNumeric(x) = False x = InputBox( "Enter a number" , "New Value" , "0" ) End While How can i exit a while statement if the user pressed the cancel button in the inputbox Thanks... when I tried, if you press the cancel button then it returns the string length of 0, so in your while loop you could have something which checks the string length to see if its 0 and if so then exit the while loop. This does work however if the user presses ok and there is no text, it would exit the loop:   while IsNumeric(x) = false and x.Length > 0  & ...Show All

  • .NET Development How increases the CodeCompileUnit in method to the code file in

    Hi all, I'm developing a designer.I want to use CodeCompileUnit to produce a method code,then increases these code to the code file appropriate position(Looks like the dissimilarity which in vs does),ask how I should do Also or generates CodeCompileUnit by code file,how does that do -thanks Hi Thottam, 1.You said very rightly. 2.I must realize the function and VS IDE is similar.I increase a method to arrive CodeCompileUnit ,Then produces this method the code to join to the code file in the appropriate position,this code file possibly contains continues class,and these codes can edit, but only then CodeCompileUnit produces not merely code,is this each time increases the method ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Boot Camp + XNA

    Anybody tried to run XNA on Bootcamped Mac I tried my schism game out on a bunch of computers it works just fine. However, when I tried it on a Bootcamped Windows XP Mac...The screen rotated 90 degrees...Everything worked right, controlls and such but I could only see half of my screen. A bug with the graphics device, or maybe drivers on the Mac Anybody got any ideas I've been running code on a bootcamp Macbook and it's been working fine. There is a key sequence that the Mac has to rotate the screen, so that may have mistakenly been hit. I've run both the Spacewar demo and my own code without issues. Hardware acceleration seems to work fine as well. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. FrameTransformMatrix in .x-file meshes is ignored

    Hello. I use XNA (beta2) and try to load a .x-file into the content pipeline . First everything seems to work fine, but I wondered about the aspect ratio of the shown objects. If I load the .x-file with the "DirectX Viewer" from the DirectX SDK the 3d objects are shown right. But when I load them with XNA the entries in " FrameTransformMatrix " seems to not being calculated. I use blender and its exporter to generate .x-files. Does anybody else noticed this problem Bestregards, MircoS Hi. @leclerc9: Thanks for that link. I guess I will take a look at your custom importer later. (btw.: nice and clean site) I took a closer look at the loaded model and its meshes. The correct TransformMat ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Visual Studio and DXUT

    Use the STL vector class (actually just include) #include <vector> You get an abundance of deprecated warnings, is there any STL implementation which does give you all these deprecated warnings ...Show All

  • Windows Forms app.application Publish file

    Hi, I know this has already been posted, but I need to get it clear in a simple way. The 'app'.application file is created when you publish an application to a web/ftp server, along with other files. The publish.htm page shows a button linking to the 'app'.application file and I can correctly install it, but a friend of mine (and maybe many more people too) get the 'app'.application file contents displayed in his browser. He has the .NET Framework 2.0 installed (installed automatically with VB 2005 Express), and I would like a simple solution to resolve this issue, without reinstalling .NET 2.0 (unless you are sure it resolves it). I also heard that it has to do with MIME types , but I'm not too familiar with this term to unders ...Show All

  • SQL Server Grouping problem

    I need to provide a summary row at the bottom of each group that sums accounts of a specific type and subtracts it from the group total. Acct Balance Prior Balance A 10 5 B 4 8 C 7 6 D 9 12 Total 30 31 exp accts 13 20 Final 17 11 Is there an easy way to do this in reporting services So you want to perform a conditional sum based on another field (account type) in the dataset You need add some additional rows to the group footer and put an Iif statement inside the Sum that returns the value to aggregate for a match and 0 otherwise e.g. Sum(Iif(Fields!account_type.Value = "exclude& ...Show All

  • Visual Basic Are there any escape charecters in Visual Basic?

    I know there are in almost every other language, but are there things like \n, \r, \",.... Other than the constants that Spotty mentioned, there is one way of escaping quotes - basically, within a string, any pair of quotes is considered as a quote character to be included in the string. So: dim s as string = """" will result in a string with one character: " dim s as string = ""Murder!" she said." will result in the following text when printed: "Murder!" she said. ...Show All

  • .NET Development -Using Sproc to insert rows in the DB and the Sproc returns identity columns to my dataset

    If we use sqdataadapter to insert data from a datatable into a table in the database using an SPROC. The Sproc also returns the identity column values that are created by the database. If those identity columns are called “IDcolumn” in the physical DB but in my dataset I call them “MyIdentity”. So IDcolumn is an output of my SProc I use : Pm.Direction= ParameterDirection.Output Then I use pm.SourceColumn property : Should I use IDcolumn” or “MyIdentity” Like this: Pm.sourcecolumn=”IDcolumn” or like this: Pm.sourcecolumn=” MyIdentity” Thank you Thanks! I think i didnt quite understand the question, but yes of course, it would map to the datatable/dataset column name/source   ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Need help running this game.

    I have just compiled DeadJustice. It is a game using the catmother engine (http://www.sf.net/projects/catmother). From the forums I downloaded the version that supports Visual Studio 2005, once I compile and run it, it gives me an error and says that lightmap.fx is not compatible or something. I am using the version of DirectX before February 2007. Can anyone help me The shader code is below. If you want the exact error, I'll give it too you. Thanks. [code] // // lightmap shader without transparency // // diffuse texture * lightmap texture // // COLUMN MAJOR MATRICES // // -------------------------------------------- // Input parameters // -------------------------------------------- // transforms float4x4 mWorld; // model->world t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Reference Device

    Hello out there... I tried to get the GraphicsDeviceManager running as ReferenceDevice but it don't works. I've done it like its described in the help files and like ive done it with beta1 but both ways dont work. When i run it on a pc without a compatible GraphicsCard i allways get an Exception but none of my overrides nor the PreparingDeviceSettings are called. Any idea Oh my, oh my... I reinstalled DirectX SDK (October) 'cause i deleted some files and now, surprise, surprise, i can create a reference device and for more wonders: i don't have to create a reference device at all! After i start up a out of the box xna game it automaticaly switches to "SoftwareVertexProcessing" but leaves the device at "Har ...Show All

  • SQL Server Key Violation during synchronization

    Dear Friends I restored same database in Publisher & subscriber.If I want to apply Transactional replication I have to apply initial snapshot.then I am getting key-violation problems during initialization .Some times Primary key table will be dropped before foreign key table.sometimes it won't able to drop some indexes.This I am getting if I am going for all tables of database.But here i need all tables.If I am going for selective table I don't have any problem.For avoiding this problem I tried all the options in table article option in publication wizard.But some na some key violation I am getting always.So please give me some better suggestion Thanks in Advance ...Show All

  • Windows Forms Adding a bat file to an installer

    Hi, I am looking into adding a small .bat file to the deployment project, to add a switch to a .exe that I would like to run during the install. If I add a bat file how to I make the installer call it I am think just the process of Add a File will not actually cause the file to run. Or is there maybe there is an installation script or ini that I can make mods too Thanks for any direction. Jeff you need to create a custom action to do your thing. http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ http://msdn2.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx http://blogs.msdn.com/astebner/archive/2005/10/30/487015.aspx  (aaron save ...Show All

  • Windows Forms How can I know the selected items on alistbox?

    Hello, I havent been able to iterate through a list box, I want to know the selected items values and text, so I can make an insert on a database for each selected item Dim sb As New StringBuilder() Dim i As Integer Dim str As String For i = 0 To ListBox1.SelectedItems.Count str = ListBox1.SelectedItem Next You can just use: For Each item As String in me .listBox.SelectedItems 'do something with that particular item Next ...Show All

  • Smart Device Development GPRS Connection Setup in Code

    Hi, I was wondering if there is a way to configure a connection for GPRS on a windows mobile 5 device in code. I am having a few problems doing it through setting the registry as I can get the connection to appear under the Connections > Manage existing connections dialog but if I try and connect to the connection I am prompted for the username and password however I do not want this prompt to appear. I have been able to do configure the connection with great success for a windows ce 4.2 and pocket pc OS however it seems a little different for the mobile 5 device I am working ok. I do not want to import registry entries, I would like to be able to set the registry values in code, which is working as I get the connection in the required ...Show All

©2008 Software Development Network