shayc's Q&A profile
Visual Studio Express Editions Random text generator
Hi, I'm very new to VB Express, I'm taking a college class about it. For a project, I would like to display a set of random statements when the user clicks a button, like a fortune cookie program. So when the user clicks btnSaying, I want one of eight statements to display. It is probably far more simple than I think, but for some reason I can't figure out how to set this up. I've read all kinds of different posts about random numbers and letters and arrays and things like that. I think I might just be lost. Please help me. sure. Basically you need a way to store your "statements", for simple reasons lets stick with an ArrayList. Dim theStatements as new ArrayList() declare that ...Show All
.NET Development How to detect the local network connection of a system in .Net
Hi all, I want to check whether a system is connected with a LAN or not How can i do it using .Net either VB or C#. Second thing is after detecting the network connection i want to find the IP address OR Machine name of the Local Area Network Server. And using that LAN server IP/Name i want to listout all the machines that are connected at this moment. How can i do this What way i can achieve the above needs What are the namespaces should i require to achieve these things done Expecting ur reply. Please anyone help me Thankfully, cssjm Hi Rizwan, Thanks for ur reply... But i am using .Net 2003 .Net framework 1.1. But the System.Net.NetWorkInformation is available in .Net 2.0. So how can i ge the result usi ...Show All
Office Live Development Office Client app (ex. SharePoint Designer) can't connect to Office Live site
If SharePoint Designer or other Office Client app can’t connect to your Office Live site, then it could be because of how Windows manages multiple Passports (Windows Live IDs). If you have multiple Office Live sites, and use multiple sets of Live ID credentials to log in to these different sites, your credentials from one site may be cached by Windows. When you try to open a document, spreadsheet or the site itself using SPD, the first thing you should see is a prompt to input your credentials. If you do not see this, it probably means you are using cached credentials. You may see an error message saying that it can't open or connect. It may not explain that you are logged in as the wrong ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Grouping units like in a RTS game
hello all.. is it possible to group units (drawing a rectancle) while holding down the mouse button with XNA i am planning to do a 2D game where i would need this.. if yes, please give me a hint how to do it... thanks in advance greg GMS0012 wrote: yes it is.. as said in the topic :) oops, sorry. missed that. ...Show All
Visual C++ Virtua; class compile problem
Hi, I have a compile problem with a virtual class. The base class is a dll. Interface is, public interface class BuildModule { virtual void saveModuleDataTiny(TiXmlElement *startElement); } There are a few other virtuals in the above class that work fine, syntax is the same. The above class is then inherited in the class below, which is also a dll. public ref class BuildInputModule : public BuildModule { virtual void saveModuleDataTiny( TiElement * startElement) { //some xml code in here that compiles fine } } Both the above classes compile fine. Problem is in my application that uses the BuildModule. When creating the code in the app intellisense sees the method but when I create an insta ...Show All
SQL Server How can you programatically export from Reporting Services via C# using VS.NET 2003 + SQL Server 2000?
Hi, I'm not sure if this is possible, i've been looking round various sites for the past couple of days and have only found information on how to export reports in Reporting Services 2005. What i am wanting to do is create a front end in which the user can specify where the report is to be exported to and the click a button which will export the report to that location into a pdf format. Thanks A simple one can be found here: http://support.microsoft.com/ kbid=875447 HTH, Jens SUessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unified Input
It's my biggest gripe about XNA and directx, there's no unified input... I don't have a 360 controller hooked to my pc, not even sure if that is possible... is it Anyhow, since i took the whole unified input idea from Lynn T Harrison's book, i'll share it here in hopes that people can email me suggestions and feedback. The enum translations aren't finished yet and the InputManager is a singleton (i'm on a singleton kick lately don't know why), and obviously the gamepad implementation isn't finished. Hopefully you can sortof see where i was headed with the 360 implementation... wel here it is, i guess email me at jhered at yahoo com if you have suggestions. More elaborate code in ...Show All
.NET Development Detecting remove lock event on file
I have the following problem: We have to write an application that acts on changes on files. For example editing a word - file. We achieve this using the FileSystemWatcher from .NET 2.0. When the word-file is saved the events correctly trigger, but the files are locked, which causes our action to fail, but this is not the problem. But when the user closes the word-application. The application release the lock,but we can't seem to catch this event so we could run our actions then. Does anybody has as solution Thx, gert You're probably looking for something like this: if (!IsFileLocked(path)) OpenFile(path, lockit); There's an implicit and unavoidable race conditio ...Show All
Windows Forms datagrid troubles with stored procedure (vs 2003)
I have the following code: Dim daGrid1 As New SqlDataAdapter(Me.SqlCommand1) (a stored proc) Dim dsGrid1 As New DataSet dsGrid1.Clear() daGrid1.Fill(dsGrid1, "top") DataGrid1.DataSource = dsGrid1.Tables("top").DefaultView I set the command to a stored proce and fill a dataset, then set the datagrid1 to the dataset table. I can then see the data grid on the form filled out. I need to change the column headings, hide some columns, then click on a row, and get the hidden field and pass it on to another form. I thought I would need a table style for that. But when I try to add one, I get: "The data grid table styles collection already contains a table style with the same mapping name." ...Show All
Visual Studio Cannot start debugger with ssis package
Hello, I am fairly new to Visual studio, however I have hit a frustrating problem. I have created a SSIS package and have been using the debbuger throughout, no problems. However just now I have finished, cleared up all the warnings and errors, and go to hit that green arrow and its grayed out. ANy ideas on what went wrong. Visual Studio 2005 (8.0.50727.42) SSIS 9.00.2047.00 This is a link to a screenshot http://lior00.googlepages.com/Clipboard01.jpg so that you can get a better idea of what I mean. And I forgot to mention that this is local. ...Show All
Visual Studio Team System Visual C++ compiler generated finalizer does not implement the Dispose pattern correctly?
// C++ code ref class T { ~T() { this->!T(); } // destructor calls finalizer !T() {} // finalizer }; Error, Certainty 95, for ImplementIDisposableCorrectly { Target : Finalize():System.Void (IntrospectionTargetMethodBase) Resolution : "Remove the finalizer from type T, override Dispose(bool disposing), and put the finalization logic in the code path where 'disposing' is false." Help : http://www.gotdotnet.com/team/fxcop/docs/rules.aspx version=1.35&url=/Design/ImplementIDisposableCorrectly.html (String) Category : Microsoft.Design (String) CheckId : CA1063 (String) RuleFile : Design Rules (String) Info : "All IDisposable types should implement the Dispose pattern correctly." ...Show All
Visual Studio Participating in the VS build process (Repost)
(this is a repost of one of my previous posts which I can not find anymore so I am posting it again, sorry for the inconvinience if you already read this post) Hello, I have created a VS package which adds an editor for certain types of files. These files can be added to any C# project. What I want to achieve is that, during the build process, I want to do some custom checking of those files and cancel the build if these checks do not pass. The only place that I've seen that I can do this is by getting the IVsSolutionBuildManager2 service and hook up to solution events via IVsUpdateSolutionEvents2 interface. This interfaces exposes UpdateSolution_Begin method in which I could do my custom checking and stop the build process if th ...Show All
Windows Forms Sorting a Data-Bound DGV by a non data bound column
Ok i have two problems to implement this I lose my non-data-bound values if user clicks on a data-bound column to sort example : (first column non-data-bound, second and third ones are data-bound) ID Price Type 1 3000 $ 2 2500 € 3 4500 $ If user sorts by Price or Type -i dont know why- all the values in my ID column becomes null (it has to do with my ID column being non-data-bound probably) I'm looking for a solution to help me keep the data in my "ID" column when a user sorts other columns. Also Sort doesn't work on my ID column too (probably because of the data getting deleted when i sort) when mixing bound and unbound data, use virtual mod ...Show All
Visual C++ How to change the File Extension.
Hi all, i want to change the file extension. how can i do this in vc++6.0. for example. i'm having example.xml after doing some manipulation on that file and i want to change the file to example.ini is it possible how can i do this Regards and Thanks -Amjath You can use MoveFile API for the same ...Show All
Visual Basic Run-time error '53' : File not found
Hello. I don't know if this is the right place to post this error but I really need help. When I run some games programmed with Visual Basic, I get the following error: Run-time error '53': File not found I am running Windows ME (I wonder if that can help). If anyone could help me, I would be really grateful. Thanks. Regards, PedroMCN Agree with what Renee says but also you say they are programmed with VB. Are you simply the end-user of the games, in which case this is probably the wrong place. You also say Games - plural is this occuring for a number of different applications or just one Or do you have to source code for the games and am having problems debugging - in which ...Show All
