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

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

philknight

Member List

Arslan.Ahmed
Pavel Brokhman
AlbertG
jeffmorris
KBV_RBJ
Carlos Marcelo Farías
SteveV1
thelonesoldier
Shirvo
Joe Rattz
Colin Reid
Mrperson
JeZteRicp
RICH525234
Deepsteep
MA2005
Dr.9
MRDPrince
Raoul_BennetH
dealwi8me
Only Title

philknight's Q&A profile

  • Visual Studio Express Editions Printing.

    I want to set it up to where when i click the print button it will show my label text and and the information entered. not the whole form... i have a basic math program. that i use to help figure amount financed and deal recap.. but i dont want it to print all that.. ps1terry, According to your question, I recommand you add the Print Preview in your project. Here I have an example on the issue, please take a look at the following link and download the sample project. Hope that can help you: Print and display print previews in VB .NET: http://vb-helper.com/howto_net_print_and_preview.html ...Show All

  • .NET Development How to re-use the values of retrieved variables in ADO.NET 2, Sql Server Express & VB 2005 Express Form Application

    Hi all, I have a database "ChemDatabase" with 3 tables ("LabTests", "Samples" and "Projects") in my Sql Server Express/Sql Server Management Studio Express. I created a Windows Application "ChemAverage" in my Visual Basic 2005 Express and used SqlConnection and SqlCommand via T-SQL to query the items in the 3 tables susscessfully. I need to calulate an average of 2 chemical concentrations of a compound that are retrieved data from the ADO.NET 2 SqlConnection and SqlCommand: Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim cn ...Show All

  • .NET Development In C#, what is the difference between System.String and System.string (lowercase)

    This mignt not be the correct forum, if so, I'm sorry about that. I am trying to get a better understanding of the .NET library. I am programming in c# and I see that System.String (uppercase String) and System.string (lowercase string) seem to be the same objects. However they are color coded in different colors. I am guessing that there is a reason, but I cannot seem to find it in the documentation. Can anyone shed some light on this Thanks! Bob Hello All. Bob: You can go to the Environment node in Tools -> Options, and select Fonts and Colors to see all of the different settings for Font, ForeColor, and BackColor for all of the different items in the text editor. One word ...Show All

  • Visual Studio Team System Missing references..

    Good afternoon, I have a .sln with three projects, two are C# and one is VB. I have migrated the code from VSS and converted from .NET 1.1 & VS2003 to .NET 2.0 & VS2005 with Team Foundation. I open the .sln and all three projects seem to load without issue, however my references for the VB project are missing and I'm unable to add them. Has anyone run into this issue and found a resolution Thank you! Mario, Thank you for the tip! I will try adding the references in the project file using Notepad. I will provide updates as progress is made. Thanks again, Peter ...Show All

  • Visual Basic trying to add a delegate for AddressOf WindowProc

    I am trying to add a delegate as indicated by the upgrade wizard. I can't figure out how to eliminate these errors. I added the delegate as best I understood how to do this. Can anyone follow this Ideas   Appreciatively.  -greg   MainForm.vb   'UPGRADE_WARNING: Add a delegate for AddressOf WindowProc Click for more: ref: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbup1048.asp       defWindowProc = SetWindowLong( Me .Handle.ToInt32,MessageHandler.GWL_WNDPROC, MyWindowProc)      Error :   Value of type 'MainForm.MessageHandler.WindowProcDelegate' cannot be converted to 'Long'.       (referri ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Making 3d Models?

    Can you make 3d models like characters and stuff in XNA or not...Im new to this whole thing but want to pick up on it so bad. Wings3d is my favorite, although I don't think it exports into file formats that can directly be used (last time I checked this, I was using MDX2, not XNA). There's also Milkshape. I say pick out a few and keep the one for which the interface feels the most natural. ...Show All

  • Windows Forms form method Show()

    I have 2 forms. from the button of form1 i display the form2 Form2 f= new Form2(); f.Show(); How can i check if the form2 is dislayed (or has been closed) , so i dont display twice the form2 when i click again the button. I have been searching for a solution to this problem too and wasn't happy with all of the work-arounds on the internet. Public Vairables are bad, disabling buttons is no good for some and keeping and integer counter is complicating a simple problem... Okay, So a good clean solution is to use Application.OpenForms()... For Each shownForm as Form in Application.OpenForms if (shownForm.Name = frmTheScreenIAmCheckingFor.Name) then 'Found you! the pesky is shown up already :-) 'Do somet ...Show All

  • SQL Server How to : Truncation : Can i write a log entry whenever data is truncated?

    I'm reading data from a flat file source. If some data gets truncated, i have the option of 'ignoring', 'redirecting' or 'fail component'. What i'd like to do is, to allow the data to be truncated, but i'd also like to write a log entry so that i can know that a particular rows data has been truncated. I've tried 'redirecting' the row to a script component (as transformation), but i don't know how to determine if the error is truncation or not, not only that, i can't redirect the row back to the 'original' flow, which is a derived field column. Any ideas on how to do Cheers. That kind of dilutes the generic nature of the logging infrastructure. now you're talking about raising events for arbi ...Show All

  • Visual FoxPro How to create a Word document?

    I wish to convert a memo field into a Word format document. I searched around and found this: oWord=CreateObject("word.application") oWord.Documents.Open("c:\test.doc") oWord.ActiveDocument.Range.Start=0 oword.ActiveDocument.Range.End=0 oWord.ActiveDocument.Range.Text="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" oWord.Documents.Save() It works if the test.doc is already there. How do I create the file using VFP code because the file name should be created by the user himself. Thanks. Thank you both. =filetostr()  does create a word document and it runs fast. But when you try to open it. you got a prompt to convert and need to inst ...Show All

  • Visual C++ Odd pre-compiled header question

    Hi folks, I suspect this is an easy one but I can't seem to solve it. A week ago, I decided to reset my VC++ environment settings to the default values. Now, I'm getting errors related to the PCH whenever I try to build a file that's either creating or using precompiled headers. The error if I try to use a pre-compiled header ("/Yustdafx.h") is C2857 -- included file not found in source. If I try to create one ("/Ycstdafx.h") I get C1010 -- end of file while looking for PCH. The compiler helpfully suggests that perhaps I forgot to include #include "stdafx.h" in my source; I didn't. Figuring maybe I'd screwed something up, I reset to default settings once again, created a brand new Windows Forms app and a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Performance issue about UpdateSurface

    Hi all, I'm doing a pretty simple thing but I have too much more CPU load than I expected. Now, what am I doing I need to update a texture from CPU (and draw it) very often (may be about every frame). To do so I create a texture in D3DPOOL_SYSTEMMEM and one in D3DPOOL_DEFAULT (so the first should be in system-memory, while the latter should be in video-memory). I lock the first texture, fill it, unlock it and call UpdateSurface to copy the content into the video-memory texture. Then I use this latter texture to render. (In fact I have two swapping video-mem textures, but for this issue it doesn't matter) Doing so I noticed a quite heavy CPU load on the Present() call. Using a 16MByte text ...Show All

  • .NET Development How to catch a security exception within Remoting.Config(...)

    Hi folks, For some odd reason i seem to be unable to catch a System.Security.Principal.IdentityNotMappedException that is thrown during RemotingConfiguration::Configure(".\\MyApp.exe.config", false); [btw. try/catch(Exception^) around it doesn't catch this exception at all ] Furthermore the stacktrace doesn't help much either. Unbehandelte Ausnahme: System.Security.Principal.IdentityNotMappedException: Man che oder alle Identitatsverweise konnten nicht ubersetzt werden.    bei System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection  sourceAccounts, Type targetType, Boolean forceSuccess)    bei System.Security.Principal.NTAccount.Translate(Type targetType)    ...Show All

  • SQL Server SSIS data Convertion ??

    Hello all Ho can i convert Integer to String in SSIS Derived column. Thanks in Advance Raj Lakamana Sorry,I don't understand. Could you tell me in detail By the way, I found most of the wrong message is ' The data value cannot be converted for reasons other than sign mismatch or data overflow. ' What is that Thanks ...Show All

  • Audio and Video Development Do we have WMVCORE.DLL for x64 applications?

    I'm using WM SDK in my application to generate WMV files. Just now I have got a task to port my application to x64 platform. I wonder if I need a new 64bit version of WMVCORE.DLL (or .lib) If so, where can I get it Thanks. http://www.microsoft.com/downloads/details.aspx FamilyID=d9c6f6e0-dd2b-427e-9787-73312bb62532&displaylang=en You should read this page before installing: http://msdn.microsoft.com/library/en-us/WMFORM11/htm/windowsmediaformat95sdkx64edition.asp It describes some limitations of the x64 version. ---------------------------------------------------------------------------- Mike Wasson, DirectShow SDK Documentation This posting is provided "AS IS" with n ...Show All

  • SQL Server Script task DLL reference w/o being in GAC

    I need to add a reference to a DLL from a script task. But I do not have the ability to put the DLL in the GAC. The DLL is a 3rd party DLL and they do not want to strong name it because that creates a chain effect having to strong name all DLL's that are used in their projects that share the DLL I need to refernce. Ok my question is.. Can i reference that DLL somehow in the script task by manually adding the reference at runtime I found this next snippet of code on the internet, i cant get it to work though. Public Overridable Function CreateReferenceItem(ByVal itemName As String, ByVal assemblyName As String) As IVsaReferenceItem Debug.Assert(Not (itemName Is Nothing) AndAlso Not (itemName = String.Empty)) Me.AssertEngineItemUniq ...Show All

©2008 Software Development Network