Mehul Shah's Q&A profile
Windows Forms vb express and sql server express
Hi, I am trying to use the combo "vb express and sql server express" to know in advance what these two products will be like; I haven’t done anything yet because I am unable to create a Data Source. When I open the New Data Source wizard and try to create a Data Source, I always get these error: An error occurred while retrie ...Show All
Visual Basic MySQL and VB2k5
It doesn't seem that vb2k5 have any support for MySQL. So I downloaded .net connector for MySQL, but I don't think I can use the wizards and visual tools that you could for other db's like MSSQL (of course), oracle, etc. Is there a way to use the visual tools for db's with MySQL Dat You are correct, VB Doesnt provide built in support for MySQL. If your using the VB Express version - then the answer on the designer tools is No. The Express versions IDE is limited to support Access and SQL Express only. If your using a pay version of VB such as VB Professional addition - then the IDE does support other database like SQL Server a ...Show All
Visual Basic Converting Julian Time Values
I am a VB6 newbie trying to convert a Julian (1970) value to a standard date and time format. The value I am trying to convert is the number of seconds since Jan 1, 1970. Any help would be greatly appriciated. Sorry, I misunderstood. In VB.Net use the following: The example uses two TextBoxes: tbJulian and tbGregorian and two Buttons: btnConvert and btnExit I've combined the buttons in one click event using the button's tag property to select the proper button when clicked. Public Class frmJulToGreg Inherits System.Windows.Forms.Form Private Sub m ...Show All
SQL Server SQL Server Mobile 's cryptographic algorithm?
Its arguments only describe :the database is encrypted with 128-bit encryption. But which cryptographic algorithm ...Show All
Visual FoxPro foxpro dos program convert to foxpro window (any)
I have a software created in foxpro 2.5 which i want to convert it to any foxpro under windows. there is any command or utility which can hlep me out. Regards, Asad If you have a copy of Visual FoxPro you should be able to open the 2.5 project and recompile it pretty much as is. There are a few gotchas like needing to turn theme support off and such. But, if you aren't looking to rewrite this application and just wish to compile a 32-bit windows executable from it... VFP should get you where you want to go. Visual FoxPro 9 is available for around $550 - $600 depending on the reseller. ...Show All
Visual Basic Can I run another application within a VB Express program?
I'm new to VB, but have experience in other languages that allow a call from within the program to launch another program, even passing parameters. Is this possible in VB Express Sorry to take so long in reply....your link was perfect....all works great....many thnx ...Show All
SQL Server Image in Page Header
I'm running into an problem where I have an image in the page header of my report and I added sorting options to my column headers. When I sort the column when viewing the report, the image in the page header does not appear anymore (the little red box appears instead of the image.) Has anyone run into this same problem and figured out to fix it Thanks! I think you want to post your question to SQL Server Reporting Services ( http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=82&SiteID=1 ) Ovidiu ...Show All
Visual Studio Team System To detect the use of 'return' keyword
Explicitly using return allows the JIT to perform slightly more optimizations. Without a return statement, each function is given several local variables on stack to transparently support returning values without the keyword. How to detect whether a method uses 'return' keyword (of course irrespective of language). Can Fxcop do this Using the visitor pattern to traverse the Method.Body, you would override VisitReturn. Otherwise, you would iterate over the Method.Instructions, looking for OpCode.Ret. ...Show All
Windows Forms Redefining a method within a class
Hi, I would like to override or redefine a method in a class during runtime. Consider the code;class A { public void m() { Console.WriteLine("A"); } } class Exec { public static void Main(string[] args) { A a = new A(); a.m(); // Output ...Show All
SQL Server SSIS Conditional Flow?
Hi, In the new SSIS how can i implement a conditional workflow without having a base task Imagine i have a FOREACH Loop based on a resultset and if a certain column have True i want to execute a certain task inside the loop and if is false i want to execute another one... How can i achieve this Best Regards, Luis Simoes Put an empty sequence container in front of the tassk you want to execute and put an expression on the precedence contraint between them. -Jamie ...Show All
Windows Forms undo/redo
how do i implement undo/redo features in C# Well, there is more than one way to do this. And some actions may be difficult to undo or redo. A considerable amount of time should be spent in your architectural design phase to make sure that you can support this. For example, let's say the user deletes a node in your tree. Wha ...Show All
Visual Basic DirectCast Vs CType
Can anyone explain to me that when can I use DirectCast vs CType I know msdn documentation mention something regarding inheritance that there must a inheritance relationship between objects that are being casted when using DirectCast I use CType when I am converting a variable to another type to be stored in a variable. I use directcast to change a property of variable I need to cast to another type. CType example Dim cm as currencymanger = Ctype(me.bindingcontext(datagrid1.datasource), currencymanager) DirectCast example For each ctrl as control in me.controls if type of ctrl is textbox then dir ...Show All
Visual C# Multiple font styles/color/sizes inside of a rich text box?
I'm looking to create a client/server chat application, and would like to allow the user to change his/her font options (style/color/size). Obviously changing the RTB's font will change every inputed line; what I'm looking for is a different setting for each line. Thanks, cstout In the RichTextBox, you can asign each line with a different font, size, color etc. This is an example of how to format RichTextBox to give each row dif' color: http://www.c-sharpcorner.com/Code/2003/June/ColorSyntaxEditor.asp same goes to fonts. ...Show All
SQL Server Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path
Hi, I spend two days looking for an anwser to this problem but no luck. I have a simple ASP.NET 2.0 application which run correctly on my local machine. But After uploading all files including web.config file on a Windows 2003 Server with SQLEXPRESS installed. I have this error. Please Help!!!!!! Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for m ...Show All
Visual C# How to get the Windows Username/login
Hi all Any Idea how to get the windows login/username property in C#/.NET environment thanks > Try System.Threading.CurrentPrincipal.Identity.Name. By default Thread.CurrentPrincipal.Identity.Name that will just return an empty string, unless you have previously set Thread.CurrentPrincipal to a WindowsPrincipal. The previous response is right: use WindowsIdentity.GetCurrent().Name; ...Show All
