Alex Farber's Q&A profile
Visual C# Call ActiveX control from other classes?
How can I call an activeX control in the main form from other classes From other classes, they should point to the same activeX control. Thanks in advance, Tammy ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Strange DX9 vertex glitch
As seen in these two screenshots, Glitch 1 Glitch 2 In reality, I don't know what's even happening to my vertices. This doesn't happen from the beginning of the program execution, it happens randomly during the execution about a few minutes into running it. Once it happens, it will happen more frequently and sooner during the program execution when I re-compile and run.I just don't have a name for this. It happens to a handful of random vertices. I would like to think my vertex buffer is being corrupted, but when I use the D3D Debug tools, the problem doesn't happen at all.For more information, the first picture contains geometry that is rendered directly to the screen. In the second, I'm rendering geometry first to a render target, and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How has a Physics GameComponent?
I'm looking for a simple .NET physics plugin for doing 2D physics while I'm using XNA; any suggestions Rigid Body Dynamics would be more an adequate, gravity would be nice but is not required. Truth be told I'm making an arkanoid example (and I want to do other simple games) and I need some collision detection and response. ...Show All
Visual Studio Express Editions Deserialization
This is very aggrevating!!! I have serialized three simple questions (textboxes) that is entered by the user. I cannot figure out how deserialize and have the three textboxes show what I have serialized My code (Visual Basic Express) on my main form is as follows: Imports System.Xml Imports System.Xml.Serialization Imports System.IO Public Class Form1 Private theCollectionOfPatients As New ArrayList() Private Sub DoSerializePatient( ByVal patientcollection As ArrayList) Dim theTypes(1) As Type theTypes(0) = GetType (ArrayList) theTypes(1) = GetType (Patient) Dim theSerializer As New XmlSerializer( GetType (ArrayList), theTypes) Dim theWriter As New FileStream ...Show All
.NET Development About SmtpMail.Send() Method
Hi all, This is Hari, In my application I need to generate a report for different people and send it through mail as attachment, and my approach to this task is I will generate a report for single person ,And send it to his Mail ID and then I will delete the report and generates next person’s report and send it. To send the report I am using SMTP server. I am able to send the mails if all the mail ids are correct, if the mail id of a person is incorrect in between I am able to handle the exception but I am not able to delete the report of that person the error I am getting is "Internal system error. Access to the path.... "Even I am not able to delete the file manually .How can I come out of this plea ...Show All
SQL Server Error executing Parse in SSMS
Executing Parse in Sql Server 2005 Management Studio I get the following error: .Net SqlClient Data Provider: Msg 0, Level 11, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded. Reading SP1 fixes, I found a similar problem but despite I installed latest hotfix (sql version is now 9.0.2153) I can't able to execute Parse to check T-SQL statements... Thanks, Giulio Sorry, it doesn't fail for me. Will the statement execute Is is just the parse that fails What version of SQL Server ar you using Do an @@version: select @@version If no one replies I will ask around and see what I can find out. ...Show All
Visual Studio Express Editions ALT+F4
Is there a way to stop ALT+F4 working on a form If possible I would also like to stop CTRL+ALT+DEL working as well. Thankyou Jeremy6996, not the solution i was hoping for but it works fine. Thankyou to everyone for their input on this topic. I relalise that it may have seemed a bit odd to want to disable alt+f4, but if i were making some kind of application to prevent people using their computer as it should for malicious purposes i would not post in a public forum and besides i would have no idea how to execute such a task and i would not want to do it in the first place. I also realise that nobody knows the context in which the program will be used or how good my knowledge of vb is, so i see the cause for suspiscion. Howe ...Show All
Visual C# for loop that works with seconds
hi how can i make a for loop that increments by 2 seconds i have two for loop nested one inside another and each one will increments by 2 seconds for( start and iincrements by 2 seconds) { if(..){} else { for(start and increment by 2 seconds) {....} } } for (initialization; logical expression ; System.Threading.Thread.Sleep(2000)) { ................ ................ for (initialization; logical expression ; System.Threading.Thread.Sleep(2000)) { ................ ................ } } Example Code for Testing: this.label1.Text = string.Empty; this.label1.Text = System.DateTime.Now.Second.ToString( ...Show All
.NET Development insert rollback
I am looping through a directory to retrieve the xml files. For each xml file, I loop inside it to retrieve the values of the elements... For each record that I am retrieving inside the xml file, an insert query is called to populate a sql server table. For example; lets say there are 30 records inside an xml file. Each record gets retrieved and inserted into the sql server table until the last record is done. What if as you are inserting into a table, then suddenly say record number 6 fails to insert. How and when do you cater for the rollback I ask because I am not sure when to rollback becuase in the mentioned example the first 5 records have been commited anyway. Any thoughts please Thanks you can use ...Show All
Visual Studio Express Editions Wizard visual 2005 express edition?
Can you create a wizard in vb express edition are there any examples that work http://www.codeproject.com/vb/net/oobestylewizard.asp http://www.codeproject.com/vb/net/GNWizard.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/vxconcreatingwizard.asp http://www.divil.co.uk/net/controls/wizardframework/downloads.aspx ...Show All
SQL Server Reporting Service subscription error - i can run the report but i don't sent out email
<Header> <Product>Microsoft SQL Server Reporting Services Version 8.00.878.00</Product> <Locale>en-US</Locale> <TimeZone>Pacific Daylight Time</TimeZone> <Path>C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\LogFiles\ReportServer__08_24_2006_16_41_29.log</Path> <SystemName>REIDIALV</SystemName> <OSName>Microsoft Windows NT 5.2.3790.0</OSName> <OSVersion>5.2.3790.0</OSVersion> </Header> w3wp!webserver!1350!8/24/2006-16:41:29:: i INFO: Reporting Web Server started w3wp!library!1350!8/24/2006-16:41:29:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file. w3wp!library!1350!8/24/2006-16:41:29:: i INFO ...Show All
Visual Studio Tools for Office Disappearing Document ActionTask Panes with Word
I've been working on a fairly complex Word VSTO application which is about complete, except for some intermitent strange behavior which happens after a document has been saved. When reopening the document ( either the saved one or starting the new one via the application word template) one of two things may happen. 1) the document action pane begins to display and then closes , leaving only the getting started task pane. it is not listed as a disabled application, logging off and back on will fix the problem as if it had been black listed 2) The Document Actions pane stays open, but the two actions pane controls which should be there are not visible, despite code (msgbox(me.ActionsPane.Controls(1).Visible) claiming the control IS ...Show All
Smart Device Development Connect Pocket PC to Oracle database without using web service
Is it possible to connect a docked Pocket PC to an Oracle database without using a web service If so, how Examples would be greatly appreciated. We have a Pocket PC 2003 application (Visual Studio 2005 C#) that currently uses a web service. New PKI security certificates have been added to our web server and we are unable to connect anymore. We thought we could put the certificates on the Pocket PC and connect as we did before but our security people have nixed that idea. We need a way to connect to our Oracle database where all the security is on the desktop. Hence, our desire to connect without going thru a web service. Any ideas It is possible, please search the web for "Compact Framework Ora ...Show All
Visual C# Raising events from one thread to other
Hello, I am new in C# and would appreciate any information on standard ways to raise events from worker thread (System.Threading.Thread) to the main UI thread, where the main form is created and lives. Here I interested in the events only (as they usually used within the thread scope), not Control.Invoke()/BeginInvoke(), not BackgroundWorker class, as they are more or less learnt and OK. By default, raised events go to the same thread, is it the only behavior If not, how I should redirect them into UI thread's message loop Thank you in advance. Dear Khalid and other collegues, thank you very much for your helpful answers. They've just convinced me in the most conventional way of using Invoke( ...Show All
Software Development for Windows Vista Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. The same code works for us on Vista as on XP, etc. The service is running as the Local System. 1. use WTSGetActiveConsoleSessionId to get the ID of the current active Windows session at the console (i.e. the machine keyboard and display, as opposed to WTS sessions). 2. use WTSQu ...Show All
