Pvanroos's Q&A profile
SharePoint Products and Technologies Hide Menu Items
Hi How do you hide the built in menu options on a sharepoint site (i.e. Site Settings, Create, etc) I have a user which I have setup as a "Reader" yet he seems to have full control over the site. Also, I have a web part on the home page which has a link labelled "Add New Link" - again this user has access to this link and is able to add links to the site - how can I disable this Thanks in advance! Will It actually sounds like the user may have more rights than you think. Would they belong to a group that may have elevated rights SharePoint V3 has been written so that if you do not have rights to a particular action you will not see it. ...Show All
Visual Studio 2008 (Pre-release) ListViewItem selection and focus.
I have code that enables the drag and drop of a ListViewItem to a Canvas. The problem I have is when the ListView is just populated. I have to select the item once with a mouse click and then again to get the drag to start. If I click on it just once while keeping the left mouse button down it doesn't seem like the item is actually selected yet. I think if I just make sure that the first item in the list is actually selected and focused everytime the list loads I will be fine. Can someone tell me how to do that My listview consists of a gridview with gridviewcolumns bound to an xmldataprovider. Thanks! That what I have currently and it doesn't seem to work. If I just have one row for example I have to s ...Show All
SQL Server Restore fails
Hi, I'm using VB.net (VS2005 pro) and SQL Server 2005 Express Edition. I made a Windows Forms application that uses SMO to backup and restore a SQL database. User instance = false. I am using ClickOnce for deployment. Backup (also using SMO) is working fine, but Restore fails. I'm getting this error: The file 'database_veryverylongpath_and_name' cannot be overwritten. It is being used by database 'database_veryverylongpath_and_name'. On my developing machine all works fine, but after publishing and installing (ClickOnce) on another machine, restore using SMO fails (backup succeeds). When restoring the database using SQL Server Management Studio (using the exect same backup-file as I do in code) all works fine (no matter w ...Show All
Visual C++ strtol strangeness?
I'm probably missing something very simple, perhaps I'm tired. Why is it that the line of code "DWORD DWordValue = 0xF988FA1F; " places the proper hex value into the DWordValue variable (4186503711, 0xF988FA1F), but this line of code "DWordValue = strtol("0xF988FA1F", NULL, 16);" places the unanticipated value (2147483647, 0x7FFFFFFF) Don't Long and DWORD size to 4 bytes What am I doing wrong I am testing this because I need to read hex strings in from a file, and then write them as REG_DWORDs to registry sub-key named values. (Any easy ways to do that would also be useful). Definitely weird, and I can only make wild speculations. This could be a bug in strtol, or it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. d3dx9d.dll
Why do I keep getting an error box saying d3dx9d.dll was not found how do I fix that do i need to do somethink to the directx sdk after it is installed. Did the download that Zman offered you work I'm having the same problem and I've downloaded the file...still not working for me. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Milkshape Model Errors
Hey guys, first post here :D. Im have modelled a primitive looking gentleman for my first attempt at game programming using milkshape. I tried to enter the model into the first tutorial program but have met with the error "Error 1 Error normalizing vertex bone weights. BoneWeightCollection does not contain any weighting values. C:\Documents and Settings\Dave\My Documents\Visual Studio 2005\Projects\Game1\Game1\Content\Models\attempt1.fbx Game1" On every model I try to enter except for the one provided by the tutorial. myModel = content.Load< Model >( "content\\Models\\theigh" ); is the code im using to enter it. Does anyone know if there is an issue with milkshape or if its just someth ...Show All
Visual C++ VCBuild Build Order
Hi All I am trying to build a VS Solution file using "VCBuild" and also "devenv" When I compile using devenv -- It builds with out any error. But when I build the same solution file it flags lot of linker errors. After seeing the log , devenv and vcbuild are building projects present in Solution file in different order. How can I make VCBuild to use the Project build order present in Solution file. -Pramod Hi , Are all your projects VC projects What kind of dependencies do you have between the projects Thanks, Marian ...Show All
SQL Server Installed SQLServer Express.....now what?
Hi I've succesfully installed Visual C# and I've made a couple of example projects. I now want to try and create a database and see if I can make a C# application that talks to it. So I've installed SQL Server Express. I was hoping I could open it up and get started with creating tables etc. Instead, my Start menu shows: Microsoft SQL Server 2005 >>>Configuration Tools >>>>>>SQL Server Configuration Manager >>>>>>SQL Server Error and Usage Reporting >>>>>>SQL Server Surface Area Configuration Where do I go now Is there some configuring to do before I can start making tables and storing data Or, have I misunderstood what SQL Server is about Thank ...Show All
Visual Basic copy & paste in visual basic 2005 datagrid
Hi I am building a datagridview form in VisualStudio 2005 and I want the user to be able to copy or paste the content of a cell without needing to select its text first (as this can become tyresome after a while). In excell databased tables you're able to copy the cell's content just by selecting the cell and pressing ctrl + C (not actually selecting the text inside the cell). Can't seem to do it with my visual studio form. Thanx for any help You can capture the key press by handling the KeyUp event on the DataGridView. Below is some sample code showing how to determine if control-c was pressed. Private Sub OnGridKeyUp(ByVal sender As System.Object, ByV ...Show All
Windows Forms button click opens new message areao
how can i do this i want to do when i click my button it opens new label, text area or another control that user can write message on it; and another button that saves this input text and saves this message to any xml data file which will saves message archieve. please help like this; i have and multiview 1 view have asp:textbox and asp: button so when asp:button one clicked multi view change to view2 and it views wroten message in label; so my problem is i dont want to show this multiview control i want that; when user click on my page "Add News" button so multiview must open in view one mode ...Show All
SQL Server Help: How to improve the speed of Sync.
I have a table which has around 132000 rows with 24 columns. I use rda.pull download the data to PDA. For query these data, I must create a index on 5 character columns. The data download time is good enough, around 4 mins. But it takes 12mins to create the index. Please help to give me any idea on how to improve the whole synchroniztion speed. Thanks! I don't have a sample, but in brief you could make a solution similar to the following: Use the same RDA.Pull code on a web server (scheduled task or service) as you are using now, and create the indexes. Zip the file. Pick the file up from the PDA (using the HttpWebRequest class), a sample of this is available below (from the following artic ...Show All
Visual Studio Express Editions "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. "
For god's sake somebody help me. I have become half mad and tearing my hair for the last 2 weeks trying to delete a damn row from sql database but all i get is an error saying: "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. " i have tried many solutions including parameterized queries.Can somebody give me a simple code for a button which when clicked deletes a row of data from sql. Iam using vb.net & Mssql 2005.I am developing a single windows form connected to a database named - customers, with one table - named address. Thanks a lot ahmedaliyas. Thanks for taking out time to reply to my desperate calls. I got the problem solved, it was to do w ...Show All
Visual Studio "The NTVDM CPU has encountered an illegal instruction" error message pops up when installing Visual SourceSafe 6
I keep receiving this error message "The NTVDM CPU has encountered an illegal instruction" when I try to install Visual SourceSafe 6.0. I couldn't find any information about how to fix this problem. All I can find on the Internet is "16 bit MS-DOS Subsystem MS-DOS Prompt - ntdetect The NTVDM CPU has encountered an illegal instruction." No more details. Anyone has an idea how to fix it This looks strongly to be virus related. I am getting a similar messge. Last night AVG reported against one of the strange executables in %sysroot%\Windows\system32: Virus found win32/PolyCrypt More details later. ...Show All
Visual Studio Team System Problems with Application Designer
Hi I have added to my solution a WPF project June CTP, now If I do a click in my .ad file the folowing exception is raised and the VSTS is closed --------------------------- Microsoft Visual Studio --------------------------- An exception was encountered when serializing the Microsoft.VisualStudio.EnterpriseTools.ArtifactModel.Clr.ClrElement.CustomAttributes property. The value was ''. Serialization aborted. --------------------------- Aceptar --------------------------- Any work around Thanks in advance Javier Hi Javier, This is a known problem in the current release of Visual Studio Team Edition for Software Architects which will be fixed in the next release - see http://connect.micro ...Show All
SharePoint Products and Technologies LOL: No Knowledge about Knowledge Network
Steve, Agree completely with you... very nice product and a nice add in to your search capabilites. Sizzle, Im not sure on the exact date of RTM so to speak but with regards to the Technical Preview statement. Yes its true they have backed away from a full blown support model for this release but..... and this is a good but.... I have been working with this product for some time now and I have never encountered any issue on the server side. It sits very nice and quietly and does what its supposed to do. Very little is needed in the way of support for this from what I have experienced. So the question is... do you take the chance and run this in your envioronments without the full support of the product Normally I would say no but ...Show All
