Hans Geurtsen's Q&A profile
Windows Forms auto screen resolution for c# window application
I have done a c# windows application, It should be automatically adaptable for all the screen resolution like 1024x768 or 800x600 and (ect) .how to do this Hi, what you will need to do is to set the Anchor and Dock properties of each control in your application so that they resize correctly and the application resizes. Mark. ...Show All
.NET Development SMTP email not sending
An application I have written is supposed to send an email. Everything works fine on my machine, but the email is never sent on the client's machine. No errors are thrown either. All of the processes the application performs before sending the email are completed. I am using VB.NET and VS.NET 2003. I am using the System.Web.Mail.SmtpMail.Send(From, To, Subject, Body) function. Does anyone have any ideas on why it wouldn't send Is it something to do with their server If you're certain that no errors are thrown it may be an error from the delivery side e.g. bad email address supplied, bad recipient mail server. You can send a test email from a service like hotmail to see if the email reaches the destination to determine if the receivi ...Show All
Software Development for Windows Vista Pseudo Code anyone?
Ok Experts, I am looking for nothing more than pseudo code at this point - I've done little more than dabble around with the UI, created a simple activity, done some limited persistence etc.. Here's what I would like to do: Create a new WF instance Persist, and place the Instance GUID in a table, along with other attributes Present this list and allow selection Open the WF Instance again, and munge around with it - add properties etc.. Continue along the WF route and evaluate rules as necessary Persist again, etc.... Essentially I am not seeing the easy way to open a WF instance, work on something related to it, then update some properties and have it reume it's path ... Anyone care to point me in the right ...Show All
Windows Forms l.com How can I change the Font.Bold in Treeview Control
Hi I have a Treeview Control that I load all root Nodes and its Child, but now I want the Root Node Font to be Bold and the Child to be Normal, How can I do this Your Help will be highly appreciated. MisaSimic wrote: Hi Sibusiso, Before you Added Root Node you have to setup the font for it. TreeNode rootNode = new TreeNode(); Font f = new Font("Arial",10,FontStyle.Bold) rootNode.NodeFont = f; TreeView1.Nodes.Add(rootNode); Best Regards, Misa Simic MCSD .NET Cool, thats a very nice way to structure it ...Show All
Windows Forms How Do You Embed A Sound File?
I have a program with in which I wish to have music to play in the background. I want to embed it. SIMPLY. In the form.cs if possible. Try This using System.Media; private void PlaySound() { SoundPlayer myPlayer = new SoundPlayer(@"c:\MySound.wav"); myPlayer.Play(); } ...Show All
Visual Studio Vss Automation vss6.0 and asp.net 2.0
Hi, I am successfully able to add files to VSS from my Web App when i run it locally. I install my web application and VSS on different servers. I get the error " Invalid access code (bad parameter). " when i try to add file from web application after publishing it on windows 2003 server. I am using following code to add the file to VSS. ----------------------------------------------------------------- public bool AddFile( string Folder, string FilePath, string Comment) { bool FileAdded = false ; // Create SourceSafe ActiveX object SourceSafeTypeLib. VSSDatabase sourceSafeObject = null ; IVSSItem vssFolder = null ; IVSSItem vssFile = null ; try { sourceSafeObject = new Sourc ...Show All
SQL Server TopCount and VisualTotals
I'm not sure if this question belongs to this forum or the Reporting services forum. My problem is that I am trying to generate a pie chart in reporting services that shows the top 10 items based on the Quantity measure and sums the other components up and shows them in one slice. The pie should have 11 slices, one for each of the top 10 items and 1 for the other items. Here is the mdx query I'm using with set [TopComponents] as 'Generate( {Topcount([Component].[Name].Members, 10, [Measures].[Quantity]) as TC}, Head(VisualTotals({[Component].[Name].currentMember, [Component].[Name].Children - TC}, "* Others")) )' Select [Measures].[Quantity] on columns, [TopComponents] on rows From [Time Registration] The problem is t ...Show All
.NET Development BackgroundWorker reprot progress
Im trying to get my BgWorker to report his progress.. i do private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e) { progressBar1.Value = e.ProgressPercentage; } and it dont work :s ---- My BgWorker downloads a file with WebClient thx being Callled ... it should happend wen the bgworker progress is changed..and i enabled supportprogress too...still whats wrong ...Show All
Visual FoxPro VFP9 SP1 DLL Error
Hi All Shot in the dark, but just wanted to see if anyone else is getting a similar problem. My VFP9 SP1 application has been working fine but over the last month, one of my forms has been returning an error with vfp9r.dll. It's the standard error with the "send report to Microsoft". The forms in question do not do anything different to any other form and I've cut down the code and tried to isolate the problem. However, the error does not happen all the time and some users experience it more than others. The form has not changed recently either. I've tried reinstalling the VFP runtime, giving users admin privledges, etc. Nothing works. The only thing I've got is an entry in the event viewer: The descriptio ...Show All
Visual Studio 2008 (Pre-release) WCF, netNamedPipeBinding, and Citrix - BUG?
We have an interesting issue on our project. We are hosting several WCF services as netNamedPipe, hosted in the same process as the Windows UI. When run locally (Windows XP or Server 2003) everything is fine. However, when run under Citrix, we have found that the Citrix user must be granted the SeCreateGlobalPrivilege in order for the application to run. I believe this is because the netNamedPipe-bound services are creating a named pipe without the "LOCAL\" prefix in their name, which, by default, creates a global pipe. Has anyone been able to run a client that hosts a netNamedPipe service locally on a Terminal Services or Citrix system without setting the SeCreateGlobalPrivilege privilege It seems like this should not be nec ...Show All
SQL Server [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
trying to install sql server2005 on a windows 2003 server box. getting msg below at the sql server . i looked at other posts on trying to uninstall SQL Native Access Client and norton antivirus. i could never find the snac on the add - remove programs and this server does not have a virus protection program yet. here's the history of the installs on the server: wanted to test a 2005 upgrade so: 1) installed sql server 2000 then sp4 then restored some databases to it - all OK 2) tried to upgrade to sql 2005 but ran into problems and left it at that. had a disk drive crash on the d drive so lost the installs but not the operating system when the drive was replaced, left alone for a while then wanted to test a straig ...Show All
SQL Server Getting Previous Date SQL Script
Hello, I have a table that also has a timestamp field I want to get any data that was inserted into that table on the previous day even if the month changes and i have no clue how to go about that Tdar Waldrop's is the better option here, because it doesn't need to apply a function to yourDateColumn before doing the comparison. This means that it can use indexes effectively. Rob ...Show All
Visual Studio 2008 (Pre-release) The Roadmap
The last LINQ CTP has been issued a long time ago - in May :) Is there some information about the roadmap, next CTP and release dates, etc LINQ is a really intersted feature but developers got a bit tiered from betas (LINQ, Atlas, etc)... ADO.NET vNext CTP is to be expected early next week. Keep an eye on http://msdn.microsoft.com/data/ ...Show All
Visual C++ question about dlls
hey all i am using visual studio express and i was wondering if it was possible to creat dll files. i am putting a hook procedure in it. if it is please tell me thanx. There's no dll express. If you tell me exactly how it is not working, I can maybe help further. (For example, instead of saying "my bike's not working" you can say "my tire's flat"). ...Show All
Windows Live Developer Forums Getting the tic tac toe example
Where do I get the entire Tic Tac Toe example mentioned in the SDK TIA Hi, J-Thread , would you like to send the Activity SDK zip file containing the Tic Tac Toe example to me Please help me! Thanks!! Email to zljtx2008@gmail.com ...Show All
