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

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

Bodylojohn

Member List

chub xbox
singam
Evan Mulawski
Troy Lundin
Randal Greene
M.N. Ahmed Sahib
wgcampbell
BipinP
charnnarong_d
pasha2k
milex
davidboothe
leclerc9
juergen.b
ieatskunk
Pinnaka Syam Babu
montechristo
UnWiNd
holysmokes99
Amnesyc
Only Title

Bodylojohn's Q&A profile

  • .NET Development How to force web services not to omit null fields in response SOAP message?

    Hi, We use web services to expose data manipulation services to another system developed with a different technology. Unfortunately, that system cannot handle missing fields in SOAP message (By default, SOAP messages generated in web services do not include fields with null value). Any one know how to force web services to generate the field tag even the value is null Thank you! You need to use [XmlElement(IsNullable=true)] on your reference type members to achieve what you want. Unfortunately if you are using attributes (members marked with [XmlAttribute]), there is nothing you can do: you would have to initialize them in the ctor. Thanks, Elena ...Show All

  • .NET Development uncatched bug

    a link to my problem http://www.codeguru.com/forum/showthread.php t=403931 please i need help ahmed921983 wrote: a link to my problem http://www.codeguru.com/forum/showthread.php t=403931 please i need help Are You OK You know you are posting a Java Server Pages connection of Microsoft Forums Didn't you get any other place to post that Best Regards, ...Show All

  • Windows Forms Losing label clicks

    Here is the context. I developed a ‘CustomButton’ class inheriting from UserControl in order to create buttons with transparent background image. This class has a label to hold the button text. In order to center the text with respect to the background image, I made the label the same size as the user control which is also the same size as the background image. Hence, when the user clicks on the custom button he really clicks on the label not on the user control. Here is the problem. If you click 50 times really quickly on a button, the 50 button clicks will be processed no problem but when you click 50 times really quickly on a label, some of the clicks are lost and not processed. Is there a way to tweak my label ...Show All

  • Visual Basic How to create a "Hardware Profile"

    I need to create a "Hardware Profile" of the machince running my app.  Specifically i need it to gather info about hardware pieces that aren't commonly upgraded such as the hard drive then combine that into a string and hash it for privacy since i only need it for comparision reasons.  Any help on how to get manufacturers, models numbers, and serial numbers from hardware is appriciated. Thank you.   EDIT: I made a small change to the search term i was using on MSN and may have found what i need WMI, but from what i could read i dodn't undsertand how to get the details I need, anyone know of any code showing implimentation of WMI for simular use as I want EDIT2: ok i did some more digging while waiting for a respo ...Show All

  • Visual Studio programmers stats

    Hello everyone, Is there a way in VSS for knowing how much lines of code a programmer has written in a period I would like that kind of stats Thanks in regards VSS does not collect those statistics. However, you could write a tool using the VSS API: http://msdn2.microsoft.com/zh-cn/library/microsoft.visualstudio.sourcesafe.interop.aspx ...Show All

  • Visual C++ Const, copy constructor, collection classes and My Issue !!

    #include <iostream.h> #include <vector> using namespace std; struct First { int data; First() { } First(First& first) { data = first.data; } First& operator=(First& first) { data = first.data; return *(this); } }; struct Second { First first; Second(){} Second(Second& second) { first = second.first; } Second& operator=(Second& second) { first = second.first; return *(this); } }; void main() { std::vector<Second> vec; Second sec; vec.push_back(sec); } The problem is solved when const argument is used copy constructor and operator=. I have two questions now: 1) I dont want to use copy constructor with const argument so can some ...Show All

  • Visual Studio Help not listed in TOC after install

    Hi All, I am finding a strange problem with the integration of help collection. In our case, help is installed using a VS setup program. This msi is being installed silently as part of another msi install. The help is registered correctly. The help collection is listed in the filter combobox for help-index, contents and search. But, say in contents, no contents from the help is listed. similarly for index, no entries from our help collection are listed. Search also doesn't work. I can get this working by removing our collection from VSCC and adding this again, I have to close and reopen IDE between and after these steps. Any idea how to resolve this so that the help collection works after install without any further ste ...Show All

  • Visual C# what is wrong in this function (convert from hex to string)

    public string Hex2String( string msg) { int i; string c; string correct=""; if (((msg.Length % 4) != 0)) { Response.Write("String bad length, It is not divided by 4"); return msg; } else { while ((msg.Length > 0)) { c = msg.Substring(0,4); i = Convert.ToInt16(c, 16); correct =correct+ ( char )i; msg = msg.Substring((msg.Length - (msg.Length - 4))); } return correct; } } this function is working perfectly when I put alone in simple application to convert but when I put it in another bigger web application it does not work ... it is always doing nothing , it returns the hexa as it is ...I do not know why !!!   help me pleas ...Show All

  • Windows Forms Thread Killing (That do some Extensive Work)

    Hi, I am intantiating thread that do more extensive work, i.e. executing query on FoxPro 2.6 through ODBCDataAdapter with VisualFoxPro driver. Since the query executing is Complex and navigating through 870000 records and taking a time about 2-2.5 minutes. Once the thread is started and goes for data retrival. Meanwhile if I try to close the form. The thread is still running. I have also added Code for killing thread in Closing event of form using Abort() method. But it does not kill the thread. Instead the threadstatus returned is AbortRequested. Please help me in this regard, as Closing event fire the thread should returned and leave the resources. Thanks MaqboolHussain wrote: In order to understand the whole scenario I'm add ...Show All

  • .NET Development DataTables and SQLDataAdapter events can trigger eachother causing additional hits to the Database

    I've noticed when doing inserts and updates to a SQL database from a DataTable, the SQLDataAdapter will AcceptChangesDuringUpdate and AcceptChangesDuringFill. This is a great feature, except when the data values come from the database such as a Primary key for a new row or default values when no value was specified by the end user, then this causes another RowChanged event to fire and the Update back to the database is called because the RowState is set to Modified when the DataTable Row is updated with the new values from SQL. I'd like to be able to halt notifications on a DataTable under certain circumstances such as while I'm executing an SQLDataAdapter.Fill(dt) or on some other unknown occasion... Is this currently possible or wi ...Show All

  • SQL Server Can't create table definition with primary key and SMO.

    I'm trying this code, but it doesn't work. Can you help me I show you the error and code...I don't understand what is the adverted "Primary element" in error messaje and I'm really astonished because one time the code works whitout index definition, but any way, it doesn't work now. Thanks, Asereware Context Info: Visual C# Express Edition. SQL Server 2005 Express & SQL Server 2000. The behavior is the same in both. Error message: <ERROR>------------------------------------------- Fuente:Vivenda.Testings Descripcion simple: Error de Crear para Tabla 'dbo.AsereTablaSMO1'. Detalle: Microsoft.SqlServer.Management.Smo.FailedOperationException: Error de Crear para Tabla 'dbo.AsereTablaSMO1'. -- ...Show All

  • Visual C# Talk to SQL database from C#

    Hi everyone, I have a database file that I want to access from C#. I want to be able to read from it, write to it and generally do SQLy things with it. I have used SQL before, so I am not to worried about the actual language bit. What I can't get to work is the interface between C# and my file. My code so far is: using System.Data.SqlClient; private void Connect_Click( object sender, EventArgs e) { string connect = "connection timeout=45" + ";" + "Data Source=|DataDirectory|\\CsTestDataBase.mdb" ; SqlConnection myConnection = new SqlConnection (connect); myConnection.Open(); SqlCommand myCommand = new SqlCommand ( "INSERT INTO Info (MyDate, FileNa ...Show All

  • Visual Studio Team System Existing projects do not show up after upgrading from Beta3 refresh to RTM

    Hi there, I did upgrade of my VSTS server from Beta3 refresh to RTM. After upgrade I don't see my existing projects in list to add from 'Add Existing Projects' from Team Explorer. Upgrade went fine.Please help, Thanks, Can someone from VSTS team reply please to my above issue May be I will explain once again... As a part of upgrade of my single server set up of Beta3 refresh to RTM version, I followed all the steps from upgrade guide, but in the end it did not show any of my existing projects from Team explorer's Add Existing projects menu as mentioned above. I also checked data in database and did not find any data in new upgrade database related to my existing projects. Then i tried restoring databases as ment ...Show All

  • Visual Basic Select runtime made controls

    Hello, I' have a problem: First I tell you what the aim is: I make a visualisation of a machine. On loading the visualisation form, i make new pictureboxes with the picture of (for example) a grey motor. In my main form, I make a connection with a PLC. Every 500ms I get an update from the status of the machine. The main form checks what elements had changed, and if they are used in this visualisation form, update them in this form. Now the problem is to select this exact picturebox, to change its picture to (for example) a green or red motor when the status is on or fault. Here the code on for making the new pictureboxes: Public Sub NewPicture( ByVal ID As Integer , ByVal Type As Integer , ByVal PositieX As Inte ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX Sprites: Is it possible to light them?

    Hi, Does anyone know if it is possible to apply Direct3D lights to sprites constructed using the Sprite helper class in Managed DirectX Since the class creates a quad for the sprite, I would have thought it possible to light the quad or rather the quad's texture. I have tried adding a light to my sprite scene and have tried doing this both before and after drawing the sprites. However, I cannot seem to get the lights to work. I have used the following code: // This is in my initialise section: m_Direct3DDevice.RenderState.Lighting = true; m_Direct3DDevice.RenderState.ZBufferEnable = true; // This is in my render loop: m_Direct3DDevice.Clear(Microsoft.DirectX.Direct3D.ClearFlags.Target, Color.Black, 1.0f, 0); m_Direct3DDevice.BeginScene(); ...Show All

©2008 Software Development Network