Solk's Q&A profile
Windows Forms How change the DataGridView CurrentRow Index ???
Hi, I just realized that the CurrentRow.Index property is read-only, I need to select the rowindex programatically since the DataGridView is bounded. That property was really helpfull when it was possible to assign a value, how can I achieve this My problem is that I change the rows order in datatable, I am able to select the new row, but until now, I cannot select the row index, this remains in the original position. Thanks in advance. George You can use the DataGridView.HitTestInfo to figure out what row the mouse is over. ...Show All
SQL Server why data can not be seen
I meet a problem during a project,in SSAS the deploy success,and we can see dimension's data ,but we can not see measure's data,why (data exist in database). When you deploy the project it only processes the structure of the cube - therefore you can see the dimension data - however you will see you measure values by only doing a Process Data on the cube or relevant measure group. Hope that helps. Suranjan ...Show All
SQL Server RDLC Client Report and query parameters and print button
Hi, this is my first post here. I hope to be helpful trying to help and not only asking questions arround here. After I have my report ready I will share here the total experience from top to bottom!But for now, here's the issue: I'm building a RDLC Repor on my ASP.Net VB web application. I added the .rdlc file to the application and created a table to show lines of data binded from a dataset. The thing is: - The DataSet expects a parameter @intNumber, a identifier to get the correct data to display the correct report. - I'm using ReportViewer to view the report, and by code I've passed a Report Parameter to the *.RDLC report with success, just like this: Dim parms(0) As ReportParameter parms(0) = New ReportParameter("intNumber", ...Show All
Visual Studio Express Editions Clipboard Help
Hello all, good morning :) need some help with this one please: I have 6 textboxes on my form. I need to assign each textbox with a shorcut key (eg. alt + 1, atl+2 etc..) and then copy the contents to the clipboard. I take it that I would have to put the code in a timer event & would the shorcut keys still work even if the form is not displayed on the screen Thanks, Stuart ReneeC, is it poss you could explain some of what the code means aswell I just didn't want to copy you code without understanding a few things. Whats the "D" after the keys mean and come from (eg. Keys.D1) Tb=sender.text And I take the e stands for Event which is declared in the sub Thank you, ...Show All
Windows Forms Undo Changes in Property Grid
I suppose this is a two part question... There are a couple properties that I do not wish to change within a property grid. Or if the user wishes I would like to undo changes made to the property grid. Normally, I would ignore changes for individual properties within a Property_Changing event set e.Cancel to true. This solution does not work. Any suggestions When I want to revert to the settings before the property grid is opened what should I do this is how what I have now but does not work. This could be an issue with the ScatterPlot's behaviour as well. private void customizeToolStripMenuItem_Click( object sender, EventArgs e) { ScatterPlot tmpScatterPlot = this .scatterPlot1.Clone() as ScatterPlot ; usi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite Effects
Hi: Are there any tutorials regarding applying any effects to sprites or textures For example I want to apply 'motion blur' based on the sprites velocity vector. Do I need to write some kind of custom shader or does the XNA framework have this included Any help greatly appreciated! Regards: John The best way to do this would be writing a custom pixel shader. Alternatively you could just draw a number of copies of the sprite at previous positions, with alpha blending turned on. If it's moving to the right, draw a copy slightly to the left with half alpha, another further to the left with quarter alpha, etc. Repeat that enough times and you'll get a decent looking blur effect. ...Show All
Visual Studio Team System Refresh in Project 2007
I am having problems with doing a Refresh in Project 2007. There seems to be no data being brought over from Team Foundation Server. I can make changes to tasks in Team Server, save them and when I select Refresh in Project 2007, Project remains unchanged. I can also select tasks in Team Server and request it to Open Selection in MS Project. The result is the list of tasks all with a duration of 1 day estimated, a start date of today, 0 remaining work. This seems to have started around the time I upgraded from Project 2003 to 2007. Publish does seem to work OK with current information in Project updated to Team Server. Anyone have any ideas Do you have TFS SP1 installed on the machine I ...Show All
SQL Server membership users MISSING
I created 2nd copy of my entire asp.net website folder. I tried opening that 2nd folder in VWD and ran it. when i was logging into the membership it wont authenticate anymore. I opened the database to double-check the users and found the exactly the same database (as I expected) that I have on the 1st copy website folder. All the users are listed there. I opened the "ASP.NET web Application Administration" and it says I have no users nor any role and that is really impossible coz I can see the aspnet_Membership table having all the users and other info. If i run the 1st copy website folder, no problem at all. Why is that Can someone explain this to me pls Im confused. im a student. big thanks! ...Show All
Visual Basic Overriding ContextMenu for WebBrowser control?
I am creating a web browser in VB .NET. I decided to make a custom ContextMenu when the user right-clicked within the web browser control. The default one is boring and doesn't provide the NET gui. I created the control in the Form designer. I then selected the web browser control and found the ContextMenuStrip setting under the properties window. I selected the name of my ContextMenu and then re-compiled. Everything appeared to be fine until I ran the app. It refuses to open my custom ContextMenu but rather continues to display the old one! I am sure what I want is possible- I have seen other NET apps doing this. However, I don't know how to go about it. Any help to the solution would be great! irrdev, ...Show All
.NET Development Tcp disconnection problem
I'm writing a Client-Server model solution. I'm using TcpListener and TcpClients. I use StreamReaders and StreamWriters to communicate over the underlying sockets and I'm having some problems. I'm using ReadLine() and WriteLine(). First off, how do I know when there is a disconnection You would think there was an exception thrown, but it just blocks forever. So I have to use Thread.Abort() and this is hardly ideal. Also the TcpClient.Connected property shows true when indeed there is no connection. The problem there is two-fold. If I shutdown the server the client thinks it's still connected. Also, if I choose to close a connection myself during one of the StreamReader/StreamWriter blocking calls I must raise an exception (u ...Show All
Visual Basic The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Hi, a Visual Basic 2005 project was saved on a USB memory. Then it was copied to the hard disk. When trying to open the project from the hard disk, it is not possible to load some forms and this is the message that appears: Errores al cargar el disenador. Los errores se citan a continuacion. Algunos errores se pueden corregir volviendo a generar el proyecto, otros puede que requieran cambios en el codigo. The specified module could not be found. (Excepcion de HRESULT: 0x8007007E) Ocultar en System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) en System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid) en System.Windows.Forms.AxHost.Create ...Show All
Visual Studio How to define a RootClass?
Hi everyone, When I deleted all things from the DslDefinition.dsl designer and want to start from scratch to define a RootClass for my domain model, I found that there is no way I can define a DomainClass as RootClass. Can I define a Domain Class as a RootClass myself Thanks for your reply! This is a property of the diagram in the DSL Explorer. The property on the diagram is name "Class represented". Hope it helps, Gerben. ...Show All
Visual C++ converting address to string
How can I veiw the address of a location, that is to say how can I convert an adress to a string or some other type Just as a side note you can have a look at some (not so intuitive, but handy) code of mine at http://einaros.blogspot.com/2006/11/put-hex-on-that-dump.html . ...Show All
Visual C# Best way to update a class when modifying a member
Hi, I have a UserControl derived class containing a Label, which I would like to be updated every time a public string on the class is modified. For this, I created accessors for the public string, in this way: public class MyControl : UserControl { private Label _label; private string _string; public string MyString { get {return _string; } set {_string = value; _label.Text = value + " " + value; /* do something fancy with the new value */} } /* ... */ } What I dislike of this approach is that I have the feeling of having duplicated the string inside my class. I am not sure if this is accurate, as I am new to C# development. Anyway, is there any other way to update elements of a class when a member is mo ...Show All
Visual FoxPro uniqueness of index <insert index name> is violated.
Hi, i'm making batch changes to several of our foxpro databases using C# and ado.net. Basically i am consolidating many lookups into the same key across multiple databases. After moving them to the proper id and deleting unused id's, i go and find out from all of the databases what lookups they have, compile them into a uniquelist and then make sure that every database has that row. My problem is that once my consolidation happens and it deletes unused rows, i'm trying to add rows that use to be there back in because they're part of my 'master list' and i need them even though they aren't being used... i then get this error even though the record has been deleted already. example id 9060 was not being used, i first go t ...Show All
