PedroCGD's Q&A profile
Visual C++ FormView which is hide, want to open from Tree
Hi, I have created one MDI application which has one DialogBar on left sidehaving TreeControl on it. When I click the leaf on the tree, I am creating one new document using following code. And when I press close button, it will not close but will hide. Because I have override OnClose method of child window with ShowWindow( SW_HIDE ); Code to open new document: I am using FormView's ID to open it again. myDoc = pApp->pDocTemplate->OpenDocumentFile( NULL ); //NULL to open new document ptrChildFrame = (CChildFrame*)((CMDIFrameWnd *)AfxGetMainWnd())->MDIGetActive(); ptrChildFrame->SetWindowText( "Diagnostic Window : LC No.: " + temp1 + ", DI Address : " + temp2 ); ptrChildFra ...Show All
Windows Forms Image inside DataGridViewComboBoxCell
Hi, Is is possible for DataGridViewComboBoxCell to display a list of images Thanks D you mean something like this Public Class Form1 Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load Dim cboColumn As DataGridViewComboBoxColumn cboColumn = New DataGridViewComboBoxColumn With cboColumn .Name = "Color" .Items.Add("Red") .Items.Add("Blue") .Items.Add("Green") End With Me .DataGridView1.Columns.Add(cboColumn) Dim txtColumn As DataGridViewTextBoxColumn txtColumn = New DataGridViewTextBoxColumn With txtColumn .Name = "Description" ...Show All
SQL Server sysmaintplan_log_detail comment and question
Greetings all I have a comment and query regarding sysmaintplan_log_detail. Firstly, the comment: SQL 2005 BOL calls this table sysmaintplan_log_detail (an _ between log and detail) and my version of SQL (9.00.1399.06) doesn't have that last underscore (i.e. it's called sysmaintplan_logdetail). Secondly, the question: how would I link this table into the calling task I would ultimately like to view from which maintenance plan it originated. This information can be discerned using the "Log File Viewer" but I would like to access this data using transact-sql and filter for specific error messages. Many thanks Max Hi Max, I've created a doc bug and will fix the incorrec ...Show All
.NET Development Xml Serialisation of interface and abstract class
Hi, Why does XmlSerializer doesn't serialze the interface but only an abstract class Whats the reason behind it In the below code if we replace the abstract it does serialize but the interface it doesnot serialize.. Thanks in advance. public abstract class iSample { void execute(); } public class SampleClass :iSample { execute() { //Some code } } public class SampleClass :iSample { object obj = null ; obj = new SampleClass(); XmlSerializer objXsr = new XmlSerializer(obj.GetType()); } An interface is nothing more than a contract of calling a number of functions or fields from a class. It d ...Show All
Windows Forms Controls move differently when scroll bars appear
I have some controls I am creating at runtime within a panel....when i click my buttons the controls is created in this format equally spaced between them control1 control2 control3 when the scroll bars become visible and I scroll down the the most recent control that was created.....and try to create another one....the controls is spaced waaaaaaayyy further than its set to do......... I know this because if I just add controls without moving the scroll bar at all they line up nicely and no extra spacing is added but if i move the scroll bar the controls spacing goes crazy........Is there a property that keeps my controls the same with or without the scrolling of the scroll bars..... MyControl.Top = ( this ._MyList.Count ...Show All
Smart Device Development Cell Broadcast in Today Screen
Hi, For my i-mate K-JAM (HTC Wizard, WM 5.0), I'm working on a Today Screen plugin which gives me some simple items of information, namely: 1) Signal Strength 2) Battery Remaining 3) Latest Cell Broadcast message While I've got #1 and #2 working, I'm flummoxed on #3. The SMS API certainly gives some structures etc. for the Cell Broadcast messages, I don't know which functions to use to obtain that info from the OS. Can anyone guide me towards the right API/source of CB information Note 1: Cell Broadcast is enabled from the Settings dialogs and I do get the Cell Broadcast "notifications, which I manually dismiss. What I'm looking for is a continuous display of the latest CB on the Today Screen Note 2: I'm obviously looking for a C++ b ...Show All
SQL Server Could not load package because of error 0xC001000A
I am trying to run an SSIS Package by using DTRun.exe this way C:\Documents and Settings\Fahad>dtexec /SQL DataDownload /Conn "Data Source =TriMurti;User ID=sa;Provider=SQLNCLI.1;Persist Security Info=True;Auto Translate =False;Password=gamba" /U sa /P gamba And the outcome of the command was Microsoft (R) SQL Server Execute Package Utility Version 9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 9:03:52 AM Could not load package "DataDownload" because of error 0xC001000A. Description: The specified package could not be loaded from the SQL Server database. Source: Started: 9:03:52 AM Finished: 9:03:52 AM Elapsed: 0.25 seconds ----------------------------- Any help in this ...Show All
Visual Basic How to display Non-True Type Font (draft 12 cpi) from Crystal Report in VS.NET 2003
Hi guys! I need your help... I want to use draft font 12 cpi in crystal report and print it to Line printer (Impact printer). I have already changed the font to draft 12 cpi, a non- True Type font, in the report designer but the problem is when I try to use it for printing or when I use the Crystal Report Viewer. The font is reverted to Arial, I think, which is a true type font. My question is how can I use non true type font in Crystal Report and view it to Crystal Report Viewer correctly Do you have any suggestion to fix this problem Thank you Draft font is available for the printer that I used. In fact the font that I used comes from the driver of the printer. I already set the printer t ...Show All
SQL Server Question about stored procedure
I have a stored procedure call procedure_1 which get a argument and display one record of result only. I want to write a SQL statment to join the procedure's result with other tables, but it is fail. How to do that Thank you very much! The following is a simple conversion of a stored procedure into an inline function: create table dbo.aTable ( rid integer, searchColumn varchar(20) ) go insert into dbo.aTable values (1, 'Search Target') go create procedure dbo.aProcedure ( @pm_searchArgument varchar(20) ) as select rid, searchColumn from dbo.aTable where searchColumn = @pm_searchArgument go exec dbo.aProcedure 'Search Target' go -- ---------- Procedure Result ...Show All
Visual C++ Windows Media Player - Visual C++ Runtime Library
OK...I am not sure if this is where I need to post this, but it looked like the place. I am running Windows XP I have been trying to open my Windows Media Player 10 and this is the message that I get.... --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Assertion failed! Program: ...rogram Files\Windows Media Player\wmplayer.exe File: .\geiss.cpp Line: 509 Expression: hdc == NULL For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts (Press Retry to debug the application - JIT must be enabled) --------------------------- Abort Retry Ignore I have tried downloading WMP again, but nothing. The player was working O ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ... Here is some code for VB.net users wanting to Run XNA beta 1.0 ..... Tidexconsultants
I have started converting some of the demos found for vb.net users, here is some as I do not know hoqw to make a zip file and attach it to this so I will paste the code here... This code below is for the user control: you should just rfrence the XNA dlll located in: C:\Program Files\Microsoft XNA\XNA Game Studio Express\v1.0\References\Windows\x86 Imports Microsoft.Xna.Framework Imports Microsoft.Xna.Framework.Input Imports Microsoft.Xna.Framework.Components Imports Microsoft.Xna.Framework.Graphics Imports System Namespace WindowsGameXNA Class GameEngineXNA Inherits Game ' Methods Public Sub New () Me .InitializeComponent() ' //Set Screen to 720p mode graphic ...Show All
.NET Development .NET Directory Services classes - Bug?
I am currently using Visual Studio 2005 Pro and am trying to make use of some of the Directory Services classes. In particular, the ResultPropertyCollection from a SearchResult is meant to expose the item property which can then be passed a string key to return the value of that key. However, this property is not exposed ! One of the samples provided Basic Directory Search Technology Sample has the following code snippet: foreach (SearchResult result in results) { Console.WriteLine("Path:\t\t" + result.Path); Console.WriteLine("Display Name:\t" + result.Properties["displayName"]); Console.WriteLine("Name:\t\t" + ...Show All
Visual Studio Team System Reports List in the Portal
I've installed Team System and created a CMMi Project. In the portal, i can see only 7 reports on the left under the "Reports" title. How can i add others reports in this list of the Sharepoitn Home page I also wanted to add that there is a tool specifically for modifying Sharepoint sites called "Sharepoint Designer" ( http://office.microsoft.com/en-us/sharepointdesigner/FX100487631033.aspx ) In addition, for general web site design, there is Microsoft Expression Web ( http://www.microsoft.com/products/expression/en/expression-web/default.mspx ) Both of these replace Microsoft Frontpage 2003. ...Show All
Software Development for Windows Vista Problem Changing Capture Filter Frame Rate using IAMStreamConfig
Changing Capture Filter frame rate using IAMStreamConfig doesn't work. Even if IAMStreamConfig.SetFormat returns S_OK the frame rate ramains unchanged. If i'am using Capture Pin Property Page frame rate changes are persistent. Any idea why IAMStreamConfig.SetFormat doesn't work Yes, there are, but all of them specify the same range (ie: 8.33 - 25). But only 8.33, 12.5, and 25 can be set. ...Show All
SQL Server Import Data w/o Purged Data
I'm using SSIS to setup a process to backup a db and then purge old data from the source db (sDB) while the destination db (dDB) would still contain all data includind the purged data. What would be the best route in doing this I've thought of importing all data from the sDB before I purge it however there are many tables and with many relationships and think this would get tedious, but maybe there is a way that I haven't thought of yet The second way I thought of doing it is to do a transaction log backup before and after the purge. That way I could restore trans logs before and after the purge. What I'm worried about is that what happens if there is data that is created during the purge even though it is not during normal activity ...Show All
