somebodynobody's Q&A profile
Visual C# Question about objects behavior
I have a Class called animation. This Animation has a member of type Bitmap. It also has an arraylist member that holds objects of Frame type. When creating a frame object, a parameter of the constructor is the bitmap which is passed in as the Bitmap object that is part of the Animation class. Some operations need to be done on the Bitmap for the entire animation and thus these are performed by the Animation class. Some operations are done on the frame level so these are done by the individual frame objects. Here comes the question... I pass in the Bitmap to each frame (I've tried by value and by ref) and ...Show All
SQL Server Removing White Space
I have created a report with a drill down button for each unique record. However, when the nodes are not expanded (the default), the report displays with large amounts of white space (varying according to how much space is required once the node is fully expanded). Is there any way to remove this whitespace Thanks in advance. You need to make sure you are hiding the groups, not the individual rows inside the group. Edit the group properties and set the visibility there. ...Show All
SQL Server referenced relationship error
I try to add dimension with referenced relationship. I defined everything like explaination in Books online, but when I try to save cube, I always get message: "Cube 'Cube' cannot be saved because of the following errors: Errors in the metadata manager. The 'Key' intermediate granularity attribute of the'IntDim' measures group dimension does not have an attribute hierarchy enabled." I enabled this attribute hierarchy for Key... but.... Anybody who can help When I tried these basic steps using the Adventure Works sample it worked for me. If you remove the dimension relationship and try to re-create it af ...Show All
Visual C# Nested Generic Approach
The following is my class definition public abstract class FieldDefinitionBase<AttributeType> public abstract class FieldDefinitionCollectionBase<T> : List<T> where T: FieldDefinitionBase<Attribute> public class DataFieldDefinition : FieldDefinitionBase<DataFieldAttribute> public class DataFieldDefinitionCollection : FieldDefinitionCollectionBase<DataFieldDefinition> The DataFieldDefinitionCollection cannot be compiled: the type 'DataFieldDefinition' must be convertible to 'FieldDefinitionBase<System.Attribute>' in order to use it as parameter FieldDefinitionType in the generic type of method ' ...Show All
Game Technologies: DirectX, XNA, XACT, etc. THANX
Hi everyone, i'm making my arcade 2d engine using d3d9 sprites, particles ditto. I have a problem with creating the device. First of all i tried all the ways i knew to make the hWnd handler which i guess is the problem. Any ways here's my code for creating the device. /* dx9.pD3D is basically our d3d object d3dpp is presentation parameters and dx9.pd3dDevice is our d3ddevice object.*/ if( FAILED( dx9.pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd ,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp, &dx9.pd3dDevice ) ) ) state = false; p.s. please give me a working source code for making a simple hWnd handler as well as the p ...Show All
.NET Development Loading external assemblies that are not strongly named
Hi, I have a project which references an assembly that is external to the application (it is not in the bin directory of the project or in a path relative to the application). At runtime I use reflection to load the assembly from a supplied path. The exception ‘System.IO.FileNotFoundException’ gets thrown. The external assembly is not strongly named and so I cannot use the ‘codebase’ tag in the configuration file to specify the path. Is what I am trying to do impossible Any help will be greatly appreciated. Rakesh ...Show All
Windows Search Technologies WDS3 indexing problem
Hello! I upgraded my working WDS2 to 3 as Outlook 2007 asks me about it. I left my laptop at office for a night but at next morning nothing was found via WDS3. C:\Documents and Settings\All Users\Application Data\Microsoft\Search\Data\Applications\Windows\GatherLogs\SystemIndex contains 2Mb gatherer log. When I tried to start Indexing Snap-In I received Snap-In Creation Failed, so I tried to reinstall Indexing Service from Add/Remove Windows Component. Installation Wizard completed succeffully, but status of Indexing Service component is Not Installed anyway. In logs I've got: Event Type: Error Event Source: Window ...Show All
SQL Server OK button not working...
I am trying to get MSSQL Reporting Services working. I have used it before, but now I have the opportunity to get the software entrenched in my organization. I installed the app and it opens up, but when I try to create a new folder the software will not allow the OK choice. I can cancel, but I need to choose OK. I have installed the app, SP2, and a hotfix that is on the website. Help.... I've run aspnet_regiss -i (and -c) , I still get the same error. The complication might be that the default website points to d:/websites/wwwroot instead of c:/inetpub. Is there any way to get it to work Re ...Show All
Visual Studio Express Editions Notifyicon with contextmenu and no form.
Hello, i just downloaded and installed the Visual Studio 2005 Express Edition (C#). I want to make a small app, where a small notifyicon is the "program", it should poll XML/RSS feeds, and then show up in balloontips. But i can't find a way to remove the form, and only startup the notifyicon. Your question has been moved from the Installing and registering Visual Studio Express Editions to the Visual C# Express Edition forum where you should be able get more help. ...Show All
Visual Studio 2008 (Pre-release) Authorization manager
how do you get the roles, tasks and operations directly into your AD profile we set up an store, an application, defined roles, tasks and operations. then we setup an group and the ldap query was (memberOf=<an AD group name here>). we also setup the role assignments to the group we created with the ldap query. however when I log in we don't see the group name with the ldap query in the AD memberOf. I would think we could see this information in AD. We're trying to avoid putting hard coded text into the application.. i.e. AccessCheck calls with the name of the roles/tasks/operations). Thanks in advance. Hi Rod, T ...Show All
Windows Forms Nesting Datagrids
Hi I'm trying to work out how to nest datagrids. The parent child way that is supported by default is a little bit limited for my needs. Here is an image of what i'm trying to do Example I also need to add things like combo boxes to certain columns (which I think I can do) I'm fairly new to windows forms, so I don't know by way around very well. I can find tons of stuff for ASP.NET but thats not helpful for my windows app. i'm trying to do this in C# using .NET 1.1 Oh yes I forgot to meantion, the data that goes into this datagrid comes from a join between two tables I know the ActiveX Flexgrid can do tha ...Show All
Windows Forms newbie to winforms
I'm new to winforms and I have a question. On a button.click event I have some methods Method1(); Method2(); Method3(); My question is : if I want to exit from method1() and not to run Method2() and Method3() how can I do I've tried Close(); Application.Exit() but it's still execute the remaining methods. Hmm...I would like to end this discussion here. It seems to me that this is getting into an unhealthy argument here and not adding value to the conversation. Vikram ...Show All
SQL Server Help with Case Statement
I have the following code in which I need to check something in the ELSE. The problem is how to form it correctly. I could use a cursor I guess to transverse through the records. In the Else, I want to: 1) Check the count of the results of my statement. IF > 1 then check to see if m.original is between lowlimit and highlimit for any of those records found 2) If m.original is between the lowlimit and highlimit, then select Fee1 from FeeScheduleDetails m.original and m.FeeSchedule is out here somewhere, just know this...it's part of the query that you don't see CASE WHEN Len(c.FeeSchedule) < 3 then CONVERT(int, c.feeSchedule) ...Show All
Windows Forms Listview with Imagelist
Hi All, I am working with listview and imagelist, and I am able to populate listview with images and data,but in one situatation I need to remove all images(imagelist) from the listview, when I remove images(imagelist) from the listview I want to make first column textalignment to left, in my code even if I remove images(imagelist) I was not able to align the text to left. I wasnt able to remove the space what earlier occupied by images(imagelist). I can clear that space by disposing the listview but I dont want dispose the listview, I would appreciate if anyone gives me the solution Thanks hi Audi, I am working with listvi ...Show All
Visual C++ ArrayList::Sort() with Class
I have an ArrayList which stores different instances of a class, which contains 3 integers. I wish to sort the ArrayList by 1 of these integers. I'm sure it's possible but can't find anything on MSDN to show me how, can anyone help Thanks, IxxI Sorry, I've been away, hence the lack of swift reply - I shall try this and get back to you (though if it works for you I don't see why it shouldn't work for me)! Thanks Boris, IxxI ...Show All
