alvinr's Q&A profile
Windows Forms DataGridView and Calendar cells
Hi, I have made a class within my C# program to help assist with adding a Calendar/DatePicker to my DataGridView, but I don't know how to implement the DatePicker into my DataGridView. I have pasted the code posted by theBainster from this forum entry into my newly created class, called CalendarCells: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=3056&SiteID=1 I am opening one of my existing SQL database into my DataGridView and let it automatically display the columns, but how do I get the code from the above mentioned article to integrate with my form and DataGridView Here's how I load data into my DataGridView (this part works). The connection is valid and I use one of multiple databases (all wit ...Show All
Visual Studio Express Editions Read/Write INI
How can my program read and write to an INI file Goto Pinvoke.net here: it shows what should be the correct declarations: http://pinvoke.net/default.aspx/kernel32.GetPrivateProfileString http://pinvoke.net/default.aspx/kernel32.WritePrivateProfileString ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where do I get the Framework?
Everyone seems to be using it. Where do I grab this stuff Yes there was a Beta 1 and no, you don't need it to run Beta 2. If you install XNA Game Studio Express, you will just launch that to have access to the XNA Framework. It's basicall the C# Express IDE with the XNA tie ins. ...Show All
Windows Forms How To Detect Shift+Arrow Key
/* I override IsInputKey() to direct the Arrow Keys (Cursor Keys) to my custom System.Windows.Forms.Control. But, holding down the Shift-Key prevents the Arrow Keys from coming through. Holding down one of the other modifiers, Alt or Control, doesn't interfere with the Arrow Keys. How can I intercept the Arrow Keys when holding down the Shift Key */ //class KeyTest class KeyTest:System.Windows.Forms.Control { //constructor KeyTest() { KeyDown+=OnKeyDown; Paint+=OnPaint; Dock=System.Windows.Forms.DockStyle.Fill; } //IsInputKey protected override bool IsInputKey(System.Windows.Forms.Keys a) { return (a==System.Windows.Forms.Keys.Down)|| (a==System.Windows.Forms.Keys. ...Show All
Visual Studio Tools for Office i want to pass a worksheet from one workbook to another
Hi, i want to move a worksheet from one workbook to another workbook. could anyone help me. Prasad Hello, You can use the Worksheet.Copy method to do this. Please see the following thread for an example: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=492722&SiteID=1 This thread shows how to copy a worksheet from a non-VSTO workbook into a VSTO workbook, although you can modify this code to do the opposite. I hope this helps, McLean Schofield ...Show All
Smart Device Development ARM4I device emulator doesn't boot in VS2005 SP1
Hi, I build a debug version of a Mobile Handheld OS configuration in WinCE 6.0 using the DeviceEmulator BSP in VS2005 SP1. No modifications were made. Connectivity options for Download and Transport are set to "Device emulator (DMA)" and 'Create text console window for Serial port 1" is selected. When I try to attach to the device I see a black emulator window popup and the console window shows: >>>>------- Windows CE Kernel for ARM (Thumb Enabled) Built on Sep 6 2006 at 19:11:16 ProcessorType=0920 Revision=1 OEMAddressTable = 80075f48 INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0xb DCache: 8 sets, 64 ways, 32 line size, 16384 size ICache: 8 sets, 64 ways, 32 line size, 16384 size OEMInit: soft reset ...Show All
SQL Server Can we use User Defined Functions in Report Builder
In a typical Database, there are tables, views, stored Procedures, user Defined Functions. We could use tables and views in designing the Report Model. We cannot use Stored Procedures, I tried that. Please could somebody tell me if we could use User Defined Functions What if a view is already using a user defined function, is the function automatically includid in the Model Design Thank you, Thank you very much, You said we can use Stored Procedures when we are designing the Report Model. Am I right Please could you tell me details of Where and how can you set the CommandType as "StoredProcedure" Thank you, ...Show All
Visual C++ Repost-Same code compiled sucessfully on a desktop but failed on a laptop
Repost due to the display error.--- Below code can buit sucessfully on a DELL desktop but failed on a compaq laptop.The compiler said that snack 's size is unknow. #include<iostream> #include<string> using std::cout; using std::cin; using std::endl; using std::string; struct CindyBar{ string brand; float weight; int calory; }; int main(){ cout<<"Plesae enter the size to determine the array:\n"; int size; (cin>>size).get(); CindyBar *snack=new CindyBar[size]; cout<<"Please enter the items one by one:\n"; for(int i=0;i<size;i++){ cout<<"Please enter the No."<<i+1<<" 's brand:\n"; getline(cin,snack[ i ].brand); ...Show All
Windows Forms Hiding Images with timer control
Hi, I was wondering if anyone could help me with the following problem. I have 8 images at the beginnning form. What i want to do is one by one make them disappper with a timer event. This event just keeps on looping around so it does not stop. So after the first cycle all the images will appear again and then the cycle will start again. I am a beginner at c# so any help will be appreciated. Could someone please guide me step by step. Ravi Assuming you are displaying your images in a PictureBox, this code should help: private int mNextControl; private void timer1_Tick(object sender, EventArgs e) { // Find next picturebox PictureBox box = null; int index = mNextControl; ...Show All
Windows Forms What's the MSN SMTP server when using SSIS?
Hi, I'm learning SQL Sever Integration Services (SSIS) and am trying to send myself an email. When setting up the send mail task, I am asked for the SMTP server; since I use MSN, I tried "msn.com" and "smtp.email.msn.com", but neither one worked.u'm developing on a single machine with no network except web. Any suggestions for what I use for the SMTP server and also how I would set up the authentication Thanks. Eaton Just search for "Free SMTP Server" on Google, it shows up with quite a few. As for setting them up, they should come with documentation. I am not directly familiar with any of them off hand. ...Show All
Visual FoxPro Help with code for updating table on website
This is the code I am attempting to usw to add/edit date in a free table on my website. It opens the table fine and will display what is already in the table, but any changes I try to make do not arent being saved. I dont get any errors. Any help USE \\www.infotizer.com\lotterydata\NewData.dbf SET SAFETY OFF SELECT NewData INDEX ON state TO IdxState SET SAFETY ON SELECT StateLinks SET ORDER TO STATE && STATE GOTO TOP DO WHILE !EOF('StateLinks') SELECT StateLinks ThisState = ALLTRIM(State) SELECT NewData SET ORDER TO IdxState SEEK ALLTRIM(ThisState) IF FOUND() SELECT NewData SCATTER MEMVAR m.g1date = g1date m.g1name = ALLTRIM(g1name) m.g1num = ALLTRIM(g1num) m.g1b1name = ALLTRIM(g1b1name) m.g1b1num = ALLTRIM ...Show All
Software Development for Windows Vista Compairing two audio file in c#
Hi all, i want to compair two .wav file how it is posible Didn't I already respond to this If you are working in c#, you may find this useful: http://DirectShowNet.SourceForge.Net --- Co-Author of DirectShowNet ...Show All
Visual Basic Simple problem with Combobox in Datagridview
Hello, I have a datagridview set to a datasource that fires up just fine. When I go to change one of the columns to a combobox type, all I get are exceptions. I have the DataPropertyName set to the correct field and would like the user to be able able to select from a simple list 1-30 - which I then put in the Items (collection) area. I have left the DataSource/DisplayMember/ValueMember all blank since I am providing the dropdown data. What am I doing wrong Does the following comment have something to do with it What does the following mean The drop-down list values (or the values indicated by the ValueMember property) must include the actual cell values or the DataGridView control will throw an exception. Thank yo ...Show All
Windows Forms Save file to users Desktop - Help?
---------------------------------------------------- Development Tool: Visual Studio 2005 Language: Visual Basic .NET ISSUE: Copy file to users desktop ---------------------------------------------------- DETAILS: I want to take a copy of a file and save to the users desktop. For example: lets say I have a file that gets placed under c:\filename ******************************************************************* Dim source = "C:\Filename.xls" Dim destiation = "THIS IS WHERE I NEED HELP" System.IO.File.Copy(source, destination) ******************************************************************* How can I set the 'destination' so that it goes to the users desktop. I won't know every ...Show All
SQL Server Processing Mining Models & Structures via SSIS
Still new to DM and SSIS...anyand all help is greatly appreciated! In SSIS they say that you can use the Analysis Services Processing Task to process a mining model/mining structure, however, I do not see where you can give it a relational table to work off of. I know that I can use a data flow to do this but I wanted to go a different route if I could to process my models as I don't really necessarily need the data flow as what I am tring to do is pretty simple. That brings me to a more general question, what is the best method for training your models using SSIS I am building a new model everytime the package runs using some variables and the DDL task, running a query on it, and destroying it at the end of the package but I am ha ...Show All
