blackghost's Q&A profile
Visual Studio View .rpt on .NET client without client install?
Is this possible at all We'd love to find a way for our app to utilize the CR .NET viewer by utilizing external references to the CR assemblies. Does anyone know of a way to achieve this We, of course, can use the merge module to create a client install but running such an install on all our clients simply isn't an option. We have a number of 3rd party assemblies that we've been able to utilize without a client install through the use of external references but it doesn't appear the CR assemblies will operate in that fashion. Any input you can provide would be greatly appreciated. I do not believe this is possible, mainly because most of their assemblies are just wrappers around com dll's which are setup i ...Show All
Windows Forms problem with vscrollbar
Hi all, I have a Form with 2 two Tabcontrols and some other components. I want to add a vscrollbar only to these tabcontrols but not to the entire form. I tried to add the vscollbar to the tabcontrols like this.tabcontrol.controls.add(this.vscrollbar1), but it giving erros saying only tabpages can be added. Can anyone answer this plz Thanx Yes, but you could use something like: For each tabpag As TabPage in this.tabcontrol1 tabpag.add(this.vscrollbar1) Next tabpag And this could be used for each TabControl. Sorry this is in VB. ...Show All
.NET Development set session value in javascript
Hi, I have one aspx page(main.aspx) that contaion one check box(chkStatus). I will call another page(popup.aspx) by clicking a button(btnPrint) with javascript:wondow.open() method. The things i would like to know is that if I check chkStatus I want to save value in session variable. I will use that session value in popup page. I try like this, but it doesn't work. chkStatus.Attributes.Add( "onclick" , if( chkStatus .checked== true){ <%Session(""status"") = ""MyStatus""%> ;}" ) Any idea I am in urgent. Thanks, MeeNge If you want only getting checkbox's checked property, you can use window.opener.document.getElem ...Show All
Software Development for Windows Vista Help on Vista-RC2 with sector writting.
Hi all, as this is my first post I hope Im posting in the right Place. I recently used the new Ms OS Vista-RC2 and encountered a problem with sector writing for files. Opening the physical volume of the drive (ex. "\\.\C:") and pointing to the sector that I want to alter by using SetFilePointer, works fine when I read the bytes from a certain sector point. But if I try to write to that sector I always get access denied (Error No 5). If on the other hand I open the file and write to it, works fine. Also the method I used worked ok in XP, but it seems in Vista-RC2 it fails with "Access Denied" Error. I have to say as well that Im executing the code as administrator so I believe I have all the priveleges ...Show All
.NET Development XPath finds no nodes
Hello again, I'm still having trouble getting XPath to work in my C# program. Here's my code: XMLquery = "/df:xtvd/df:schedules/df:schedule[@df:program='EP7079270103']" ; XPathDocument document = new XPathDocument ( @"..\..\zap2itxml.xml" ); XPathNavigator xpn = document.CreateNavigator(); XPathExpression query = xpn.Compile(XMLquery); XmlNamespaceManager manager = new XmlNamespaceManager (xpn.NameTable); manager.AddNamespace( "df" , "urn:TMSWebServices" ); query.SetContext(manager); XPathNodeIterator nodes = xpn.Select(query); while (nodes.MoveNext()) { XPathNavigator Nav2 = nodes.Current.Clone(); Nav2.MoveToFirstAttribute(); txtSelect. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scaling my Skybox
Hi guys i hope you can help me with my simple problem. I use the following code to draw my skybox: public void Draw() { Matrix[] transforms = new Matrix[myMesh.Bones.Count]; myMesh.CopyAbsoluteBoneTransformsTo(transforms); foreach (ModelMesh mesh in myMesh.Meshes) { foreach (BasicEffect effect in mesh.Effects) { effect.EnableDefaultLighting(); effect.View = View; effect.Projection = Projection; effect.World = mesh.ParentBone.Transform * Matrix.CreateTranslation(Position); } mesh.Draw(); } } Whats my problem My problem is that my skybox is too small. So how can I scale my skybox or in common how c ...Show All
.NET Development How to connect to internet using dialup
I want to write a program to dial a number, authortize the password, and connect to internet. Would anyone help me Ok, simple way is to use rasphone and rasdial, the not-so-simple way is to figure out the RAS API (Remote Access Service), since this is how Windows connects to the internet Can't tell you much more, because i don't know any more myself, sorry! ...Show All
Visual Studio Express Editions Subtracting textboxes
I finally got the addition to work. How can I subtract two textboxes Is it even possible if its integer values, then its simple. Dim value1 as Integer = Me.textbox1.Text dim value2 as Integer = Me.textbox2.Text Dim result as Integer = value2 - value1 of course you need to be sure that the textboxes contain integer values ...Show All
Visual Studio 2008 (Pre-release) RichTextBox, insert an Inline element at CaretPosition (in an existing Run)?
If I have some text “XXXYYY” and the CaretPosition is between the “XXX” and the “YYY”. How can I then add my own Inline element at the cursor position If I use “ this .richTextBox1.CaretPosition.Paragraph.Inlines.Add(myInline) “ it will (of cause) add to the end of the current run. Best regards, Thomas Andersen is this what you are looking for rtb1.CaretPosition.GetInsertionPosition( LogicalDirection .Forward).InsertTextInRun( "some more text" ); ...Show All
SQL Server Many Queues and one Activation Procedure for that queues.
Hi, All! Could you please help me in my problem I develop Service Broker applcation, SB has 20 queues, also I have one Activation Procedure which carries out following actions: CREATE PROCEDURE proc_ms_Activation AS BEGIN WAITFOR (RECEIVE TOP(1) message_type_name, message_body, conversation_handle, message_id FROM Queue1) -- process message, save statisctisc and etc END Problem in that: when I execute command WAITFOR (RECEIVE TOP (1) message_type_name, message_body, conversation_handle, message_id FROM Queue1) I should specify a name concrete Queue, for example "... FROM Queue1 ". I would like to use one procedure for processing all Queue. How I can design my application that one Activati ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using vetex color
I am drawing 3 lines that represent the 3 axis. The 3 axis are to be 3 different colors. Is there a way to draw using the vertex color using BasicEffect or will I have to write my own Right now I am just rendering the 3 lines seperately changing the diffuse color each time. using ( VertexDeclaration decl = new VertexDeclaration ( m_graphics, VertexPositionColor .VertexElements)) { m_graphics.VertexDeclaration = decl; m_graphics.Vertices[0].SetSource(m_vb, 0, VertexPositionColor .SizeInBytes); BasicEffect bEffect = new BasicEffect (m_graphics, null ); bEffect.Projection = Matrix .CreatePerspectiveFieldOfView(( float ) Math .PI / 4.0f, 400.0f / 400.0f, 1.0f, 1000f); bEffect.View = Matrix .CreateLookAt( ...Show All
Windows Live Developer Forums MSN Spaces RSD doc provides the wrong apiLink
/rsd.aspx alias=user contains the following: <rsd xmlns="http://archipelago.phrasewise.com/rsd" version="1.0"><service xmlns=""><engineName>MSN Spaces</engineName><engineLink>http://spaces.msn.com/</engineLink><homePageLink>http://spaces.msn.com/ianivs</homePageLink><apis><api name="MetaWeblog" preferred="true" apiLink="http://storage.msn.com/storageservice/MetaWeblog.rpc" blogID="MyBlog" /></apis></service></rsd> The endpoint given is http://storage.msn.com/storageservice/MetaWeblog.rpc but should be http s ://storage.msn.com/storageservice/MetaWeblog.rpc Applications using the information fro ...Show All
SQL Server Data Extract - Partitioning
Hello, I have a table containing 3 columns Department Name, RiskScenario and Cost. I am trying to create a data extract that contains the top 3 Risk Scenarios (sorted by Cost) per Department. I tried using this sql statement in MSQuery but it doesn't work. Any ideas where I'm going wrong or if there is a simpler way to do this Select * from ( Select DepartmentName, `Risk Scenario`, Cost, row_number() OVER (PARTITION BY DepartmentName order by Cost) rn FROM 'Departmental Risks`) where rn <=3 Please help. Just can't figure this out! Meera Is your target database an Access database or a SQL Server 2000 database The errors you are getting indicates that the target database is not SQL S ...Show All
Visual Studio Team System Adding WorkItems from a Web Portal
We have a case in which one of our project stakeholders is in fact a customer . He asked us if he can add bugs and requirements remotely to our Team System through a web portal (Web interface). I am fully aware that in this case an extra license is required (No problem regarding this point), however, the question is can this customer login to TS/TFS through a username/password and add new workitems of type Bug or Requirement through the TS project portal (Web Interface) or any other means If this is not possible, then is there any suggested workarounds for doing so When do you think Microsoft will incorporate such a feature in TS/TFS Thanks in advance - Luai. Hi, ...Show All
Visual Studio Express Editions Browser and Player
Hi! first: i am new to this! so heres the problem: i want to build a browser with a music player! i thought the browser is on one tab and the player is on an other. so i realy would like to know how to do this! thx! your leo Two things: 1. i took this: private void button1_Click( object sender, EventArgs e) { this .axWindowsMediaPlayer1.Url=(textBox1.Text); } and then it said : 'AxWMPLib.AxWindowsMediaPlayer' does not contain a definition for 'Url' What should i do 2. can you explain this thing with the folderBrowserDialog i dont get what i have to do there. thx leo ...Show All
