Pavel Brokhman's Q&A profile
Visual Studio Express Editions VB 2005 Express asks always for registration
I am not sure what went wrong but VB 2005 Express Edition does not stop popping up on me via NotifyIcon Balloon Message, telling me that I should click there to register. I repeated this steps already several times and got even the THANK YOU email but when ever I open the program again I get the same ... I have no idea what to do about it! Any suggestions Glenn Wilson wrote: If you installed the package from the cd you do not have to register the product (As per the registration FAQ), but you will be asked. This dialog will continue for the first few times that you run the applications, over time this will stop. ...Show All
SQL Server No ADO type command for Data Flow?
I'm probably not looking in the right place, but all I could find when creating a data flow task was OLE DB Commands. I was trying to utilize a dataaccesslayer piece of code that we use every where in our projects, but because it uses ADO and not OLE DB, it caused an issue between the column data types. Is there an ADO command object available Or are we forced to use the OLE DB command object All I was looking to do was to Execute a SQL command. There's an object on the Control Flow level to do that, but not on the Data Flow level---not sure why that is. Thanks, Jeff Tolman E&M Electric Its because executing a stand-alone SQL statement isn't relevant for a data-flow. ...Show All
Audio and Video Development New visual creating tool...
check: http://www.dvd1one.net/network/content/home/tool.asp Hi Rakesh, DoStudio is a visual tool for creating advanced content for HD-DVD, most of the questions being asked on this forum about techniqies for implementing features such as dynamic text, listening to various events are implemented in DoStudios API as well. If you or anyone else has any any questions please contact me directly and I can answer them. Thanks, -Denny B ...Show All
Visual Studio 2008 (Pre-release) Animate page transition
Hi, I would like to know the best way to animate page transitions. I have to do a "North Face" like app for my company and putting all the content in one page and then animate all the elements seems very heavy to me. So my idea was to use diferent pages for each part of the application, the problem is that I have to give smooth transitions like fade or even 3D rotation. Is this possible Thanks Bruno Silva This is actually quite easy to do. Look at how I do it in AnimationBehaviors on CodePlex http://www.codeplex.com/Wiki/View.aspx ProjectName=AnimationBehaviors The trick is to hook the Navigating event in the NavigationService and cancel it. then run your animations, then do the final Navigation. OR you can u ...Show All
Visual Basic Evaluate a string expression
Say a textbox's text is (3*4) / 2 How could I evaluate that Or evaluate whatever is entered in the box If possible I want the result to be of type Decimal Thank you. http://www.codeproject.com/vb/net/math_expression_evaluator.asp Best regards, Johan Stenberg ...Show All
Windows Forms Eating MouseWheel Events
I have a PixtureBox placed in a panel with AutoScroll enabled. I use the mouse wheel to zoom in and out of the image. I was able to add the mousewheel event code and this is working just fine but the image not only zooms, it scrolls with the mouse wheel as well. I would rather not have the image scoll due to the mouse wheel. I have seen examples for C# to use WndProc() to capture the WM_MOUSEWHEEL msg, but I can't seem to get these to port to C++. I have tried the following (Based on the only C++ example I could find)... void WndProc(Message* m) { const int WM_MOUSEWHEEL = 0x020A; switch (m->Msg) { case WM_MOUSEWHEEL: //TODO: Image Zoom Code Goes here... break ; } Form::WndProc(m); } This giv ...Show All
Internet Explorer Development IE7 activeX Webbrowser control?
How can I use the IE7 webbrowser control in my visual basic (6) applications I have had (in another progamming language) the same problem. In IE6 the Name is “Microsoft WebBroser”. In IE7 the Name is “Microsoft Web Broser”. Only 1 blank more. Perhaps it help you. Greetings. ...Show All
.NET Development problem with invalid character while reading by XmlTextReader
Hi If someone needs a solution for a problem with invalid characters while reading XML file created not by you, here is one of solutions: Usage of the function: takes 1 parameter: file name with full path returns -1, if user doesn't want to replace invalid character returns number of elements in XML in success example int xmlElCount = xmlReadFix(fileListBox1.Path + "\\" + fileListBox1.FileName); if (xmlElCount > 0) { MessageBox .Show(xmlElCount.toString()+"elements in your XML file."); do what you want to do with normal XML file.. } Function body, put it within your class // function checks for invalid charackters and removes them private int xmlReadFix(strin ...Show All
.NET Development C# Lookup Local & Network Servers (Oracle & MySQL)
Hi All! I'm creating a server connection box in C# which can obtain a list of servers on the Local Network (MSSQL, Oracle and MySQL). I've successfully got MSSQL covered, but am still in need of assistance creating lists of the available Oracle/MySQL servers on the network, and have not been able to figure this out thus far. If you're aware of any methods to go about this, I'd sure appreciate your advice! Kind regards Ben Hi Dion / Alazela Thanks veyr much for your replies. I've actually already tried Oracle.DataAccess.Client, and checked the TNSNAMES.ORA file to ensure the parameters are correct, (and used the tnsping command at command prompt to make sure, as well as making sure tha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Loading 3D Landscapes
Hello, I would like to start this thread as hopefully a complete how-to with 3D Landscapes until the documentation is availalble. Here are my initial questions: These would pertain more for those that want a shooter or mmorg, but useful for all! 1.) How would one load a 3d heightmap and view it 2.) How can you apply splatting to the landscape using alpha maps 3.) How can one go about paging the landscape ie: each sector would be (say 512 x 512) - how can you load/unload the maps to save resources. 4.) Performance - why choose .png over .bmp or .jpg for heightmap, alphamp and textures I wouldn't hold my breath for documentation in XNA on how to make 3d landscapes. Their are many opt ...Show All
Visual Basic Using an ActiveX Control in VB.Net
Hi, I am having an ActiveX control(MyControl) developed in VB6 , which implements an Interface(MyInterface) that is also in VB6 . I have created a Windows Forms Appication VB.Net(2005), I have added a reference to the ActiveX control and to the the Interface. I have draged the ActiveX control(say control1) in the Form. On the Form load I am creating a reference to the Interface and tring to assign the control1 to the interface. But it is giving me an error saying unable to type cast. Dim control1 as MyControl ' It is there in Designer.vb Dim intfceRef as MyInterface intfceRef = control1 'It is saying unable to cast But my control1 has implemented the interface, so it should be able to assign to the interface, where is ...Show All
SQL Server Exporting a table to Excel using bcl utility (Newbie)
I am trying to learn SQL 2005 Express and I am having a problem exporting (if that is the correct word) a table to Excel. I have created a view in the Northwind database called MyCustomerView and want to practice working with the table. From the command prompt: bcp Northwind.dbo.MyCustomerView out MCV.xls -S -T I then get the error message: c :\> bcp Northwind.dbo.MyCustomerView out MCV.xls -S -T SQLState = 08001, NativeError = 10061 Error = [Microsoft][SQL Native Client]TCP Provider: No connection could be made because the target machine actively refused it. SQLState = HYT00, NativeError = 0 Error = [Microsoft][SQL Native Client]Login timeout expired SQLState = 08001, NativeError = 10061 E ...Show All
Windows Forms How to get Authenticode to work with ClickOnce???
We are unable to use the clickonce "Run" button unless the "Run components NOT signed with Authenticode" is set to enabled in IE. However, we have a good digital signature on setup.exe. The problem is that the "Run" link in the published html file is actually pointing to the Application Manifest file, not setup.exe. According to the MS SignTool.exe, the Application Manifest file is NOT a file type that can be signed with Authenticode. Only file types like exe, dll, etc... To add to the confusion, in the Click Once settings under Signing, our certificate is selected next to the checkbox that is labled, "Sign the ClickOnce manifests". How do we sign our ClickOnce application so that Internet Exp ...Show All
.NET Development Sending an SMTP email with Ssl Enabled
Hi there, Currently I've got the following code... Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim message As New MailMessage( "DELETED" , "DELETED" , "Test" , "Hi" ) 'Made sure they are correct Dim emailClient As New SmtpClient( "DELETED" , 587) 'Made sure they are correct Dim theCredentials As New System.Net.NetworkCredential theCredentials.UserName = "DELETED" 'Made sure this is correct theCredentials.Password = "DELETED" 'Made sure this is correct emailClient.Timeout = 20000 emailClient.DeliveryMethod = SmtpDeliveryMethod.Network emailClient.EnableSsl = True emailClient.UseDefaultCredentia ...Show All
Visual Studio Team System [FxCop] error on analysis in 1.35
Error on Analysis run of DoNotCallOverridableMethodsInConstructors in 1.35 Index was outside the bounds of the array. at Microsoft.FxCop.Sdk.Introspection.RuleUtilities.GetInstancePointer(Method caller, Int32 offsetToCall) at Microsoft.FxCop.Rules.Usage.DoNotCallOverridableMethodsInConstructors.CheckCallees(Method method, Boolean isCallVirt) at Microsoft.FxCop.Rules.Usage.DoNotCallOverridableMethodsInConstructors.CheckCallees(Method method, Boolean isCallVirt) at Microsoft.FxCop.Rules.Usage.DoNotCallOverridableMethodsInConstructors.Check(Member member) at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.CheckMember(Member member, NodeBase target) example: class one { one(bool init){ if (init) { init (new List<int>())}; p ...Show All
