PublicError's Q&A profile
Visual C# scheduler like a calender
hi people, i am writing a sheduler where you allocate engineers to jobs. jobs happen on a specific day and an engineer is not allowed to be allocated to more than one job on the same day. when i move a series of jobs along by one day, how can i ensure that by moving the job (hence the engineer) along, they do not conflict with other jobs that the engineer had for that day am i supposed to load everything into memory and cycle through them are there any shortcuts or techniques for this sort of thing As the scheduler goes on for ever (there is no end date), i would have to check all the way up to the last task. doesn't seem right. I suppose it might be down to the way i arrange my classes. I dunno. just wondered if anyone had any ideas or li ...Show All
SQL Server How can I print table structures in SQLExpress
I need to get a print out of column names, types, and properties for each of the tables. We just started using SQL Express from Access. I cannot find any reference to printing the structures in Microsoft SQL Server Management Studio Express. Thanks hi, I'd better go for INFORMATION_SCHEMA ANSI view or, if your really want to go a quiet unsupported way, you could even resort on an unsupported/undocumented stored procedure, sp_MSForEach ( http://www.databasejournal.com/features/mssql/article.php/3441031 ).. then you can define your query to be executed against all database tables... for instance something based on catalog views, similar to SET NOCOUNT ON; USE AdventureWorks; GO DECLARE @cmd varchar(MAX); SET @cmd = 'SE ...Show All
Windows Forms Im a trying to build a msi with visual studio pro ->Setup Project -> Custom Actions(SQLEXPRESS.EXE)
Im a trying to build a msi file but have a problem. I use the "setup project" template in visual studio pro to bulid a msi file for my application. I need sql express for my app. So i am trying to build an installation file(msi) with my app and sql Express. When i run the installation file i have created the sql Express run into an error, it says something about another installation is already in progress". Yes my msi file is running in the back ground, wich have started the sql express- installation. Anyone who knows how to get around this I just want to install both these applications at the same time! Regards Marreoragarn SQL Express is also using an msi setup, and you cann ...Show All
Visual Studio Express Editions run method from a different class - oop issue :-(
I'm struggling to get my head round OOP properly - please help! On my Form1 i have a button. this button calls a method "launchmMenu()" which is written within "public partial class Form1 : Form" now my head is hurting I read that post, can see how it relates to getting to variables, but can't see how i can use it to call the method ! raising an event from the other class sounds more like what i need - can anyone point me in the right direction of how to do this please ...Show All
SQL Server Error SQL server 2005 installing
first I installed SQL 2005 beta 2 the I uninstall it , but still I receive this error msg: SQL Server 2005 setup has detected incompatible components from beta version of visual studio, .Net Framework , or SQL server 2005 . is there any suggestion to solve this problem thanks for your reply If you first installed beta products you have to clean your system from all installed version of the beta software, client tools, .NET framework, SNAC, SQL Server etc. There is a uninstall software which cleans the installation, it can be downloaded here: http://lab.msdn.microsoft.com/vs2005/uninstall/preRTMuninstall/default.aspx http://lab.msdn.microsoft.com/vs2005/uninstall/default.aspx HTH ...Show All
SQL Server HTML in report
I would like to know when will the ability to render embedded html code in report be available. It's not html code, however you may be able to apply html formatting using this utility. http://blogs.digineer.com/blogs/jasons/archive/2006/10/03/520.aspx Embedded html code would be a good feature to have + perhaps javascript and event-driven reports. ...Show All
SQL Server Using Merge Replication, Parameterized Filters
Dear ppl, I am using Merge Replication between SQL Server 2005 (Publisher) and Pocket PC (SQL Mobile 2005-Subscriber). I have a Windows Mobile appliction on the Pocket PC that replicates data from the server. I am using SqlCeReplication class on the Pocket PC application to synchronise the data. By default, when i call the Syncrhonise() method, it pulls all the data from the server. What I want is to pass a parameter from the Pocket PC and filter the data based on that paramter. E.g. from the Employee table, I want only those Employee that belongs to a CompanyID that I pass as a parameter. Is there a way to do this, so that i can pass parameters from my PDA application (Windows Mobile), and make the Filters specified in the Pu ...Show All
Visual C# Question about using a winform as MessageBox
Hi all, quick question I can't quite seem to find the answer to. I am using the ShowDialogue method to display a winform as a MessageBox. 1) I would like to know how to close the winform messagebox when the user clicks off the winform instead of the default beep and blink. 2) How do you pass back a dialogue result from a custom winform dialogue box MessageBox returns a dialogue result -Thanks in advance! Form2 f = new Form2 (); DialogResult result = f.ShowDialog(); if u close the form2 u will get the result is 'Cancel' In Form2 is there any button. set the DailogResult property, then u can get the dialog result when u click the button ...Show All
Visual FoxPro sending email through Visual FoxPro
Sir, i have got one small program which has menu item report. when clicked on report push button the vfp generats a report (shareholders details who opted for adr). basically it is a 80 column report with just folio no,name of the shareholder, address of the share holder, no. of shares offered and weather some doucuments affixed. after viewing the report if the user clicks on email the report should be emailed to 2 common mail id's which i should be able to set inside the program. i will be greatful if any body can help me with the code thanks and regards (lakshminarayana r) No outlook. only internet explorer. windows xp is the operating system. but i can install outlook. i want to send mail from within visual fox ...Show All
.NET Development Cannot Connect to SQL Server 2005
Hello, I have been stuck on this problem for a couple of days. The sys admin gave my username access to a database on sql server 2005 using windows authentication. I try to connect to it using this and it says that my username cannot access the db. What can be wrong, the sys admin said that all looks well on his side. SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=serverName;Initial Catalog=DBName;User Id=MyUsername;Password=myPassword;"; myConnection.Open(); Thank you, Karina Thank you. I will do that. This is an intranet application, the DB is on our intranet and so is the web server and we're behind a firewall. I will most definitely check out that article. Thank ...Show All
Windows Forms Calling javascripts from C#
Hi all, I am not sure, whether I am posting this to the right group. Please help as this is urgent. I am loading a page webpage(jsp) from my C# code. I am able to get the document complete event of the page loaded. Then I am using the intenet explorer class to get the document of the currently loaded page. I am also able to access the various controls on the webpage. The problem arises when I am trying to access js functions in the webpage. Then we are getting an exception of "Invalid Cast Exception".I have imported all the reference dlls needed,like shDocvw and mshtml. While debugging I understand that while getting the document itself this exception is present for some of the properties of the document like ...Show All
Visual Studio 2008 (Pre-release) MediaElement fails to play audio and video.
I've been developing an app that uses MediaElement to play music and movies and while we've been testing it we've been having some problems with playing media in the mediaelement. In the early WPF-CTPs and with WMP11 beta installed we had problems but with the final version of WMP11 and the RTM of WPF it has worked like a charm. However, we recently released a preview-version of our program and we've got many people complaining over that it can't play any media. So apparently the famous* silent-mediaelement-problem is still alive. We've asked our testers what version of WMP they have installed. Some of them have 10, some of them betaversions of 11 and some the final version of 11. Same problem for everyone. Everyone was using XP. ...Show All
Software Development for Windows Vista Can you instantiate a different Workflow by using a Custom WorkflowLoaderService?
I'd like to get the Workflow from an assembly file and dynamcially instantiate it by creating a custom WorkflowLoader Service. I've tried this: WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof(ProxyWorkflow)); -- where ProxyWorkflow is nothing more than a blank activity (I've also tried making it a blank SequentialWorkflow) and in my custom WorkflowLoaderService, I try this: Activity workflow = (Activity)Activator.CreateInstance(_workflowType); return workflow; --where _workflowType is a SequentialWorkflow loaded from an Assembly file However I get this error: System.InvalidOperationException: Can not create workflow definition. WorkflowL oaderService has returned an object whose type does not match 'WorkflowClasses.P rox ...Show All
Windows Forms we got an error "operator is not valid for DBNull and type Integer"
we got an error "operator is not valid for DBNull and type Integer" when i enter nothing to the datagrid cell.Now i somtime i want to enter nothing in some datagrid cell If Not JvGrid.Item(counter, 2) Is Nothing And Not JvGrid(counter, 2) Is DBNull.Value And Not JvGrid.Item(counter, 2) = 0 And Not JvGrid.Item(counter, 3) Is Nothing And Not JvGrid(counter, 3) Is DBNull.Value And Not JvGrid.Item(counter, 3) = 0 Then MessageBox.Show("Invalid Entry ") Exit Function End If in this function i get all my required values but these values are with inverted commas so i want to remove inverted commas and get the values how can i do this....moreover how can loop can ...Show All
Visual Studio Team System is there a way to add more priority levels?
i have looking around for a while trying to find some way where i can add more priority levels and instead of have 1 2 3 i have critical high etc is there any way of doing this and is it possible with the process template editor Thanks Correct me if I am wrong but you can't just enter strings into the Microsoft.VSTS.Common.Priority field becuase it is of type integer and you can't just change the type without deleting the field entirely. One should create a custom field with a unique field name and refname. The System.* fields cannot be deleted if you change the type of Priority I recommend you not have Microsoft.VSTS.Common.Priority as the refname. Is this not correct ...Show All
