Software Development Network Logo
  • Windows Forms
  • SQL Server
  • Visual C#
  • IE Development
  • Audio and Video
  • Smart Devicet
  • Visual Studio
  • VS Team System
  • Microsoft ISV
  • Game Technologies
  • Visual FoxPro
  • Windows Vista
  • SharePoint Products
  • Visual C++
  • Visual Basic

Software Development Network >> AdamRLeggett's Q&A profile

AdamRLeggett

Member List

CFIG
GrahamY
RickyBIBI
Ivo6070
carrielm
cmumford
Eric Hausig
Richard Morgan
David Weller - MSFT
KevinBurton
gf
Sanchit Bahal
Yustme
yagimay
JIM.H.
Marcel82
TboneToo
Worf
vibhavari
BJHop
Only Title

AdamRLeggett's Q&A profile

  • SQL Server Setting a Default Confidentiality message

    Our company requires a "confidentiality message" displayed on all web pages, documents and reports. Is there a way for Reporting Services or IE for that matter to display a default confidentiality message accross all reports rather than editing each individual report Thanks in advance. That may provide a solution for all newly created reports but we have hundreds of reports in use now that require the confidentiality message added to each one. I am interested in a way to apply this message to all reports rather than edit each and every one of them. Thanks. ...Show All

  • Visual C# is as Keyword

    I have a general event handler function. and has a general object passed to it, but I have to use a "is" or "as" to decode the type, is it possible that the base class can detect the type and call the function for that type I don't what to use methodinvoke because it is so slowwwwww. Another apporach would be to anonymous delegates would help but I don't like putting several delegates in one method to handle each type.. and I would have to use continutions to continue the event pump... (ie see robots framework for an example) And I don't want to declare delegates for each type because this means more work for the programmer... void handler(baseobject ev){ if (ev is MyEvent) { MyEvent evmy= (MyEvent)ev); ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Racing Game Tutorial

    Hi. A little time is past since the beta of XNA is been released. So, can someone write me a little 3D or 2D racing game tutorial Please! I think that all of us want to know how to build a racing game with XNA don't you I have wrote a 3d pong, an arcanoid and games like this...i'm not lazy as you think. I just don't know how to create a racing game. Thats all. I'm not that kind of person...by the way, thanks for the books you suggested me. ...Show All

  • Windows Forms Sort Text based on number order

    Hi there I have a dataset with a number of tables, all filled by reading an XML file (no sql). I'm using a DataGridView on my form to display one of the tables. The table has a field that is a string but mostly contains numbers. Sometimes it may contain letters but for the moment lets just assume the column is a string representation of numbers. I want to the DataGridView sorted based on this column, but in numeric order rather than alphabetic order. eg I want: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ... 28, 29, 30, 31 etc At the moment I get: 0, 1, 11, 12, ... 19, 2, 20, 21...28, 29, 3, 30, 31 etc Can anyone tell me how to do this All I can find is being able to sort by column ascending and decending. How can I convert the string to int ...Show All

  • Visual Studio Express Editions Having Webbrowser functions to specify tabs?

    I am currently having some trouple getting some of the standard webbrowser functions to work properly when using a tab system. I have it setup so that you can create new tabs with a button click with a webbrowser in each one, but I can't figure out how to get the "Back", "Foward", etc. to work for the visible tab. I am also having trouble getting the address bar to work properly. Can someone please show me how to do it Here is my code so far: Public Class Form1 Public Class WebBrowserTabPage Inherits System.Windows.Forms.TabPage Private WithEvents WebBrowser As WebBrowser Public Event Navigating(ByVal sender As Object, ByVal e As EventArgs) Public Event Navigated(ByVal sender As Object, ByVal e As EventArgs) Public Sub New() ...Show All

  • SQL Server #Error in total fields

    I am getting a #error in my subtotal and total fields, I have data in a field (on a table) as follows which displays 0.00 if there is a zero in the divide by field, otherwise it performs the divide and gives me a percentage difference from the two fields. This works fine =iif(Fields!REPCYINC.Value=0,0,(Fields!REPCYINC.Value) / iif(Fields!REPCYPROD.Value=0,1,Fields!REPCYPROD.Value)) * 100 Yet when i try to get this in a total field by doing an AVG it fails, and gives #error, please help, no matter how many iifs a wrap aroun dit it doesnt help. This is the statement that #error's =round(avg(iif(Fields!REPCYINC.Value=0,0,(Fields!REPCYINC.Value) / iif(Fields!REPCYPROD.Value=0,1,Fields!REPCYPROD.Value)) * 100) ,2) That doesnt help, the i ...Show All

  • Visual Studio 2008 (Pre-release) Image.Source in code

    Hello I have a windowsFormsControlLibrary Today I set Image using Resources imgObj.Image = PowerJobsDll.Properties. Resources .folder24 How can I do the same to a System.Windows.Controls.Image object using his Source Property. Itzik Solved it System.Windows.Media.Imaging. BitmapImage bi = new System.Windows.Media.Imaging. BitmapImage (); try { bi.BeginInit(); bi.UriSource = new Uri ( "pack://application:,,,/Resources/" + resource + ".png" ); bi.EndInit(); imageLabel.Source = bi; } catch ( Exception exp) { System.Windows. MessageBox .Show(exp.Message); } ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Place Virtual Earth Tiles onto sphere

    just as a side project, I'm trying to place virtual earth tiles onto a sphere made in WPF (directX 9). I am using the 4 largest tiles created as a single PNG. My problem is with placing the texture coordinates, the continents are all the wrong size because I don't know what parts of the tile to match with the spheres latitudes (because I don't know where the latitudes are on the tile). Anyone know to identify latitudes on the tile the equator and the ends are no brainers, but in between...no idea. 2d image http://farm1.static.flickr.com/124/329370551_124631d76b_m.jpg 3d attempt http://farm1.static.flickr.com/145/329370550_16df4d398d_m.jpg Actually, that would probably be upside down, ...Show All

  • Software Development for Windows Vista DirectShow within Direct3D render loop

    I am developing a 2D/3D interface using Direct3D. I am trying to also include a video window within the interface to display live TV from a tuner card. I am using VMR9. The problem I have is that the video is flickering, seemingly caused by the drawing loop. After I call D3D Present(), I have to tell the VMR9 window to repaint itself using RepaintVideo(), otherwise the video does not show at all. I am very new to DirectShow and any help would be greatly appreciated. Thanks. Dustin, without knowing the methods you are using to generate your drawing I cannot sugguest which method to use.  Searching was the only thing that could be sugguested.  Drawings can be generated with GDI, GDI+, Direct3 ...Show All

  • Visual Studio strange problem regarding check in date time

    I meet a strange problem regarding check in date time I check in a file at 8 Aug14:19 today, then I view the history in visual studio 2005 via right click the file, the time is correct equal 14:19, but while I open sourcesafe explorer at same pc and view the history, I noted the check in date time become a future time 5:19 am 9 Aug, it is so strange, anybody can help me. If you're certain that no one will check in code over the weekend, you could change the timezone setting in the Administrator's Tools\Options dialog on a Sunday (or first thing Monday morning). Else, take the database offline for the duration of the time difference (17 hours), change the setting, then place it back online. ...Show All

  • Windows Forms How to modify the ToolBoxItem.CreateComponentsCore defaultValues parameter

    ToolBoxitem has a CreateComponents core method and one of the parameters is a set of Default Values that the ToolBox uses to setup the control it will create. How can I modify what is passed into there BEFORE this method is called My design surface is based off of Form. I would like to override the method where the drop happens and the create components core is called. I've looked at the call stack for this and there are about 15 things that happen before it gets to this method, so I'm not sure where to jump in (or if I even can) Thanks for the help. When you redo, is the Location property set correctly I.e. try and drop the item at the bottom right of the form. Is it only the properties that you ...Show All

  • .NET Development suggestions for naming a Name field in a lookup table?

    What is the suggested standard for naming a Name column in a Type, or lookup table I would like to create a lookup table with two three fields, a counter (PK) and then Name and Description. However the Name field indicates a reserved word and I would like to use something else that is not a potential problem. What is the normal standard is the MS world for this Thanks. You can always be more specific and say TypeName or CustomerName or whatever it maps to. So for example if this lookup table is for object names, use ObjectName, ObjectDescription and ObjectID. The benefit of this is IF later on you join this to some other table you can refer to the field names without having to qualify them ...Show All

  • Visual C# Shell Context menu (aka Win Explorer context menu) in my app?.. how?

    Hi all.. I have for a time now tried to take advantage of some of the implementations the Shell32 api can offer regards to file management, mainly i have been successful. The one thing i have not been able to do is implement the explorer context menu in my applications. I want to be able to get the same context menu Windowns explorer shows, with all the addins that may include (eg. winrar-addin, sendto, openwith and so forth) in my application. I have found code for this in both C++ and som e VB like apps, but nothing in C#. I would be extreamly glad if someone who knows how to do this could post a small app where this is done or perhaps post a link to a site where this information can be found!! If its still unclear what i mean: ...Show All

  • Visual C# open/close oledb connection

    I connect and query my access database and populate my datagridview using the code below. My question is if I have to explicitly open or close the connection, please can you show me how & where... DataSet ds = new DataSet(); OleDbDataAdapter da = new OleDbDataAdapter(); OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + @"\MyDb.mdb;User Id=admin;Password=;"); string strSQL = "SELECT * FROM Log"; OleDbCommand cmd = new OleDbCommand(strSQL, con); da.SelectCommand = cmd; da.Fill(ds); this.dataGridView1.DataSource = ds.Tables[0]; Thanks Well the answer to that one seems to be: Stick the function call in the backgrou ...Show All

  • Visual Studio 2008 (Pre-release) gfc card

    hi peopl.. i really dint understnd the shader thing and all tat required for xna game studio supported gfx card.. i hav an intel DG965RY motherboard and my gfx card is on board, which is of 128MB.. now how do i know if mine is capable of running xna another prob is tat wen i run the setup of xna, wen it is almost complete, it throws an error sayin "one of the components required by setup did not complete as expected. set up wil terminate now".. please help.. i hav the same .msi file tat is available.. ...Show All

©2008 Software Development Network