Software Development Network Logo
  • Windows Vista
  • Visual C++
  • SQL Server
  • Architecture
  • Windows Forms
  • Windows Live
  • Game Technologies
  • Visual FoxPro
  • Smart Device
  • Visual Basic
  • VS Team System
  • Microsoft ISV
  • VS Express Editions
  • Visual J#
  • Visual Studio

Software Development Network >> Jack Catheline's Q&A profile

Jack Catheline

Member List

Ankini
MKan
ggponti
RoPo-JP
Simon T
Viral Parikh
blumash
TomHope
Shivu P
civicsiman123
Cordt
Philippe.Jung
Andrea Ramacciotti
VishalJogi
Do Hoang Ha
Tiago Nobrega
SolidStrategies
ADG
Nookie
Çetin Yaşar
Only Title

Jack Catheline's Q&A profile

  • Windows Forms TabControl and ToolStrips:strange behaviour ?

    got a form with a tabcontrol on it. On each tappage a ToolstripContainer and some Toolstrips in int. If I see Tabpage 1 in the designer and run...then I get Toolstrips visible on Tabpage 1. Not on ex.TabPage2. if I see Tabpage2 in the designer and run...then I get Toolstrips visible on TabPage 2. No on ex. TabPage1. Is this meant to be or am I missing something Thx JMW You are welcome to have the last word on this, here's mine. When we set out to build toolstrips, we decided that we didn't know 100% of the cases where/when/how folks were going to use them.  This is a major reason why we decided to ...Show All

  • Windows Forms Icon Libraries

    Anyone know of a good source for icons to download for use in windows forms  I'm looking for some that are small enough (16 x 16 range) to use in a treeview control and pertain to project management, construction, or job costing. Thanks for any input! I was also searching for 16x16 icons, and found your post by searching google - ...Show All

  • SQL Server Max value

    Hi, I have a question on how to write this code in a better way (the @result should get the highest value of the @variable1 and @variable2). DECLARE @result int DECLARE @variable1 int DECLARE @variable2 int SET @variable1 = 5 SET @variable2 = 3 IF (@variable1 > @variable2) BEGIN SET @result = @variable1 END ELSE BEGIN SET @result = @variable2 END I had planned on using the max function but that only takes one argument (the variables get their values from different select statements). If somebody knows hows how I could optimize this code, please tell me. Thank you in advance BR Mikael ...Show All

  • Windows Forms Design patterns

    What are the design patterns that can be used and mplemented in most of the projects discussed here  Thanks. Most design patterns can be utilized.  In fact, I don't know a single design pattern that cannot be incorporated into a project just because it's done in .NET.  Depending on the type of application, different patterns are used.&nbs ...Show All

  • Visual C# Future C# string optimization directions

    This is a topic of academic interest to me.  Are there any plans to optimize code patterns such as: string results = ...; bool foundSomething = results.ToLower().Contains( "something" ) ) Here, I'm making a case-insensitive search and it seems that ToLower() is an unnecessary use of CPU cycles and memory accesses.  One possible solution, which isn't very extensible, is for ToLower() to do a lazy-copy: it will first make a reference to the input string and add a "use-lower-case" bit.  Contains() uses this bit to do the case-insensitive compare on the original string.  Brian ...Show All

  • Windows Forms c# to vb.net

    Hi can you help me convert the c# code on this link to vb, with a bit of explanation on the System.Data Interfaces. Thanks http://www.dotnetbips.com/displayarticle.aspx id=61 Thanks Human Compiler, it worked on the fly...but I have a little problem, you see i am trying to swith between Data Providers. I had a main form which connected to the database&nbs ...Show All

  • Windows Forms Datagridview and scroll bars...

    First... very cool component!  I built a very quick webservice which returns and imageid,category and imagedata(thumbnail size)  Created a winform with the datagridview set the rows autosize property to display the whole image (small) the Scrollbars property was set to both at design time (none showed) at runtime I set the scrollbars property to vertical and still none showed. ...Show All

  • Smart Device Development Hyperlink to Pocket PC CF App including Command-Line parameter

    Hi, I'd like to be able to start a CF application on a Pocket PC from a hyperlink in Internet Explorer running on the Pocket PC and include a command-line parameter.  Further, when the application is already running I'd like to be able to click a different hyperlink and send a different command-line parameter to the running application and have the application act on it. I've achieved this on Windows to a VB6 application.  I had to modify the registry; under HKEY_CLASSES_ROOT I added AppName\Shell\Open\Command keys and added the necessary values so that the following hyperlink <a href=AppName:Parameter;>R ...Show All

  • Windows Forms Display a file that is stored as a BLOB in the database

    Hi I got a winform app that has a button. When I user clicks on the button, I want the program to fetch a BLOB that represents a file and display it using the application that normally handles the file type. ie, if it's a jpg, open it with imageviewer. if it's a doc, open it with word. Thanks You'd have to write the blob to disc, using a filename with the correct extension, then use Process.Start to start the file, which will open the correct program. ...Show All

  • Visual C++ How do I compile in VS 2005 Express?

    Wow I know this has to be the ultimate newbie question.  I have looked everywhere within VS 2005 Express, and there are no options for compiling.  I created a new blank .cpp file and i'm totally stumped here.  Am I just an idiot or what :( I used to use Bloodshed Devx, i'd write my code and then hit the compile button and to open it up i'd open the .exe that it created of my program.  VS cannot compile single .cpp files that are not part of a project. You'll need to create a project (from one of the teamples or a blank one) and then add your .cpp file to it. This way, you'll have a "Buil ...Show All

  • Visual Studio 2008 (Pre-release) How to force visuals to get rendered?

    Hi, I’m programmatically creating shapes, like rectangles, and putting them in a canvas. I now want to be able to call functions like VisualTreeHelper.GetDrawing and VisualTreeHelper.GetContentBounds. The problem is that GetDrawing for my rectangle returns null, since it has not been rendered yet. I’m using VisualTreeHelper when I’m writing unit tests, so I somehow need to force WPF to render the visuals, without actually having the canvas rendered visibly. I’ve tried InvalidateVisual(), but I guess it just thinks that it doesn't have to be rendered so it does nothing. Is there a way around this / Joel try ...Show All

  • SQL Server XSD: Reading string in ROOT of XML

    Hi all, I am making a import from XML to SQL. I have chosen to do this via a XSD file, but I have a problem with the ROOT file of the XML XML: <Dogs bulkmode="0" xmlns=" http://scheme01.isp.com ">   <UnderDogs>     ...   </UnderDogs> </Dogs> XSD: <xsd:element name="Dogs bulkmode="0" xmlns=" http://scheme01.isp.com "" sql:is-constant="1"> Unfortunately this does not work. If I (for testing) changes the first line of the XML to <Dogs>, (and corrects the XSD) it works like a charm.  It is not an option to change the XML file, so somehow I need to make the changes within my XSD ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Textures flickering

    Hi, I have a scene with some sprites in it. I am using alpha blending on the sprites for transparency and everything is working pretty well however whenever the sprites are more than a certain distance from the camera the textures start to flicker (different pixels vary in intensity). I have tried using two different forms of texture loading: myTexture = ResourceCache.GetGlobalInstance().CreateTextureFromFile(dev, "..\\..\\Textures\\myTexture.tga"); and myTexture = TextureLoader .FromFile(dev, "..\\..\\Textures\\\\myTexture.tga" ,1024,1024,0,0,Direct3D. Format .A8R8G8B8, Pool .Managed, Filter .Linear, Filter .Linear, 0); ...Show All

  • Visual Studio Express Editions How to Reset Form and Delete DataSet

    Hi everyone, I have a form that gets filled with all kinds of goodies (listboxes, treeviews, textboxes, labels, etc). A dataset also gets created programatically with a single table (6 columns and probably 100 rows). I'm looking for a way to quickly reset the form back to its original state and delete the dataset. I found: Application.Restart() which looks like it resets the form like I want it to. Two questions: Any repercussions to using Application.Restart or is this what it's designed for How in heck do you delete a dataset There's got to be an easy way to do this that I seem to be missing! I seem to be able to f ...Show All

  • .NET Development filter xml element value or dump to dataset to filter?

    I have an xml file as the following: <company> <id>000</id> <address>foo</address> etc. </company> I need to search this file and get all values within the company element where the id equals a variable. I tried using (XmlTextReader.ReadString() = variable) which worked but it was too slow to be feasible. Is there a better way or should I just dump this file into a dataset and filter it there How slow is it what is your goal, and what is the current "speed" maybe we can speed it up. Loading it to a DataSet will probably take longer. ...Show All

©2008 Software Development Network