Learning VB's Q&A profile
Windows Forms Building the application package.
If I'm using SQL Server Express in my application (MDF) file. I then build the application package to install the application on another PC. Will the installation package install all the required files for SQL Server Express or does SQL Server Express need to be installed as well Cheers!!! Gary Sql Express must be installed on that machine prevously. You can set a prerequisity for SQL Express as a property in Setup project, you can check many prerequisities like .NET 2.0 and also this one. This will help user to download and istall them directly from microsoft all required components. When he start setup.exe it will show the messages for all missing components and a link from where to dow ...Show All
Visual J# Help me in Java!
Hi all. I am new in java and I interest in programing with J# for Mobile. Can it done with J#. please help me. Thanks. I am not sure I 100% understand what you are writing, but you cannot write J2ME MIDlets or MIDlets Suites in J#. What is your definition of an Applet J# is not Sun Java and cannot run on a Java Virtual Machine. You can develop Java Applets using J#, but they will not run on a mobile device running J2ME. Here is an article on how to get started with "Java applets" in J# for Internet Explorer. But this cannot run on any mobile devices. http://www.codeproject.com/dotnet/JBrowserControl.asp ...Show All
Visual Basic Need advice on database
The way im doing untill now my databases, if we can call them that way, in my visual .net applications is by plain text files separated by characters, separating the fields by $ or ; for example. Now i see i am too limited because i need to execute some sql sentences to sort by some field or to delete, edit or whatever but i dont have any idea on how to do such kind of things,. My apps are small ones that usually are compound by the exe and a database file, if needed, so that they can be ported to anywhere i need. I would be really happy if anyone can feed me some resources on how to solve this problem i have now. Thanks Hi, Watch or / and download some of these tutorial videos.>> http://msdn. ...Show All
Visual Basic Sigh - I remember one-based.
Well, I know this is nothing new, but: What's with this zero-based (nearly) everything For i = 1 to Thingy.Count or For i = 0 to Thingy.Count -1 It is simply not true that the first element of anything in the universe is ZERO. It is not common-sense thinking. "How many items do you have in your hand " "One" "Show me the first item" "Error, you should have asked for the zero-th item" ha ha ha I would like to request that two versions of the .Net Framework be made available. One for those who love zero, and another one for those who love one. 0 Based arrays is a hold over from the days of C (more appropriately B but it was made pop ...Show All
Visual Studio Express Editions UGH....Save Function
I am not getting why this is not working. I have tried to get this to work, TallDude has done a great deal to help me better understand this all. But I am still having trouble to get this to work. I want to understand how the NotePad FIle>Save works. I am thinking, as TallDude as suggested, that they use StreamReader/Writer. So in that thinking I am strying to get the File>Save Function to work. Here is the entire code: Imports System.IO Public Class Form1 Public FilePath As String = "" 'Open Option Private Sub mnuOpen_Click( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles mnuOpen.Click Dim open1 As New OpenFileDialog 'display only text files ...Show All
Visual Studio Express Editions Forms in Visual Express
I have start creating a form even when I am begineer. I was watching a person @ Microsoft. When I try to right a script there is no scroll bar that makes it easier for user to scroll and pick the task of the this rather then writing the whole code but when I type Me. no scroll bar comes. Why and How can I fix it. I was watching this video here http://channel9.msdn.com/Showpost.aspx postid=138769 ...Show All
SQL Server My Data-Driven Subscriptions(DDS) Don't want to work although i can view my reports
Hi I have been asked to move our entire system over from SQL2000 to SQL2005, i eventually got our database and Cubes over to 2005 and converted all my reports to 2005 and deployed them successfully on RS2005 All the subscriptions have been made and they seem to work when i click to view them. Although when i create a DDS for all my reports to run then they fail. Now i've got over 5000 reports to build and i'm definately not going to create each report manually. My SQL Reports huild successfully, it just seems to be the MDX Reports with a problem, i;ve checked my stored procs and they seem fine, i've even seen the [Clients].&[All.Clients] difference from SQL2005 ----> ...Show All
Visual Basic Process.GetCurrentProcess.Threads(0).UserProcessorTime Doesn't Work?
Hi there, I am using laptop with PM1.7CPU + 1G memory with XP pro.Please consider below code in VB2005 EXPRESS.I am expecting a duration when the app printing the array,but the second last line of the code result in just 0 when running. Should there be anybody would like to lend me a hand on what's going on here Sam Module Test Sub Main() Dim myArray(99999) As Integer InitArray(myArray) Dim timeStart As TimeSpan Dim duration As TimeSpan timeStart = Process.GetCurrentProcess.Threads(0).UserProcessorTime printArray(myArray) duration = Process.GetCurrentProcess.Threads(0).UserProcessorTime.Subtract(timeStart) Console.WriteLine("Time Duration:" & duration.To ...Show All
Visual Studio Express Editions Installed Microsoft Windows SDK & now cannot build a thing! What's going on?
One time trying to build a Forms project I got this error message amongst others: error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup Debug\Rtry070118.exe : fatal error LNK1120 Then New CLR project and many other variations The ONLY source file in the project was this .cpp file! /* memset example */ #include <stdio.h> #include <string.h> int main () { char str[] = "almost every programmer should know memset!"; printf(str); getchar(); memset (str,'-',6); puts (str); printf(str); getchar(); return 0; } Build a CLR emty project with the above code and I get "Unable to start program 'c\documents and settings\dosrelic\my documents\visual studio 2005 ...Show All
Visual Basic Run My Computer
Hi there again, I was wondering how i could run "My Computer" on Win XP... Can anyone give me a solution If i'm not clear, what i want is to run Explorer and open it up in the My Computer folder. With Process.Start(Environment.GetfolderPath( Environment.SpecialFolder.MyComputer)) I cannot do it. Thnx a lot; Yeah, and I had a few more with that code: Private Const MyComputer = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" Private Const RecycleBin = "::{645FF040-5081-101B-9F08-00AA002F954E}" Private Const NetworkNeighborhood = "::{208D2C60-3AEA-1069-A2D7-08002B30309D}" Private Const ControlPanel = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B3 ...Show All
.NET Development Delegate Keep alive
Hi, I have a problem with using delegates with pinvoke. I have a delegate for a reporting function that is required for the lifetime of the application. The callback works for the first time and after that if the dll reports any error I get an access violation exception. This is because the delegates gets collected. Any suggestions on how to avoid this error Thanks! Let me outline this to make sure I have the scenario correct: You make a call into your native DLL with a function pointer (wrapping in the delegate since you're originating in managed--C#--code). The function pointer isn't used immediately, it's stored and called periodically, I assume by a background thread created by the native fun ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D Playing Cards ?
How would I approach a 3D representation of a playing card(s) If using a model, would 52 different models be required so that each card has it's own texture Can user primitives (i.e. 2 triangles to make a card shape) have different textures on each side What would be the best method for this I don't think this answered the question asked. The question is would you have 52 models that include texture definitions, or would you "skin" the model with a different face texture based on its value and store the textures separately associating them programmatically with the card at run time I'm interested in opinions on this as well, it may be easier programmatically to create 52 separate models i ...Show All
SQL Server import tables
Hi all, I've just installed the Sql Server 2005 Express Ed + Management Studio Express and I can't get how to import data from a MS Access file. From what I've read is not possible to do through the Management Studio Express so is there any other tool to do that Thanks in advance, Marc Soleda All, Repeat thred; http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1027856&SiteID=1 ...Show All
SQL Server How to locate the database folder in sql 2005
We want to locate the database folder/files (where the databases are stored) like SQL Server Management Studio UI does, when you click on attach database / Add. The question is how to retrieve this folder/files programmatically (C# or VB, SMO ). For example we want our application client to connect remotely to an SQL Server and attach a new database, using the folder/files obtained from the retrieved method. If you run Profiler while you use SSMS you will see the code that it runs to populate the dialogs you open. The code is t-sql so you will have to write your own C to do the same thing ...Show All
Visual Studio Visual Studio Add-in Interaction
Hi, i am a Visual Studio (2005) newbie. I have a question regarding to the add-in interaction: I developed two Addins (Addin A & Addin B) which are added to the tools menu of Visual Studio with the standard smiley. If i start Addin A it appears a message box with 'I am Addin A!". If i start Addin B it appears a new message box with 'And i am Addin B'. Now Addin A shall invoke Addin B so that the message box of B is shown with out clicking of the appropriate icon. How can i realise that scenario Which mechanisms are provided by Visual Studio therefore Thanks a lot Thomas Hi Thomas - The DTE class provides the DTE.AddIns collection - The AddIn class has the properties to identify a given add- ...Show All
