Marlund's Q&A profile
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
Visual C++ problem with adding callback
The errors is trying to say that the compiler is finding it ambigious to resolve your parameter since there are 2 instances of SmAddCallback that can fit your call. You need to be more specific in the second parameter. Hope this helps! Thanks, Ayman Shoukry VC++ Team Hi, I changed from SmHandler __stdcall RecoTextCB(SM_MSG reply, caddr_t client, caddr_t call_data ) to SmHandler __cdecl RecoTextCB(SM_MSG reply, cad ...Show All
Windows Forms Detecting remote control device events on a browser
Hi, I'm new to dot net, was wondering if anyone here could help... I got a Windows XP PC with a remote control. ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwmt/html/remote_control.asp ) I would like to grab the remote control events on a browser. I got the following C# code for the RMT events grabbing: using System.Windows.Forms; class Form1Window : NativeWindow { private const int WM_KEYDOWN = 0x0100 ...Show All
.NET Development Reading a MemoryStream using DataReader
hey, I have a database table with a field of data type varbinary(MAX) which is storing binary, it was written to the database using this code: //ms=a memorystream ms.toarray(); I want to now read this binary back from the database into a new memorystream using a data reader, see code below: public CustomCollection < LSPForm > GetAllFroms() { SqlCommand cmdRetrieveAllForms = new SqlCommand ( "Forms_SelectA ...Show All
SQL Server Date/time field accessing
I am at the begin with SQL-server, so for the begin i want to test the value of a datetime field in a table. For example if the content of the field named "danast" is equal with '02.01.1983'. In the documentation witch I've downloaded for SQL-server are explained many things but i did not find any example for a comparation of this type. I've tried such a comparation also in MSAccess (danast=#02.01.1983#) and in C++ (on a ODBC connectio ...Show All
Visual Studio Tools for Office VSTO and Microsoft Office
I am having trouble getting VSTO to work. When I go into Visual Studio to create the project I get a cryptic error telling me to check for disabled items in Excel (I have none) and then it instructs me to reinstall VSTO. A classmate suggested that it is because the University edition of Office (Microsoft Office Professional Enterprise Edition 2003) is crippled. Can anyone confirm if this is so Thanks, Michael ...Show All
Microsoft ISV Community Center Forums print out to .pdf or calling a macro with parameter
Hi, I created an .hta application that generates XML from Excel Sheets and the reverse, the thing is that when I do the reverse, generate Excel Sheets from XML files, i need to print that sheet to pdf. I try creating a macro that receives as a parameter the name of the final pdf file like this: Sub print2pdf(filename) ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, PrToFileName:=filename End Sub and then i call the macro in ...Show All
Windows Forms DataBinding Combos
Hi All, Hope someone can help me out. I have a winform with user details (textboxes, combos etc). I bind the textboxes to a dataset containing contact data. The combos are set to a reference dataset as the data source and bound to the contacts dataset. Like this… this .cboContactType.DataSource = Global.dsRef.Tables["ContactTypes"]; this .cboContactType.DisplayMember = "ContactTypeName"; this .cboCon ...Show All
SQL Server store procedure
Hi, I am shine. I've created a store procedure create procedure sp_tab_nam @tab_nam sysname,@fk_id int,@fk_out int output,@nl_out int output as set @fk_out=1 set @nl_out=0 execute('if exists(select * from '+@tab_nam+' where categoryid= '+@fk_id+' ) begin select '+@fk_out+' = categoryName from categories print ''shine'' end ELSE begin select '+@nl_out+' as outputs print ''kumar'' end ') and it's giving one error when e ...Show All
Windows Forms enable a form from another form.
how can i enable or disable a form from another form eg: i have a project prs. and 2 forms pr_menu and person. person should open on top of pr_menu. at the same time when person is opened, pr_menu must be disabled. i tried by the following&nb ...Show All
Windows Forms .NET LicenseProvider references?
Can anyone point me to a good resource (online or e-doc preferably) that will explain how to use the .NET LicenseProvider. I am trying to license some usercontrols that I built. I’m especially looking for an A-to-Z resource with examples on how to use the lc.exe and .licx files. Also if anybody thinks there is a better forum than this one, please let me know. Hi Santa, Please go through the bel ...Show All
SQL Server How to Delete Files on Maintenance Plan
Hello, I am creating a Maintenance Plan in SQL Server 2005. The 'Back Up Database Task' has the choice 'Create a sub-directory for each database' as SQL Server 2000 does. But when I add a 'Maintenance Cleanup Task' I do not see a choice to delete files on subdirectories. Looks like it only deletes the files from the directory I specify. So, looks like SQL Server 2005 is removing some functionality already available in SQL Server 2000. ...Show All
.NET Development Calling the GC.Collect method
I have a code like this : public void SetFrmLoginNull() { frmLogin = null ; GC.Collect(); } This method is in FrmMain. But when i run a code analyzer from some tools i have, it's said that i shouldn't explicitly call GC.Collect(); b'cos it had side effect. I just need some comment from you all regarding this topic. Any Comment You should not call GC.Collect() yourself, because it ...Show All
.NET Development bug in serialport.close() ?
Hi ! Here is my problem ... I developped in C# a class heriting from SerialPort. It contains functions structured like this : serialPort.open(); ....write....read.... ans so on; serialPort.close(); I use a timer to run theses functions every miliseconds. After a time, the application freeze. When i debug using "break all", i see a green arrow pointing serialPort.close(). When i press F11 to go to the next instruction, i can't see any y ...Show All
.NET Development VB.NET windows service
I have developed a windows service . I want to run it every Tuesday at 2AM(even when the clocks are turned an hour back or forward) . I have added a timer control . I know I can assign value to the interval property. My concern is it takes value in milliseconds . Is there a better way do acomplish this Thanks in advance Hello, Rather than using a Windows service, which forces your application to run in memory at all times ...Show All
