luzippu's Q&A profile
Windows Forms Panel control autoscroll problem
I've had a problem with the Panel control in the past. I had child controls that would adjust their height based on the available width. These were docked one after another to the top of the panel. The idea was to have something that would reformat itself after the user resized the form (similar to what IE does when you have a&nb ...Show All
Visual Studio Examples of beta vs prod builds?
I have a 2005 smart client that is deployed using ClickOnce. To build beta, I have to change the app.config file via Settings.Settings to say "Beta" and vice versa for a prod release. I also have to change the URL in the publish tab via the properties window for the project. It is really not that much but I can't seem to find any examples of how to do this via MSBuild. Anyone have any samples, links or anything they can point me to Thanks, Keith Keith, Unfortunately I'm not terribly familiar with how app.config and settings.settings files work. Since you're trying to modify database connection strings I suggest p ...Show All
Visual Studio Tools for Office Issue with Validation.Add
I'm creating an excel sheet using VSTO and i have a situation wherein the user needs to enter only decimal values and that particular cell has a format set to percentage. Here is my code Excel. Range oRange = Globals .Sheet3.Range[ "TaxRate" , missing]; oRange.Validation.Add( XlDVType .xlValidateDecimal, XlDVAlertStyle .xlValidAlertStop, XlFormatConditionOperator .xlBetween, 0.0 , 99.9 ); oRange.Validation.IgnoreBlank = false ; oRange.Validation.ErrorTitle = "Not a valid tax rate" ; oRange.Validation.ErrorMessage = "Please enter a valid tax rate" ; Now, when i execute this i get a ...Show All
Windows Forms Won't give me full trust! :S
I have this control that displays in my web page very nicely, but it is still running in the "partially trusted context"! I need FULL trust! I went in the Framework Configuration, told it to fully trust my DLL. Then I went into IE >> Options >> Privacy tab, added my site. Tried again, it still produces that bubble saying it is running ...Show All
SQL Server Query/View Question
I am trying to create a view that returns data from three tables and can't seem to get it to return the data that I want. I am no SQL expert, so hopefully someone can give me some insight into what I need to do. The tables are basically set up like this: TABLE 1 PrimaryKey Textfield1 Textfield2 Textfield3 TABLE 2 PrimaryKey Table1ForeignKey Table3ForeignKey Textfield1 TABLE 3 PrimaryKey Textfield1 Textfield2 Tex ...Show All
Visual Studio Express Editions VB.NET & SQL Server Installation Problems
Hi, Maby someone can help... I've just downloaded the .img installation file of VB.NET (the latest express edition) and extracted it and installed it. Before then, I uninstalled VB.NET Express edition BETA 2. On completion of the install of the latest VB, the SQL Server installation failed and when I started VB, there where absolutly no templats what so ever. I re-installed the whole lot again and check out all the advice that there was but still nothing works... Please help, any advice will be gladly accepted. Matt. Matthew this is the same question http://forums.microsoft.com/MSDN/ShowPost.asp ...Show All
Visual FoxPro report temp file not found
I need to create a simple report, nothing fancy. Just to preview some memo fields. This is the code I use. lcFile = "C:\VFP_Projects\Reports\MyReport.FRX" SET DIRECTORY TO "C:\VFP_Projects\TEMPORARYFILES\" CREATE REPORT (lcFile) FROM (ALIAS()) FIELDS memo1 The second line (set directory to) should be explained. I get an error that a temp file c:\\VFP_Projects\Data\...\000035e10062.tmp no found. Options are "Locate," "Ignore," "Cancel," etc. Naturally the file name changes every time I try to create a report. Thus the name above does not mean anything. The error messages comes up ever ...Show All
Visual C++ What happened to io.h?
I'm using Visual C++ 2005 version 55537-000-0000016-00168 and the only place I can find io.h is in C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\io.h. Is that intentional Thanks, Keith MacDonald Hi Keith, It was fixed after that. I verified this on build 050215. Ronald ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Beginning Managed DirectX (C#): Manager.Adapters.Default
I just installed the December 2005 DirectX SDK, and am using Visual Studio 2005. I have a reference to C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\2.0.0.0_x86\Microsoft.DirectX.dll in my project. The problem: I've seen numerous tutorials doing this: int adapterOrdinal = Manager.Adapters.Default.Adapter; Which results in this compile error: Static member 'Microsoft.DirectX.Direct3D.AdapterCollection.Default.get' cannot be accessed with an instance reference; qualify it with a type name instead First, when I type in Manager.Adapters. Intellisense does not show a Default property. When I go to the definition of AdapterCollect ...Show All
Visual Studio Diferents Domain Models an Designer Definitions in the same project
Hello, It is possible to create more tha one dm an dd in the same DSLTools proyect to do different models during the debugging and after merge its wit T4 Thanks a lot! Rafael Cabedo rcabedo@dsic.upv.es Hi Rafael, It is not possible to create more than one dsldd file at present in a single project. Technically it is possible to create more than one dsldm file, as long as only one is pointed at in the .dsldd file (lets call that the "main" one). The other .dsldm files could be referenced by the guids of their substores in the main .dsldm file's Model.Extends property (which would be b ...Show All
.NET Development Open DataReader associated with this Command
SqlConnection conn = new SqlConnection("Data Source=server;Initial Catalog=db;Persist Security Info=True;User ID=xxx;Password=xxx"); public Form1() { InitializeComponent(); this .conn.Open(); this .GetConn(); //Creates first reader this.GetConn(); //when I try to create second reader it th ...Show All
SQL Server select from the same table
My table is CREATE TABLE [ARQ_Arquivos] ( [ARQ_ID] [int] IDENTITY (1, 1) NOT NULL , [ARQ_Descricao] [text] COLLATE Latin1_General_CI_AS NOT NULL , [ARQ_Link] [varchar] (255) COLLATE Latin1_General_CI_AS NOT NULL , [ARQ_DataHora] [datetime] NOT NULL , [ARQ_PastaID] [int] NULL , [ARQ_EPasta] [bit] NOT NULL , [ARQ_Criador] [int] NOT NULL , ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO I need to make a folder tree in a sql query from that table where ARQ_ID is the father of ARQ_PastaID and I need a result like Folder1 Folder1/subfolder1 folder1/subfolder1/subfolder2 folder 2 folder 3 folder3/subfolder3 I tried with SELECT A ...Show All
Visual Studio Express Editions Text editor code
Can someone kindly point me to some sample code to build a simple text editor application I just need to do the basics ... reading files, editing, saving, etc. Many thanks... There are several posts here that contain everything you want to do right here. One to look at is the Print Preview, Maxed Out post, he included some code that will help you get going. And there are others that you can find here on Printing that include other functions, like setting Font, Font Size, Font Style, etc. Also, do a search with Google and you will find links to samples. james aka:Trucker ...Show All
Visual C++ Linking Errors
I know I have posted a couple of messages on here about debugging and errors, but I really am struggling at the moment with the compiling of my console application. Each of the individual subroutines compile with no errors but now when I try to compile the entire application I have the following errors: Linking... LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library display.obj : error LNK2001: unresolved external symbol _clreol measure.obj : error LNK2001: unresolved external symbol _clreol schema.obj : error LNK2001: unresolved external symbol _clreol display.obj : error LNK2 ...Show All
Smart Device Development HELP! Basic Signature Capture on a PDA for a newbie
Hi, I've been thrust back into the world of development head first and I'm trying to get my head around vb.net 2005 as the last bit of dev I did was in VB6 nearly 3 years ago. I've been asked to put together an app that will allow a user to enter data on a PDA which will then store the information on an SQL database, but, of course, they require a signature field at the end. I've searched MSDN and the web for code and examples but most seem out of date (eVB) or over complicated or costly! The best article I've found was the one posted by Ralph Arvesen on MSDN which came with a working example, however it doesn't just capture the signat ...Show All
