vb_n00b's Q&A profile
Visual Studio 2008 (Pre-release) MediaElement and Media Player
Does MediaElement work with Media Player 11 (Beta) If not, does anyone know how to install Media Player 10 after having 11 installed I uninstalled 11 but get an error message, when trying to install 10, that there is a newer version installed! Thanks John MediaElement will not work with WMP11 on XP. Getting WMP10 to install after installing 11 is beyond my range of experience. Sorry I couldn't provide more help ...Show All
SQL Server Error: Transaction context in use by another session
I am programming in ASP and SQL server. I am using this tag <% Transaction =Required %> to do the transaction. And it woks well, but the problem is that sometimes I get this error: "transaction context in use by another session" ... It's really weird because it only happens in the same row. If choose this row to be shown I get that message, but if choose another row I get result with no error. And if take out the tag <%Transaction... I don't get any error. I've searched in other forums about this error, and one guy claims that there is a bug in the MTS and there is no way to solve the problem. Actually, the transaction is done only by using this tag <% @ Language ...Show All
Visual C# ignore mouse down event
I'm new to C# programming, learning it for pleasure on my own time. As an exercise, I'm creating a simple Windows program that 1) takes the mouse-down event as an 'anchor' point, 2) while dragging the mouse around continually draw a line from that anchor point to the current mouse position, 3) once the mouse-up occurs, shrink the resulting line down automatically until it disappears. Not too hard, and it works perfectly fine. My problem is that I do not want the Form to accept any mouse-down's while the shrinking logic is occurring. Currently, while the line is shrinking, I can do some more click-and-drags, and once the shrinking completes, those subsequent lines are drawn/shrunk in like fashion. I want to effectively ignore any mouse- ...Show All
Smart Device Development Script Control for Pocket PC..!! Plz very important...
hi guys how are you i just want to ask where can i find an ActiveX Control which do the same functionality as (Script Control ActiveX) but for Pocket PCs... this activeX is for converting a string entered by the programmer to VB Script.. i tried to do it but the activeX do not support mobile programming... so please who know how to do it just tell me how coz it's very important for me... thank you a lot :) I'm just pointing out the possible reason you've got no answers (besides very good chance there’s no such control in existence or you probably would’ve found it on a web right away) . However, I see no reason to delete your post as, while not very polite, it’s no ...Show All
Visual Basic Exporting Excel to an access table.
Hi, I have an access db called TablePeople. This table has the following fields: PeopleID FirstName LastName UserName I have an excel spreadsheet called People.xls that has the same fields as TablePeople. What I want to do is to import all the data in the excel spreadsheet to TablePeople using VBA that is shipped with access. Can somebody point out what are the steps I need to take in order to automate this process Thanks hi, It is easy to do this with Excel, just record a macro then add it to the button click event with a bit of tidying, Access does not have a record function mores the pity. Found a useful piece that someone else did on: Code Forum ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Learning Direct X
I have tried to learn direct x with several online tutorials, but failed. I have decied that I need to learn from a full book. I consider my self a good programmer. There are plenty of book centered around making games, but this is NOT my intention. I want to learn the basics and the advanced of direct X, from the ground up NOT from the perspective of making games. I want a book that is based on the .net 2.0, I dont wish to learn techniques that are already outdated. The book needs to include advanced topics such as how .x meshes actually work, ect. I would really appreciate any book suggestions, thanks ahead of time. David Weller - MSFT wrote: a book on native C++ DirectX. The Direct3D Grap ...Show All
SQL Server VERY large binary import/export headache
Hi, I am currently importing (and exporting) binary flat files to and from Db fields using the TEXTPTR and UPDATETEXT (or READTEXT for export) functions. This allows me to fetch/send the data in manageable packet sizes without the need to load complete files into RAM first. Given that some files can be up to 1Gb in size I am keen to find out a new way of doing this since the announcement that TEXTPTR, READTEXT and UPDATETEXT are going to be removed from T-SQL. I had a quick foray into SSIS but couldn't find anything suitable which brings me back to T-SQL. If anyone knows a nice elegant way of doing this and is prepared to share, that would be grand. Thanks for your time, Paul The "image" type is basically been changed to & ...Show All
Visual C++ How to make dynamic 2D arrays?
Is it possible to have a dynamically sized 2D or 3D array For a normal 1D array, I have 2 methods: 1) create a pointer to a variable, then initializing it with a supplied size: int *iTemp; iTemp = new int[100]; 2) use a CList. CList<int,int&>iTemp; But these methods fail when I try to make a 2D array. i.e. iTemp = new int[10][10] \\not possible Is there a way to achieve this instead of CList I assume by dynamic you mean ability to change size typedef std::vector<YOUR_TYPE> DIM1; typedef std::vector<DIM1> DIM2; typedef std::vector<DIM3> DIM3; DIM2 array2D; DIM3 array3D; use std::vector::push_back or std::vector::resize to change dimention size. You also can ...Show All
Visual C# Allow generic method only for a few types (int, string, bool, float, etc.)
Hello, i have currently a little problems with generics. I wanted to make something like that, which is no valid c# code: void MyMethod<T>() where T : string || int || bool || float || short || byte || uint || ushort || long { ... } But it is not possible to use types like int or string after the where keyword, because the string class is sealed and the valuetypes like int are no classes. I made a workaround, but I'm not very happy with it: void MyMethod<T>() { if (typeof(T) == typeof(string) || typeof(T) == typeof(int) .... ---- } This code gets not optimized by the JIT compiler (I looked in the assembler code), but its really important, that there is no overhead at this place. And i can't imagine, that this ...Show All
SQL Server Connecting to a local cube using Server.Connect(strStringConnection) method of AMO
I am trying to connect to a local cube using Server.Connect( strStringConnection ) method of AMO strConnectString = "Data Source=MyPath\LocalcubeName.cub" Server.Connect( strStringConnection ) The result: Message "The MyPath\LocalcubeName.cub' local cube file cannot be opened." String StackTrace " at Microsoft.AnalysisServices.LocalCubeStream..ctor(String cubeFile, MSMDLOCAL_OPEN_FLAGS settings, Int32 timeout, String password) at Microsoft.AnalysisServices.XmlaClient.OpenLocalCubeConnection(ConnectionInfo connectionInfo) at Microsoft.AnalysisServices.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)" String Is ...Show All
Windows Forms Can c# perform a CTRL+V
Hi all How can i get my program to perform a CTRL+V. (paste from clipboard) Thanks. Lars ActiveControl is a property available with ContainerControl class.ActiveControl indicates the control which is active..ie, which contain the focus ...Show All
Visual Basic VB2005: Startup Form / Splash Form / Application Startup
Hi, This is driving me nuts, I have a Startup Form defined and a Splash Form defined in the applications properties. in the Application_Startup event, I have some code to do some initial checks, which will then be used throughout the applications lifecycle as well as to change the duration of the splash screen and change some of its contents. Now according to MS's code comment the Application_startup should fire before the initial forms are displayed. This does not happen the Splash form is being called before the application startup is being executed, so it is missing the initial code checks and doesn't do what it should...... Is this a bug what can i do to work around this Cheers, Dave ...Show All
Visual C# Metafile serialization impossible ?
Hi, I would like to serialize a class which includes an image property field. I have no problem saving a bitmap image. However, when using a metafile (*.emf format) the result is also converted to a bitmap. Could someone please point me in the right direction Thanks, Sylvain [ XmlElement ( "Image" )] public byte [] ImageByteArray { get { if (_image != null ) { TypeConverter imageConverter = TypeDescriptor .GetConverter(_image.GetType()); return ( byte [])imageConverter.ConvertTo(_image, typeof ( byte [])); } else return null ; } set { if ( value != null ) { //TypeConverter imageConverter = TypeDescriptor.GetConverter(typeof(Image)); //_image.GetType()); //_image = (Image)image ...Show All
Visual Studio Express Editions msgbox problem
hi there i have a problem regarding messagebox.... i want is to delete all my items in the table when i click the button the messagebox will promt if you want to continue... if i choose cancel it's also execute the delete command what's wrong with my code here's my code msgbox ("some text",messageboxresult.OKCancel) if msgbox = vbOk then theOleDbCommand.Connection.Open() theOleDbCommand.ExecuteNonQuery() theOleDbCommand.Connection.Close() else if msgbox = vbCancel then msgbox ("some text") end if hope this will help you Try Dim result As DialogResult = MessageBox.Show("Do you want to save ", "Some text", MessageBoxButtons.YesNo, MessageBoxIcon.Question) Select Case re ...Show All
SQL Server "The component could not be added to the Data Flow task"
Dear Colleagues, I'm trying to develop a custom Data Flow Transformization component in SSIS. I compiled it without errors, installed it in the GAC and in the Pipeline Components-folder however I always get the following message when I'm trying to drag the component onto the designer surface: The component could not be added to the Data Flow task. Please verify that this component is properly installed. ------------------------------ ADDITIONAL INFORMATION: The data flow object "RisikoKennzahlenKomponenten.MarktwertTransformation, RisikoKennzahlenKomponenten, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cfa8722b8086ac2d" is not installed correctly on this computer. (Microsoft.DataTransformationServices. ...Show All
