Mongsreturn's Q&A profile
Windows Forms windows forms
how come when i use this.hide on a certain event then when i load this.Activate() on the form_load event , it will not load back the form that i hide.... what want to do is when user go to the other form hide the current form and when user close the form show back the form that has been hide.. how can i solve this ming1127 wrote: i try the show dialog it seems that it just close it and never show back the previous form below is my code: this.Hide(); Employees emp=new Employees(); emp.ShowDialog(); when it show the emp form and i close it, it wouldn't show back the previous form Add one line: this .Show(); after the emp.showdialog(), and it didn't work ...Show All
Smart Device Development Error calling web service from WinCE 4.20 device
Hello, i wrote an application for smart devices with C#, Net CF 2.0. This app calls web services running in IIS on my server. The app runs without problems on a WinCE5.0 device and on a WinCE4.20 Second edition device. Calling the web service from a Datalogic Jet running WinCE4.2 - not second edition - with .NET CF 2.0 SP1 fails. Because of an other problem ( seen thread "not a valid Windows CE SETUP file") I do net get a error message. From browser on the DataLogic device i can call the site running the web service, so it should not be a connection problem. Where could be the problem Thanks for any help. Jorg .NET CF 2.0 is not supported on Windows CE.NET 4.2 ...Show All
Smart Device Development Emulator For Wince 6.0
Hi... I have to use wince 6.0. where i can get wince 6.0 emulator. Thanks in Advance That's all well documented in MSDN under 'SDK Development' Here is the starting point: http://msdn2.microsoft.com/en-us/library/aa909591.aspx ...Show All
Visual C# Auto launch setup file when CD is inserted?
Hi, I have created a setup installer package with my application using Inno Setup Compiler 5.1.9. Is there a way to automatically lauch my setup when the CD is inserted, possibly using an AUTORUN.INF file I know this is not really C# related, but someone may know. Thanks again, Please see the following article on the MSDN Library: Creating an AutoRun-Enabled Application ...Show All
Software Development for Windows Vista Preventing UI Automation access to an application
Hi Congratulations of the new forum, it should be a great thing to have. I just wanted to know - is there a way of preventing or limitting UI Automation access to an application Hi. There is no technical reason that I know of preventing someone from completely hiding their software from UI Automation, but I don't think this is a situation that will be encountered that often. There's a few factors that have led to this opinion. Firstly, if software uses standard controls, which most do, most of these standard controls will be made available to UI Automation through things like proxies. So, it's very likely that applications will have at least partial visibility to UI Automation through their u ...Show All
Visual C# Filestream problems
Hi, I have a filestream which reads in and write out to a file perfectly: FileStream strm = new FileStream("Success.qsf", FileMode.OpenOrCreate, FileAccess.ReadWrite); StreamReader SR = new StreamReader(strm); success.Text = SR.ReadToEnd(); success.Text = success.Text.Replace("<br/>", "\r\n"); SR.Close(); strm.Close(); FileStream strm2 = new FileStream("Reject.qsf", FileMode.OpenOrCreate, FileAccess.ReadWrite); StreamReader SR2 = new StreamReader(strm2); reject.Text = SR2.ReadToEnd(); reject.Text = reject.Text.Replace("<br/>", "\r\n"); SR2.Close(); strm.Close(); However when I try and call this fil ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing Sprites With Alpha Trans. (Extremely Basic Question...)
Hey all, I'm a complete newbie to XNA, and a pretty new to C# as well. (I did the 16 beginner's videos available at the start window, but that's about it.) Anyway, I know some basic C#, and now I'm trying to follow the "My first game" tutorial in XNA. (It basically has you draw a sprite, and then make it bounce around the screen. An epic game, I can't wait to finish it, haha!) Anyway, I'm having trouble drawing a sprite using alpha transparencies. The tutorial/help file tells me to use the Direct X Texture tool, make a mask thing, open up my png on the surface, etc. Anyway, after I did that, it saved itself as a .dds file (A texture or something Could someone explain what a .dds is exactly ) So now I have the .dds saved into my project. I ...Show All
Visual Studio BindingSource Filter and Reports
Hi all, anyone has ideas how to display on ReportViewer items filtered through BindingSource.Filter Adding a BindingSource through ReportDataSource to LocalReport.DataSources doesn't seem to work - all items are shown Other idead would be to get ID from BindingSource or DataGridView and pass them to ID parameter .. but how Any smart suggestions Unfortunately I mainly code in C# but I believe this should work as VB implicitly casts on the variable's data type. Dim _filteredTable As DataTable Dim currDataRowView As DataRowView currDataRowView = _yourBindingSource.Current _filteredTable = currDataRowView.DataView.ToTable() ...Show All
Software Development for Windows Vista Application fails to read INI-file when run with option 'Run as administrator'
My old native C++ app fails to read INI-file using ::GetPrivateProfileString(...)function. It happens only when 'Run as administrator'. UAC is on, and user is in Administration group. Any ideas > It happens only when 'Run as administrator'. My testing shows when "Run as administrator" GetPrivateProfileString reads the file in the real c:\windows directory When not admin it get redirected to the Virtual Store Windows C:\Users\myusername\AppData\Local\VirtualStore\Windows\filename.ini It also works the smae way for Writes. Not sure what to do to fix this. It will cause problems with installers that need to read/write INI files that are stored in c:\Windows. The installer runs a ...Show All
Visual Studio 2008 (Pre-release) Encrypting PeerChannel Messages
Hi, I'm in the process of attempting to setup a system which detects existing peer applications on the network and broadcasts node information to all registered peers. This is working just fine, and I'm able to generate broadcast messages and query the network to broadcast information for all connected peers. However, I would like to take this to the next step and enforce encryption of all messages travelling over the network. Basically, I would like the peer channel messages to function just like the other standard WCF bindings in regards to message security. Now, I understand that this is a rather strange request, and seems to run counter to the purpose of PeerChannel in general, but I'd just like to know if it is possible, and if ...Show All
Visual C# Tooltip delay in code editor
Hi, Does anyone know how i can adjust the delay before displaying one of the many 'helpful' tooltips whilst editing code in VS 2005 SP0 Currently the delay for showing tooltips seems to be at about 500 ms or less and it is driving me crazy. I'm constantly moving the mouse out of the way. I have worn my elbow off. I found a CodeSenseDelay in hours of Googling but could not get it to make any difference in the delay of displaying tooltips (e.g. like class information). I also tried putting a CodeSenseDelay property in the vssettingsfile, to no avail. Any help would be very appreciated. (xposted in usenet: microsoft.public.vsnet.ide ) tnx, pp Could anyone please point me to a forum or ...Show All
Gadgets ActiveX help
I originally posted this on MicrosoftGadgets.com but I don't think I can reply there anymore. Basically, I want to create a gadget that uses my online web service, but I don't want the location (or password) visible in the source code for my Gadget. What I really want to do is create an ActiveX component that will make the call and return the XML (or even better, parse the XML to HTML) to the gadget. Problem is, I have no idea where to start when it comes to ActiveX programming, can anyone help Andy Tom, I'm not really great with any 'hardcore' programming languages like C++ or VB. I did a lot of VB when I was younger, but I'll be damned if I can remember any of it. I'm more of a web coder than anything ...Show All
.NET Development SMTP Mail without SMTP Service
I have a requirement for an email program to send SMTP mail without having IIS (and therefore no SMTP service) installed on work stations. I found a nice solution to this at http://www.eggheadcafe.com/articles/20030316.asp . I modified the code to fit my needs and it works. However I have a couple of issues. One: How do I cause the SMTP server to send out delivery notifications on failure and success This is pretty easy using the DeliveryNotificationOptions of the System.Net.Mail.MailMessage class. But of course I am not using this. Two: How do I send authentication or system credentials to the SMTP server Again, this is pretty simple using the System.Net.Mail.Message class. Example code: IPHostEntry IPhst = Dns .GetHost ...Show All
SQL Server Multi Select type-in Parameter
Hi All Can anyone tell me whether or not it is possible to multi select when you have a parameter that is set as non-querried in order for it to be typed instead of selected. My users prefer typing the values and selecting more than one. But at the moment I cant give them both.. I'm using SSRS with SSAS cube all in BI all 2005 Please help. I suspect that if it's possible it may just be a syntax thing but I am yet to find it. Thanks in advance Gerhard Davids Hey Roy No solution yet :S But I have been thinking of one and the following is what i've come up with: Create a Parameter that is non-queried so that it is type-able. then create some form of custom code to split user input by 'comma' or some form of seper ...Show All
Visual C# How do I create and use C# DLLs?
Hello all, I am trying to create my first C# DLL and I am having some difficulty. This DLL will house some common authentication functions. I will need to use the DLL functions on the front of many different C#.NET web applications. I do understand the basic concept of DLLs and thought I could just jump in and create one. So I created my DLL, added my functions, and referenced the DLL in a test web page. But when I tried to access the functions in the test app there were no functions available in the namespace. So I clearly did not create the DLL correctly. I am looking for a tutorial or a step-by-step example that I can follow. Thank you in advance for any help/references you can supply, Chris ...Show All
