Fieldzy's Q&A profile
Visual C# Run Windows Application From Windows Service?
Hi, I have made a windows service that has a timer checks for a certain time to remind me. Now the time is reached so i want the service to display an alert!! I have made a windows app that shows the alert but when i run it from the service it runs but not GUI displayed!!! I can see it runs from the Task Manager but i cant show the form. So is there any way to dispay i GUI alert from a windows service Thanks a lot Hi major, Below is the code which we use to print files(can be .pdf,txt,doc ). SetDefaultPrinter( "\\01hw111683\\ZoneThree" ); ServProcess.StartInfo.CreateNoWindow = true ; ServProcess.StartInfo.FileName = "c:\\Projects\\test.txt" ; ServProcess.StartInfo.Ver ...Show All
Visual C++ COM DLL, regsvr32 and manifest - blech!
I have a COM DLL that relies on MSVCR80.dll and when I try to register it with regsvr32.exe I get a "loadlibrary failed -2147220473" error. If I create a regsvr32.exe.manifest file and place it with regsvr32.exe, then it works. There has to be a better solution though. I can't count on target PCs having regsvr32.exe.manifest installed (and I'd rather not install it if possible). OK tjhat's a different manifest issue. Only the manifest for the EXE can set the requestedExecutionLevel. This can't be done at the DLL AFAIK. Here's a manifest for this: < xml version = " 1.0 " encoding = " UTF-8 " standalone = " yes " > < assembly xmlns = " ...Show All
Visual Studio Team System How to run MSTest from windows application?
Hi, I am writing a automation tool to test installation and functions of both Server.DLL and Client.DLL. To verify installation test I developed a windows app that installs server, client and test project. Now over this, I loaded all the test methods from the test projects. I want to let the tester choose the test methods and run that through MSTest.EXE and send report in email. Now, problem i faced is when try to run MSTEST.EXE from System.Diagnostic.process, The system gives error saying MSTEST file is not found. obiviously because it resides in VS.NET folder which our project cannot locate. How can I make it independent of the MStest.exe's location thanks, kesh Hello, I think you can ...Show All
Architecture Office Automation in .NET
Hi, We have a Documentation system which generates some output documents based upon some pre-defined templates in MS Word. What we did in the past was, we designed these templates in Word. We had a Visual Basic dll which dynamically merge the data into these templates using Mail Merge feature. Now we are enhancing/upgrading this application. I was wondering if we can get rid of this Mail Merge some way because using MS Word on server with COM+ causes many unwanted scenarios, like Word instances remain open and eats memory, Some unwanted data appears in Mail Merge fields and Word opens a pop up etc. Can anyone suggest something more useful Thanks, Pranshu! Yes the documents need to be mainta ...Show All
Visual Studio Team System How can I deploy only the stored procedures have been check-in on Source control?
My database project have been create from existing database by import shema database. I put my database project under source control. I check put a stored procedure to modify something but I have not yet check in the stored. After that, I built the project and deploy(with update option) back into the existing database . Oh my God, I saw the changes in the stored(have not yet check in on source control) have been update into the database, why is the stored have not been check in but It is deploye into database How can I deploy only the stored procedures have been check-in on Source control Is there any way to do that In general if you have objects in your project that you do not want to deploy, you sho ...Show All
Software Development for Windows Vista Automatic conversion of workflow type to XAML
Hi, Is there any tool available for converting a workflow type to XAML format Regards, Chakri. Daniel, I think this is not what the initial poster is asking, this is serializing a workflow instance, not the workflow definition. I posted a similar question a while back and got no answer. The problem I have is that we started developing a code based workflow and would now like to convert it to XAML with code behind but apparently we're stuck with our initial choice and it's now too much work manually convert the workflow to XAML. -- Nuno ...Show All
Visual Basic problems with handling exceptions
Hi, Can somebody tell me how to handle exceptions if they involve two different forms as values from the first form is passed to the second form via public property. heres the code for my first form, Grouping: Private Sub btnGrpAnalyse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGrpAnalyse.Click Dim gR1 As New GroupingResults gR1.g1 = cmbGrade1.Text gR1.g2 = cmbGrade2.Text gR1.g3 = cmbGrade3.Text gR1.g4 = cmbGrade4.Text gR1.a1 = cmbAction1.Text gR1.a2 = cmbAction2.Text gR1.a3 = cmbAction3.Text gR1.a4 = cmbAction4.Text gR1.gTest = cmbGradeColum.Text End If gR1.Show() Close() End Sub End Class note: the gTest value is sent to t ...Show All
SQL Server SQL CE Trouble in Visual Basic 6
I use SQL Server 2005 Compact Edition RC1 with Visual Basic 6.0. connection provider that i use is Microsoft.SQLSERVER.MOBILE.OLEDB.3.0. for database management i use SQL Server Management Studio. some query can't execute in visual basic but in sql management studio, that query can run very well. for example: 1. select KodeSatker, KodeSatker + ' - ' + Nama as Nama from TMSatker where len(kodesatker)=3 order by KodeSatker 2. Select a.kdprog, a.nama, b.kodesatker + ' - ' + b.nama as SKPD, a.nonurusan from TMProgram a left join TMSatker b on substring(a.kdprog, 1, len(a.kdprog) - 2) = b.kodesatker 2 query above can run in sql management studio, but in visual basic 6.0, that query have an error. error msg:run time error '2147217887 (80040e21)' ...Show All
Visual Studio Team System Dual-server setup / Impossible to specify Database server name in Services Setup
Hi All, I have been reading all installation readmes and help files and still, I could not manage to go through the setup of VSTS. Here is the situation : I try to install VSTS in dual-server mode, on two distinct Win2003 SE virtual machines, running on one single host. I have the domain users tfsSetup and tfsService, with correct credentials. Data tier has been installed ok. I have SQL Server 2005, hotfixes and TFS database part. Application tier has (so far) the SQL 2005 Report Services, hotfixes and Sharepoint Services installed. 1. When I restart the application tier after installing SharePoint Services, I get an error message stating that "one or more services have not been started...". It appears that Repo ...Show All
.NET Development Excel and ODBC
So I'm using ODBC to connect to an Excel spreadsheet. I use an Adapter with the simple SELECT * FROM [Sheetname$] to fill a DataTable. The problem is the DataTable doesn't fill correctly. I went ahead and just attached the DataTable to a DataGridView and noticed there were missing values. Specifically where values above them were different. Ex. Value in [4][4] = "1/1/2002". Therefore it expects every value in [x][4] to be a date. Entire columns of data are missing I'm guessing because they didn't match the first data type encountered in that column. Is there a work around for this No, I don't want to use COM. They do not want to have Microsoft Office installed simply to use this application. This is why I'm using OD ...Show All
Visual Studio Team System Team Build & WAP - Only drops DLL-files, not any of the content - bug or by design?
I finally got my WAP to be successfully built as a Team Build (which got references to files in another Team Project, so I had to mess around in TFSBuild.proj). But in the Drop folder I only got a Folder called Release with the binaries (the DLL files). What happened to all content files Aspx, ascx, jpg, gif, folders and so on A quote by ScottGu from 17 april 2006: "Yep -- we will support team build . There is an issue with the current RC with team build not copying content files." This sounds like WAP would support Team Build in version 1.0. If not.... how should I get the content files in the drop folder Okey! I will copy the files manually. But I would like to copy files that is marked as Content under Build Action. I ...Show All
Software Development for Windows Vista why stateMachineInstances["Guid"].CurrentState is null?
in WF-HOL lab04 after invoking that RaiseCreateOrderEvent in OrderServices, why the stateMachineInstances[Guid].CurrentState is still null but sometimes it got the expected state,why i just wanna Serialize the CurrentState to disk, u know that lab04 the OrderInstance is stored in memory. and i wanna retrive the stored State nexttime. Any good suggestions ...Show All
SQL Server CONDITIONAL SPLIT Assistance
i need to use a conditional split transformation to find missing column and direct the output of conditional split to my destination. I have the following columns PatientId, Allergycode, SeverityCode My requirement is to check whether value of a particular column is null or not null. Please help. Ronald My conditional Split has 14 outputs. The conditional Split default output is connected to the data conversion. Yes, I have monitored the data flow during execution. No, it does not. ...Show All
Visual Studio Newbie: Modify web page code-behind from DesignerActionList?
I've created a custom DesignerActionList for a custom web control. For one of my DesignerActionMethodItems, I would like to generate code to be inserted/updated in the web page's code-behind file. How can I do this You can use VS Design Time Extensibility (DTE) to insert code into the project. The following code will get you to the project item that the designer is editing. From there you can use DTE to get the project item of the codebehind file. From there you can get the file code model. The file code model will allow you to parse the file and insert code where needed. EnvDTE.ProjectItem projectItem = (EnvDTE.ProjectItem)Site.GetService(typeof(EnvDTE.ProjectItem)); Here are some relavent pointers for accessing DTE. Not ...Show All
Visual Studio Express Editions yet another listbox question..
I am having trouble figuring out what i am doing wrong here. the following is the code im using. after that i will explain what i want it to do. Private Sub load_but_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles load_but.Click Dim game_dir As String = wrk_dir.Text + "\" + gametype.Text + "\" Dim TextLine As String ' Open file. Try FileOpen(1, game_dir + "maplist.txt" , OpenMode.Input) ' Loop until end of file. Do While Not EOF(1) ' Read line into variable. TextLine = LineInput(1) ml_list.Items.Add(TextLine) 'add the value of textline to the listbox Loop FileClose(1) Catch ex As Exception ...Show All
