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

Software Development Network >> Greg Thomas - UK's Q&A profile

Greg Thomas - UK

Member List

Mark Benningfield
RizwanSharp
Tom Regan
Lexer
Genghis86
Tinomolloy
Pete Orologas
Jim Perry
S.Jan
garyf
ccal
apjungle
LeeM
SasiInfy
Douglas H. Troy
KHodam
Simone1
tonn
mustangBE
Shaus
Only Title

Greg Thomas - UK's Q&A profile

  • Visual C# root node should not be expanded at page load

    Hi.. I have created a treeview in asp.net using c#. But the problem is all the nodes are expanded when the page loads. In Treeview control, when the page loads, the tree should not be expanded. Only when the user clicks on the root node the child nodes should be seen. There are subchild nodes for the child nodes and they should be expanded only when the user clicks on the child node. How to implement this in asp.net using c#. Please help ...Show All

  • SQL Server Avegage from 4 columns

    I have 4 columns and i need average from this columns. I can sum values from this columns and divide by 4, but this is inproper in case of nulls. Is there any easy way to do that Right now I'am using: I use the same temp table from anomolous : For a unpivot solution for Sql Server 2005: drop table #colAvg create table #colAvg ( pkid int not null Identity ( 1 , 1 ), colA float null, colB float null, colC float null, colD float null ) insert #colAvg values ( 1.0 , null, 3.0 , 4.0 ) insert #colAvg values ( null, null, 3.0 , 4.0 ) insert #colAvg values ( 1.0 , null, null, 4.0 ) insert #colAvg values ( null, null, null, 4.0 ) ...Show All

  • Visual Studio Team System Solution requiring hardcoded path to projects

    I have a master solution that I'm using to build all the dependent projects in our web application. When I use team build to build the solution it fails because the use of the BuildDirectoryPath is throwing off the full paths in the solution file. I could get around this by overriding the BuildPath in tfsbuild.path, but my real question is what would cause my solution to require that the hardcoded paths to the projects exist, rather than rely upon the relative paths For example, here is a sample from the solution file. Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CompanyName.Common.Global", "D:\IT\Objects\Common\CompanyName ...Show All

  • Visual FoxPro Shellexecute on win98 / XP / 2003 server.

    does Shellexec behave differently on win98 than on XP I have a shellexecute command to unzip a zip file. The 'pfiles' folder the zip file resides in is under the folder the application runs in: =ShellExecute(0,"OPEN","unzip.exe","pfiles\01.zip","",1) On XP machines it works fine. On win98 machines it fails because it won't find the pfiles folder. Thanks. Hi Aleniko, Shellexecute shouldn't be dependant where your application is ran from. In other words in any OS I wouldn't trust it'd resolve my current folder and explicitly pass the path. ie: ShellExecute(0,'open','unzip.exe', fullpath('pfiles\01.zip'),0,1) Alternatively you might pass 5th parameter (working folder). ...Show All

  • .NET Development How to read ONLY the last line out of a very big text file

    hi every body Is there any way to read ONLY the last line out of a very Big text file in C# .NET Thanks Here's another way to do it. It is fairly unintuitive and I ran into a few surprises, as documented in the code:     public static String ReadLastLine(String path)     {       String retval = "";       FileStream fs = new FileStream(path, FileMode.Open);       for (long pos = fs.Length - 2; pos > 0; --pos) {         fs.Seek(pos, SeekOrigin.Begin);         // Try to detect the linefeed in the file    ...Show All

  • Visual Studio Express Editions Sending Page Down to WebBrowser control

    I have a VB.NET program that loads a web age into a WebBrowser window and I want to programmatically page down to a section of the page. I can get the page to load fine, it is the Page Down command that I am having trouble with. I tried to activate the webbrowser then send the {PGDN} with SendKeys method. It works intermittantly. The problem seems to be in getting the webbrowser to be actived before I send the {PGDN}. I have tried things like: WebBrowser1.Focus() Me .ActiveControl = WebBrowser1 active = Me .ActiveControl but I see other controls on my form get highlighted from time to time. If i manually click in the WebBrowser then send the {PGDN} it works fine. I even tried programmatically moving the ...Show All

  • Windows Forms Hi!!!!how can i create 3*3 ...means 3 rows n 3 columns of textbox dynamicallly for taking the input of matrices

    Hi!!!!how can i create 3*3 ...means 3 rows n 3 columns of textbox dynamicallly for taking the input of matrices....like i click on a button and 3 by 3 small textboxes are created at different location......so..how can i do it....is there anyway to take the imput of matrices dynamically.....thx ...plz gave a coded example... hi.. well brother thank u...i was working and i spend much of my time but could not do it....as i m a beginer...welll now the problem with the above code is that i ask that i have also to store...the integer input taken from the dynamically texboxes uare creating above in the code.........so after taking "integer input " from the dynamically texboxex....i have to store in a 2-D array....of matrices.... ...Show All

  • SQL Server Generate Scripts option in SQL 2005 Management Studio

    Did anyone even bother to test the Generate Scripts option for a database I changed the following options from their default setting: "Include Descriptive Headers" = True "Include if NOT EXISTS" = True "Script for Server Version" = SQL Server 2000 "Script Indexes" = True and scripted all Stored Procedures, Tables, User-defined functions, and Views Problems: 1.  Generates IF NOT EXISTS (SELECT * FROM sys.objects ... should be ...SELECT * FROM dbo.sysobjects ... 2. Generates WITH (IGNORE_DUP_KEY = OFF) ... on the indexes. That portion is incompatible with SQL 2000 3.Generates EXEC sys.sp_addextendedproperty ... should be EXEC dbo.sp_addextendedproperty ... Is there a hotfix or patch to deal with these issues ...Show All

  • SQL Server Installing SQL Server 2005

    I am new at installing SQL Server 2005 for the first time. How do I configure the server for security and setup user logins Thanks! Please do not post questions to the announcement area, as it is reserved for forums announcements. I am moving this thread to the more appropriate forum. Best of luck, -chris ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA 2D Collision Detection using Quadtrees

    I've seen a few posts on collision detection, and though I'd post an article on how to write a collision detection engine for your game. Take a look at: http://mbebenita.blogspot.com/ I'll follow it up with some source code as soon as I get a chance. Michael B. The link does not work :( Will there be any sample code How can you separate the bullets in different regions Is that we use generic list to store the bullets in each region If so, assume there are 1000+ bullets moving in each frame, will the update process slower than just checking all the bullets thank you very much ...Show All

  • Visual Basic Printers.count - runtime

    I have a project that's using the printing power pack. I'm getting a runtime when calling the printers.count method when no printers have been installed. Has anyone encountered this problem John Hi John, I just tried this on a machine with no printers and Count is returning 0 as expected. Can you share the code that is triggering the runtime error Steve Hoag Visual Basic Power Packs ...Show All

  • Visual Studio Team System creating work - item. is attribute refname just a qualifier?

    hi, i want to create a set of work-items to replace our existing requirements-database. these are 12 classes. therefore i had a question. in the xml-definition of a work-item i do see often the attribute "refname". a value of this attribute is " Microsoft.VSTS.Build.IntegrationBuild". is this just a qualifier or is there more semantics behind this refname if it is just a qualifier it should be possible to define something like this: <FIELD name="CustomerID" refname="ProjectPweb.CustomerID" type="String" reportable="dimension"> <HELPTEXT>something</HELPTEXT> <SUGGESTEDVALUES> <LISTITEM value="None"/> </SUGGESTEDVALUES> </FIELD> is this assumption correct what do i have to consider when usin ...Show All

  • Visual C# How to use DllImport with c++ functions that take a function pointer as an argument?

    I'm trying to understand how dll importing in c# works. I've managed to get it working for function F1 shown below, however I want to extend this to a function of type F2, which takes a function pointer as an argument I've look at the example on MSDN, but it is too dissimilar from what i am trying to do and I don't really understand it. Can someone tell me the c# code that will enable me to import the function F2 into my c# program, or point me to a a more basic tutorial than the MSDN help site, because I really didn't find it useful in helping me solve this particular problem. This is the .cpp file that i compile into a dll which my c# program then uses. I have successfully imported F1, but all attempts to import F2 have failed... extern ...Show All

  • SQL Server Questions about various DB connection methods.

    Hello All, I am looking to get some guidance and feed back from the community as to the prevalence and usage of the following technologies: ODBC Descriptor support OLE DB support External Linked Server support Data Link support for Data Transformation Services Specifically I am hoping to find out when each technology should be used and the types of applications that use them. Additionally, I am wondering if there are alternatives to these technologies and why they may have been used instead. Any guidance/feed back is appreciated. Thanks, Hi Jay, The best source of information in this case seems to be the SQL Server Documentation that comes with SQL Server 2005. It is also available at the online MSDN http://msdn2.microsoft.com/e ...Show All

  • Visual Basic VB6 Variable Name

    I have declaration in one of VB6 projects. Public Class as String When upgraded to .NET, the statement looks like: Public Class_Renamed As String Because, Class is a Keyword in .NET, it has been renamed. My issue is we are converting only the VB components to .NET and not the ASP pages. Since this is a public variable and it is being used by many of my ASP pages, Is there a way that I can use the same variable name in my converted .NET component You can define your variables like this to allow them to avoid Keyword conflicts: Public [Class] As String You will have to refer to the variable in your local .NET code in the brackets for it not to conflict with the Keyword but in the instances of your class you won ...Show All

©2008 Software Development Network