Marcel82's Q&A profile
Windows Forms Host Controls in Windows Forms DataGridView Cells
Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren Hi Timothy, If you are still having your issue, the first thing to check is that the KeyDown event is occurring for your editing control. If it is not, then make sure yo ...Show All
SQL Server Rebuilding System Databases on a cluster
I am having trouble rebuilding the SQL 2005 system databases on my cluster. The Cluster hardware failed completely and I am recovering from scratch (but only 1 node at this time) The Win2K3 OS is recovered and communicating with the domain. Cluster services have started and the quorum is online. The clustered SQL instance is offline because there is no master.mdf present. I run the setup command as per BOL: start /wait setup.exe /qn VS=<VSName> INSTANCENAME=<InstanceName> REINSTALL=SQL_Engine REBUILDDATABASE=1 ADMINPASSWORD=<StrongPassword> SAPWD=<NewStrongPassword> SQLACCOUNT=<domain\user> SQLPASSWORD=<DomainUserPassword> AGTACCOUNT=<domain\user> AGTPASSWO ...Show All
Commerce Server Catalog Web Service currently unavailable
Hi, I'm trying to update form Commerce Server 2002 to CS 2007. Now i think i'm pretty far but there are still some problems to solve. One is, that the CatalogWebService isn't available when I want to open ith with the CatalogManager. When i enter straightforward the link to the CatalogWebService.asmx in the Internet Explorer, the Site is loading correctly and shows my some information about the Web Service. What do I have to do so that the CatalogManager can open the WebService Hope you can help me. Thanks thx, but this I did.. and becouse I haven't this services in Default Web Site i added parametr /S:11111112222 where 1111112222 is ID of my CS site... <b>but unfortunatelly ...Show All
Visual C# Disabling Ctrl + Alt + Del
I'm writing an employee login application where I of course don't want users messing with Windows while it is running; Therefore I need to disable ctrl+alt+del. I've spent 2 hours now trying to figure out how to do this in C#. I've read from some people that I have to write my own version of GINA. I've also read about using WlxLoggedOnSAS to capture the ctrl+alt+del event. Are these the best mothods for doing this If so how on earth can I accomplish this task Thanks for the help :) Ctrl+Alt+Del has been since first PC to make soft boot. In the past DOS and TSR utilies hook that service. Later Windows replaced that service, but basically it works as originally designed. OS hooks are easily deviced with tool ...Show All
.NET Development Changes required to be done to disable View State on web pages containing DataGrids, Combos, and Listboxes
Hi!! I have a set of web pages containing DataGrids, Combos, and Listboxes, i want to disable viewstate in such pages in order to enhance the performance of the page, what are the changes you recommend i should do, such that it does not hamper the functionality of the page. Also let me know the things that i should look into the page before i decide to disable the view state Thanks Henry best place to ask ASP.NET related questions: http://forums.asp.net you will get a better answer and quicker response perhaps ...Show All
Visual Basic Array Structure Help
Fairly new to VB, but i have been advancing pretty decently in the past couple months. I'm currently writing a program that takes data entered from the user and stores it, and then i have various buttons within 2 forms for calculating the average, showing certain filtered items, ect... I have used array structures before, but not globally (among a multi-form project). In my module that i have declared all of my global variables, i have the following for my structure ... Public Structure Entry Dim gScore() As Decimal Dim gGender(), gDean(), gName() As String End Structure Public Data() As Entry Public gCtr As Integer = -1 Public Heading, Divider, NameTemp, GenderTemp, DeanTemp As String Public ScoreTemp As Decimal In my main form i hav ...Show All
SQL Server SQL Statement Schema
Hi, I'm trying to return the schema of a SQL statement (using SQLServer 2000) i.e. the column headers that are returned. I've determined that one way is to create a temporary table and to then query sysobjects and sysColumns Select 'Test' Col1, 'Test2' Col2 INTO #Test Where 1 = 0 Select Sc.Name from Tempdb..sysObjects SO join Tempdb..SysColumns sc on so.id = sc.id and so.name like '#Test%' Order By sc.ColID Result: Name Col1 Col2 Which is fine unless a temporary object with the same or similiar name has been created i.e. #Test2 etc... So im not sure if this is best way, alternatively can I use the 'SET FMTONLY ON' option but then how do I get the column headers into a variable. Any pointers or alternati ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3D10 Sprites are insane.
I'm trying to draw a single sprite to the screen. I have a window created (640,480) and the texture loaded in properly. The sprite drawing uses the code below in a Render() function. When run, the sprite does show up but is either tiny when scaling is not applied or skewed when scaling is applied. I know i'm messing up the scaling value, i'm just confused on what the formula should be for calculating it. Right now, i'm using example code from DXUT.cpp which says the scale should be (windowx/textureWidth) and (windowy/textureHeight). This gets the sprite close, but the result is skewed. Could someone please take a look at the code below and see if you see any glaring issues Thanks. Render() { // clear the target buffer ...Show All
SQL Server Programmatically Data Conversion component creation
Hi there, I have created a package which simply imports data from a flat file to a SQL Server table. But I need to incorporate a data conversion component by which I may change the source-destination column mapping programmatically. So what I thought that I need to add a data conversion component into the dataflow task. After adding this component (I found its component id as {C3BF62C8-7C5C-4F85-83C3-E0B6F6BE267C} ) I have created a path which establishes the mapping between output columns of source component and the input columns of data conversion component. Now I am not sure how to establish the mapping between the data conversion component’s input column collection and output column collection. I am giving my code snippet her ...Show All
Audio and Video Development Using one Button to open and close menu
I'm trying to change my menu trays to open and close with the menu button. The problem is I cannot think of a way in markup, to end one of the actions properly. I thought about just making a class that is set to either open or close. Any ideas <timing clock="page"> <defs> <!-- Effects for opening and closing main menu. --> <animate id="OpenMenu" style:x="-450px;0px" /> <animate id="CloseMenu" style:x="0px;-450px" /> <set id="Hide" style:display="none" /> <set id="Show" style:display="auto" /> </defs> <par> <seq begin="(id('BTN_MENU')[state: ...Show All
Visual Studio Express Editions in Progressbar?
Currently I'm making a media player which is using Windows Media player DLL. And I would like to get the length of the sound which is currently playing in Progress bar, How would I do that Please Help . One way to do this is to use a timer control to sample the Ctlcontrols.currentPosition property of the player. Send this to the Value property of the progressbar. Here is an example: namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click( object sender, EventArgs e) { if (openFileDialog1.ShowDialog()== DialogResult .OK) { ...Show All
SQL Server Can't connect to Express Edition
I have a huge connectivity issue that I can't seem to solve. We're using SQL Express Edition as a local data store that is participating as a subscriber to SQL Server Enterprise Edition. Perfectly valid and supported. Now the issue. I have the Express Edition on one machine connected just fine, but the other one absolutely refuses. Here is what I did for the one that connected correctly: 1. Enable remote connections for the Express Edition instance and restart the instance 2. Added the SQL Agent service account on the server to the SQLServer2005MSSQLUser$machine$SQLEXPRESS group on the local machine (yes, I want it to have that level of authority) 3. Connected to the machine with Express Edition to the network via VPN. 4. ...Show All
Software Development for Windows Vista How can I get Workflow Status from Tracking DB without using SqlTracking and WorkflowStatus?
How can I get Workflow Status from Tracking DB without using SqlTracking and WorkflowStatus property, but by select statement from DB Here is some tsql code to get the most recent status value for each activity in a workflow (just change the hardcoded workflow instance id or move the code to a proc with workflow instance id as a parameter). Activities that have not yet executed (or will never execute, for example in a branch that is not executed) are listed as 'Initialized' and the Context values are null. Hope this helps. Thanks, Joel West MSFTE - SDE in WF runtime and hosting This posting is provided "AS IS" with no warranties, and confers no rights DECLARE @Workflo ...Show All
.NET Development send xml file
hi to all i have one problem regarding to send xml file i want to send xml file on port 80 thru web service i am new in vb.net and asp.net so dont know how to send file it urgent if have any example so please give me WebClient has an UploadFile method that might already do what you want. ...Show All
SQL Server SQL Server stopping while configuring OLEDB connection
When I configure and test and OLEDB connection SQL Server 2005 keeps stopping with an error message as shown below. The problem seems to happen when I open the connection for ediing in Data Flow Window. There is a consistent pattern of errors (in there Event Log) relating to the Evnet Log prior to this error occurring. Any idea what the problem is I have to say that my experience with SSIS has not been very encouraging so far. Event Type: Error Event Source: MSSQL$SQL2005 Event Category: (2) Event ID: 17311 Date: 23/01/2007 Time: 2:06:41 PM Description: SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during ...Show All
