siulm's Q&A profile
Windows Forms Form opacity and custom panel paint problem
Hi everyone I have a form with a few custom made panels that paint themselves, drawing a bunch of lines. Every second I call the Invalidate() method on each panel, which overrides the OnPaint() method. I have enabled doublebuffering and everything works flawless when running, except one quite annoying thing... When the form is running with its opacity less than 1 and I start a 3D software in fullscreen I can see my forms paint events from within the 3D software. This means that I can see my forms drawing areas every second as flickering black boxes. This is very annoying and it only happens when the opacity is less than 1. The 3D software I'm running is nVIDIAs GeoForms I have tried to paint the panels without using the Invalidate() and pa ...Show All
.NET Development Very strange .NET 2 behaviour (compilation result)
Hello all, I'm using: Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 But have confirmed the problem with the 1.0 framework too. I've been trying to find out why some doubles operations weren't going so fast and i ended up with the following test case: using System; namespace Benchmark_CSharp { class BenchmarkCSharp { static DateTime startTime; static DateTime stopTime; static TimeSpan elapsedTime; static void Main() { long elapsedMilliseconds; startTime = DateTime.Now; double doubleResult = 10000000000.0D; double i = 10000000000.0D; while (i < 11000000000.0D) { doubleResult -= i++; doubleResu ...Show All
Windows Live Developer Forums Pushpin Layer not updated
i'm trying to implement geotagging on my website that allow my blog reader to add themself to the map using pushpin. under my map i've several field for the users to key in their details then upon clicking the "add" button... their details will be appended to a georss xml file... and this step works fine as the details can be appended without problem... but when the page refreshes after my user hav clicked the "add" button... the details added are not shown... and even click "refresh" on IE wont help... all i got to do to get the newly added details shown is to close the current IE and re-request the page in a new IE... then all the pushpins(including the last pushpin added) can be shown... y is this problem occuring am i doing a ...Show All
SharePoint Products and Technologies User Rights
Hi, Can I create a user who can add new users to sharepoint site but can not edit the web parts... I'm very new to sharepoint - I tried this by user to Full control but this allowed user to edit the web part.....I'm using the List View WebPart. Thanks Manu Hai What type of mode u u sed ( domin a/c mode or AD account creation mode)......also whats the method for creating users Formbased authentication or SQl based or Basic authentication..... Explain what u did in detail ...Show All
Windows Forms Draw a "HalfCut" color style in a Rectangle - GRAPHICS
In the Krypton ToolKit from Component Factory Ltd has a ColorStyle named HalfCut. How can I draw this in a rectangle cant see picture It is in the middle of the page. It's exactly like the Vista ProgressBar control. Thanks in advance... ...Show All
Visual Basic Primary Interoperability
I'm am trying to download PIA for Office 2003 distributable, but I can't download it. The message I get is connection timed out. I have tried for three days now. Is there anyone out there who where I can download O2003PIA.exe. Thanks in advance Hi, Thanks for replying. I am currently here in Japan for a one year training. You can send the file to my yahoo account mpmarquez1870@yahoo.com . Thanks again. ...Show All
.NET Development xmlbulkload and namespace problem
I'm an xml thickie and after searching for hours I can't find the answer to a problem. I have a XML filefragment to load that (simplified) looks like :- <L:Record> <L:Field>fdgdfgfg</L:Field> </L:Record> I cannot get it to load thru xmlbulk load. If I modify it to use the default namespace <RECORD> <Field>fdgdfgfg<Field> <RECORD> then it loads with this schema <xsd:schema xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:sql="urn:schemas-microsoft-com:mapping-schema"> <xsd:element name="RECORD" sql:relation="RECORD" > <xsd:complexType> <xsd:sequence> <xsd:element name="Field" ...Show All
Visual Studio Express Editions Webbrowser icon problems
how can i make the icon of my form turn into the favicon from a site that gets navigated to That's what a web browser does: each time you access the page, it reads the information in the header and downloads the file, if necessary. Some web browsers are better at it than others. ...Show All
Visual C++ LoadLibrary Problem
Can someone please tell me why this program generates the following error. User Name:Administrator Pid=764 UserName:steve Unable to load the Java virtual machine: A dynamic link library (DLL) initialization routine failed. This happens on Win2K and XP, VC++ 6.0 w/ Windows SDK. And how I might be able to fix or work around this problem. BTW the DLL is just a random library used to duplicate the problem. This happens with any hand loaded DLL. Thanks Steve Here is the source. #include <windows.h> int main(int argc, char** argv) { HANDLE htoken = NULL; char *cmd=NULL; PROCESS_INFORMATION pi; STARTUPINFO si = {0}; HANDLE hWritePipe; SECURITY_ATTRIBUTES sattr; char buffer[2048]; int s= ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help Needed Collision Detection
Hi, Everyone, Any help would be great, I am trying to replicate master of defense as a learning curve and i cannot figure out the collision detection. It needs to be able to fire continuisly and it will always hit if the army man if it is in a 250 radious area. I have a static tower firing at co-ordinates x = 250, y=0. I also have an army man running down from co-ordinate y 0 to 250. x= 0 I just cant figure how to make the bullet fire properly to kill the army man if he is in the 250 box area. example : if tower x= 0 and y = 0,, army man x = 0 and y = 250 he can be hit, if he is the other side army man is at x=500 and y = 250 he can be hit. I am trying to make a 250 pixel circle around the tower. Any ideas Thanks ...Show All
Visual C++ Unmanaged C++ and VS2005: Hidden .NET Requirements?
Hi everyone. While developing some unmanaged C++ DLL that uses COM and ATL, I've been having issues with deploying the DLL to other machines - those without .NET Framework v2. I've found out after some digging that changing the runtime library from its default to one of the debug libraries (and none of the DLL ones) removed this dependency, but introduced some crashes that im not entirely sure are related to my own application's logic. What is the proper way of creating unmanaged c++ DLLs in VC++2005, Who use ATL and COM Thanks in advance. You make many valid points. I tend to agree, however, I'm trying to live by the other approach (dynamic) for a while to see how it works out. Who knows, I may switch ...Show All
Visual Studio 2008 (Pre-release) ListBox not Displaying Feeds problems Help Please
I'v been trying to get the Listbox to Read the Feeds Listed In the ComboBox from IE 7 that lee d helped me with...this is what i have but it locks up and isnt doing what i want it to do.. Can someone help me with this...Thxs private void IE7ButtonClick( object sender, RoutedEventArgs e) { IFeedsManager manager = new FeedsManagerClass (); IFeedFolder rootFolder = ( IFeedFolder )manager.RootFolder; RssComboBox.ItemsSource = rootFolder.Feeds as IEnumerable ; RssComboBox.DisplayMemberPath = "Name" ; //Below here locks up the program string pathToExport = RssComboBox.SelectedIndex.ToString(); pathToExport = ListBox.ItemsSource.ToString(); Queue< IFeedFolder > queue = new ...Show All
Visual Studio Express Editions Screenshots
hi everybody i have just 2 Quick questions to ask. 1) I'm able to take screenshots of my form but not outside it, how can I. 2)When I take screenshots the image is a little bit off target in the picture box, how do i center it My Code: Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim bm As New Bitmap( Me .ClientRectangle.Width, Me .ClientRectangle.Height) Me .DrawToBitmap(bm, Me .ClientRectangle) PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage PictureBox1.Image = bm End Sub End Class THX IN ADVANCE Part of your question can maybe be answered by ...Show All
Smart Device Development Smartphone Emulator Problem
Hi, When i run my smartphone application on emulator,it installed the cab file,but don't run the application. Plz help. Not " netCF cab file", it installed project cab file. No,i can't see the project deployed in the emulator and also i can't able to run the exe, because it does'nt have a build in explorer. ...Show All
Smart Device Development code signing questionS!!!
I'm developing applications for pocket pc running windows mobile 5 for employees in the company. The ultimate goal is to prevent the employees from installing other software on the machine other than ours. So we heard that code signing an application force the environment to look for the matching certificate on the machine. The app will not run if it doesn't have the right key signed to it. Since it's for our own company, M2M certificates is not ideal because of cost and deployment. So we decide to create our own certificate. So on my application I created a .pfx file in VS2005. I signed my app and installed it on my 1-Tiers PocketPC. it works. So next i try to create a certificate from my .pfx. I export/generate a .cer file with microsoft ...Show All
