Roee-sgrass's Q&A profile
Windows Forms compiling 2 projects
hello! i am making 2 vb projects. i compile (build) the first project and everything goes right. it even created folder on program file's shortcut. now when i compile (build) my 2nd project, it also uses the same program file folder name . where can i change this thanks sir, i tried your suggestion, but on my start>all programs, my second program to compile still uses the same shortcut folder i need to use two separate shortcut folder on my start>all program. ...Show All
SharePoint Products and Technologies Launch Custom Application from SharePoint
All users of our SharePoint Portal have the same custom application installed on their local machine. How can I add a link in SharePoint to allow users launch the Application I assume this is an application that is executable on the local machine This is complex due to the fact that the location of the exe would have to be int he same location on every machine, etc... creating a link to the local path of the executable should work to launch the app. If this is an app you developed, Have you looked at Click Once Deployment You can place a link with an http address that will install the application if they have not already installed it and would run the application if they have. If this is a custom application, I would use t ...Show All
Visual Studio 2008 (Pre-release) Very slow grouping
Hello! I have a problem with grouping in " ObservableCollection -> CollectionViewSource -> ListView " scenario. In a couple of words: Changes in grouping and is too slow! Moreover, scrolling in the grouped ListView is very slow as well. Here's an example (based on CollectionViewSource SDK sample - July CTP ): FILE: Data.cs - just a collection (of 1000 items) of some domain specific objects (hotels in this case) using System.Windows; using System.Collections.ObjectModel; namespace SDKSample { public class Hotel { private string name; private string city; private string rating; public string Name { get { return name; } ...Show All
.NET Development How to empty a table in a database
Hi, I use VB 2005 Express edition. I want to empty a table in a MS Access data base and set the primary key to 1 for the next entry. How can I do that Thanks! Use an OleDbCommand object and the ExecuteNonQuery method: Dim AccessConn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=e:\My Documents\db1.mdb") AccessConn.Open() Dim AccessCommand As New System.Data.OleDb.OleDbCommand("DELETE * FROM [TABLENAME]", AccessConn) AccessCommand.ExecuteNonQuery() AccessConn.Close() ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotating VertexPositionTexture Arrays
Just for fun I am creating a simple game of space combat. To draw the ships, I am simply applying a texture to a rectangle. The rectangle is a pair of triangles defined using an array of VertexPositionTexture objects. The problem comes in when I try to rotate the ships individually. Up unto recently, I only had one ship on the screen and I was using the following lines of code to draw the ship: Quaternion qRotation = Quaternion.CreateFromAxisAngle(new Vector3(0, 0, 1), fAngle); Matrix mShip = Matrix.CreateFromQuaternion(qRotation) *Matrix.CreateTranslation(fX, fY, 0f); effect.Parameters["xWorld"].SetValue(mShip); //rotate ship effect.Parameters["xTexture"].SetValue(txStarShip); dvOutput.Dr ...Show All
Smart Device Development Help!!!!Who know about the memory limit problem On Windows Mobile 5.0
We developed a application on windows mobile 5.0.One of it's features is to play audio files. We did it by hosting Window Media Player Control in our project.By default, WMP control only suppurt wma and mp3 audio formats on WM5.0.When playing other formats (like aac,3gp,mp4,amr,midi and so on),the WMP control will load neccessary dll which provided by Hardware Vender . The problem is that,after building,the size of exe file is about 6M,and in the application,we will allocate a 5M big heap for application using.When playing the audio files such as aac,amr,It seems that load dlls will not succeed.I try to load libraries by LoadLibrary(...) before playing audio files.It failed.Get the errno by GetLastError(...),ERROR_OUTOFMEMORY returned. It ...Show All
Visual Basic Importing Text files into a Access DB in VB 05
Hello, I have application I am designing to make my life kind of easier at work. The application is linked to access database. Every day the USPS sends me a bunch of text files that I need to import into the database. For some reason I can't not remember how in the world to import the data into this database through VB. Can anyone point me into the right direction on this Thanks Here is the Code, if you guys are still interested. I modified to my database. I don't know if it could also be that I have a primary key that is an auto number I did not need a record ID field, however the only way to get the damn database to save was by putting a primary key on the table. Dim tfr As IO.TextReade ...Show All
SQL Server DDL Triggers
I know that DDL_LOGIN_EVENTS is the same as CREATE LOGIN, ALTER LOGIN and DROP LOGIN combined but where is this documented I have some code here ( http://sqlservercode.blogspot.com/2006/08/ddl-trigger-events-revisited.html ) that basically shows that you can combine events But where is this info in BOL For example if I do this: create a trigger and I use DDL_VIEW_EVENTS CREATE TRIGGER ddlTestEvents ON DATABASE FOR DDL_VIEW_EVENTS AS PRINT 'You must disable Trigger "ddlTestEvents" to drop, create or alter Views!' ROLLBACK ; GO After that I would check the sys.triggers and sys.trigger_events views to see what was inserted SELECT name,te.type,te.type_desc FROM sys.triggers t JOIN sys.trigger_events te on t. obje ...Show All
Visual Studio Team System Matlab integration???
Is there any integration (even 3rd party tool would be interesting) to integrate between Matlab and Team Foundation Server I found a solution - see details on my blog: http://ilanas.blogspot.com/2007/01/integrating-matlab-and-tfs.html Ilan ...Show All
Visual Studio Express Editions migrating from standard C++ templates to Visual C# generics
Hi. I've been programming on C++ for a few years and now I'm getting started with C#. I must say that this language, plus the garbage collector, saves lots of headaches when programming. However, I seem to miss a subtle, but highly useful feature from C++. In C++ I could do something like that: // Note that this code is C++, not C# class n_aryTree<class T, int N> { private: n_aryTree<T, N> children[ N ]; //Array of pointers ... Now, if I try to do something similar in C#, I find that I can't: the T parameter is no problem, but the N one is impossible to put there: it seems to be that C# generics only allow type parameters (the ones I used to declare in C++ as being of the 'class' type). Is there any way to get a equivalen ...Show All
SQL Server Tricky SQL Problem
Hello all, I'm very new to SQL, but find myself with this problem that i've been working on for a while, but I just can't figure out how to work through it. I've got a database of appointments for vehicles. This database holds start time, month, day, year, end day month, year... etc. I want to make a query that allows users to select a begining year, month day etc. and ending month year etc. so i've got this query (I'm using PHP, so the $...'s are just $_Post variables. so here's my query: $query = "SELECT * FROM `appointments` WHERE start_year BETWEEN $start_year AND $end_year AND start_month >= $start_month AND end_month <= $end_month AND start_day >= $start_day ORDER BY start_year, start_month, start_day, start_ti ...Show All
Visual Basic Nead to pass arguments to an Event
Hi there. I have created a class to handle network trafick. I strugeled a bit with this because the application got stuck when it was waiting on a client. I therfore dug a bit and found a class that would solve this for me. Problem with this class was that it was designed to handle a limited number of clients using an array of threads. I thought that I should rewrite this class to handle the threads in a list instead. I allso had the nead of an unique ID to handle the different connections. I found the datatype GUID and I think this is what I nead. So to my problem: I have a method in my class to handle network messages. It is prototyped like this: SUB HandleIncomingMessage(ByVal pClientID as GUID, ByVal pMessage as String) ok. ...Show All
Community Chat A good Commmercial
A question on C/net, “What will you say when you see the new Windows Vista ” It just popped into my head all at once and I laughed so hard tears fell in my hilarity. c "A fabulous slogan for his New Windows Vista." This is the image and thought which popped in my head. A man standing there with a computer case lopsided on his head and him looking out the slot where the cd player is. The slot is larger. You can see his eyes. He is dressed in leather. There is a patch over the left corner of the computer case, an eye patch, a big one, a square one. It has 2 black shoe stringy strings on it and wrapped around the computer box. The computer boxes’ lights are blinking on and off. The case is w ...Show All
SQL Server File Groups
Hi everyone, When I do the following, did I put the files in Test1FG1 file group to the default file group(Primary) ALTER DATABASE Test1 MODIFY FILEGROUP Test1FG1 DEFAULT GO Thanks Indeed, thanks very much for your clarification but I would like to ask a question to you. Is it compulsory to put the first file (with .mdf extension) into the primary data file I also verify myself about my understanding of Primary data file that "prmary files contains All pages for the system tables and the prmary data file , however if DEAFULT File group is not specified, they also contain the iles not placed into any filegroup .", is it correct Thanks ...Show All
Windows Forms GUI customization
Where is some tutorials for customizing your buttons, menus, toobars, because the standard colors are in most apps, and i want mine different. So where is some reference or info to customizing this stuff. You may want to take a look at the Renderer classes. Information: http://msdn2.microsoft.com/en-us/library/ms171733.aspx http://msdn2.microsoft.com/en-us/library/kxys6ytf.aspx Sample: http://blogs.msdn.com/jfoscoding/articles/491523.aspx ...Show All
