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

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

gafferuk

Member List

vr3h
Kidsauth
SalvaPatuel
Martin123
rajesh_batchu
Polina159216
Prabagarane
AlexBB
vijil
Johan Andersson
Tigers21
Arthropleura
bslim
François Paradis
aybe
Moim Hossain
AamirKhurshid
MMDG
Pooja Katiyar
gauls
Only Title

gafferuk's Q&A profile

  • SQL Server Transactional Replication - Undistributed commands

    Hello, I have a publisher set up to transactionally replicate just one table which has about 19000 rows. The snapshot agent finished and everything was OK the first day. Now (day 2) the replication monitor estimates that latency to the subscriber = 10 hours and undistributed commands>600,000 and growing each minute. How could this be when data is only inserted into this table and it has <20,000 records Please advise...thanks! Some things I'd look at for a clue: 1) What kind of errors do you see in the SQL log or in the application log that might be causing this 2) Is the subscriber on a different server Have any permission changes occurred with that server 3) Do you see anything that m ...Show All

  • Visual C++ Confusion with header includes

    Hey guy, Well I have recently just been exploring Visual Cpp and im sort of catching on but theres still a slight problem I run into with header includes. When I make a window form application I never now what headers to put in my programs for certain stuff. All I know is that for console applications you need the iostream include. Is there a list of header includes around here what explains the functions and procedures held in each one Thanks Keen. Hi Keen I would suggest that you get a very cool book called C++ Primer Plus, Fifth Edition by Stephen Prata. I am like you a C++ n00b but I have been finding this book of great help. It talks you through all C++ fundamentals and really makes sure you u ...Show All

  • Visual C# What is "\n"? Any difference from "\r"?

    I know "\r" indicates a sentence break. Then what about "\n" HtmlText = HtmlText.Replace( "\r\n" , "\r" ); HtmlText = HtmlText.Replace( "\n" , "\r" ); HtmlText = HtmlText.Replace( "\r\r" , "<p>" ); HtmlText = HtmlText.Replace( "\r" , "<br>" ); In the above line, since "\r" is to changed into "<br>", why should not directly change "\n" and "\r\n"directly into "<br>" http://west-wind.com/weblog/posts/1499.aspx The 1st statement replaces a DOS end-of-line to a \r, the 2nd replaces a Unix end-of-line to a ...Show All

  • Windows Forms DataGridView cell ReadOnly property not working

    Hi, I have added DataGridView runtime, where i am attaching dataset to this dgv of 3 columns (Check,Id,Text) with suppose three rows in it. and i want to make ReadOnly to 3 cells of Text Column only. user can add new row in it, but will not be able to edit rows. Thanks in advance. tats Hi Wang Chi, I dont want to set whole column as ReadOnly. But only those cells of that column, which appears in dataset attached to it. User should be able to add new data into DataGridView at the end only. i.e. which ever data is bound should be read only, and newly entered data should not be read only tats ...Show All

  • Visual Studio 2008 (Pre-release) How to make Chat Room sample work with latest CTP?

    I've installed latest .Net FX CTP, downloaded ChatRoom sample, but it shows several build errors and does not work after fixing them. Also, I can't generate proxy, can anybody help with this Thanks. I am able to make it work on June CTP,please send me email to madhup@microsoft.com,I will send you modified sample -Thank you Madhu ...Show All

  • .NET Development .Net 3 apps require .net 2?

    If in visual studio I compile an app to .net 3 and dont use any of the new features do I require .net 3 on a server or .net 2 Thanks Ross For more questions about how the .NET Framework interacts with .NET Framework 2.0 please reference the .NET Framework 3.0 deployment guide, http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/netfx30.asp under How .NET Framework 3.0 Relates to .NET Framework 2.0 and Earlier . All of the deployment guides can be found under the sticky announcement: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=888269&SiteID=1 . ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNAInvaders Released with source

    My first release of XNAInvaders is available. Its currently binary only (source will be released when its a bit more completed). Anyway more details and download can be found here. Will be interested in any comments/feedback Cheers Andy Well, the time has come to release XNAInvaders and as promised this includes full source code. For more details and links go to here (links have been checked and are working :) Cheers Andy ...Show All

  • Visual Basic Visual Basic Sendmail function.

    Visual Basic Sendmail function. I want to amend a script so that it sends .xls attachments by e-mail to two or more recipients. Here's the version that sends to only one: ActiveWorkbook.SendMail Recipients:="Ken.Tun@xyz.co.uk", Subject:="Insert as required", ReturnReceipt:=False But I also want to send to e.g. "Stan.More@abc.co.uk" According to VB Help it is possible:- "Recipients: Required Variant. Specifies the name of the recipient as text, or as an array of text strings if there are multiple recipients. At least one recipient must be specified, and all recipients are added as To recipients", but they don't give an example of multiple recipients and try as I might I can't get it to work even thoug ...Show All

  • Visual Studio same problem

    A requirement of my reporting system that I'm developing is that it be possible to localize the reports.  They don't need to be localized dynamically -- we can provide different RDL files for each language and report combination. When I put japanese characters into the RDL file I get mixed results. When I export to Excel, it exports fine (except for the chart labels). When I export to PDF, I get the following error: A call to PInvoke function 'Microsoft.ReportViewer.Common!Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF+WindowsGDIWrapper::GetGlyphIndicesW' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention an ...Show All

  • Visual Basic How To Write Functions that return multiple values

    I need help writing the header for a function that returns more than one values and diff types... for example this one returns a single value as Boolean Private Fucntion Truth(ByVal var, ByVal var2) as Boolean End Function ... Is Truth false Thanks. Example Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim xret As ArrayList xret = Foo(1, "test") For Each i As Object In xret MsgBox(i) Next End Sub Function Foo(ByVal a As Integer, ByVal b As String) As ArrayList Dim x As New ArrayList x.Add("test") x.Add(1) x.Add(False) ...Show All

  • .NET Development XmlAttributeOverrides and renaming elements

    Hi, I'm using xml serialization to create an xml file, however I need to change some of the names of the xml elements that will be generated (actually I only need to make them all uppercase, don't ask!). I can't change the class that is to be serialized as it has been autogenerated, using xsd.exe, from an xsd I also cannot change. XmlAttributeOverrides appears to be the answer and I have changed most of the elements, however, there are a few elements that I'm having trouble changing. I would love to post some of my own code here but I'm struggling to condense it into something manageable, so I'd like to use the example on http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlarrayattribute.aspx . In this example I c ...Show All

  • Visual Studio 2008 (Pre-release) Items.SourceCollection is not flushed when binding is removed/cleared.

    I am calling ClearAllBindings and then Setting a binding to a new collection, but the old collection data is hanging around in the ItemsControl. 2 Problems 1) After I call UpdateTarget, the data from the new binding/collection is present, but the Items.SourceCollection still contains the contents of the initial collection. I would expect not to have to manually manage the contents of an ItemsControl from the context of a source object. DataBinding should take care of these details right also 2) http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=765273&SiteID=1 I believe this was related to the other issue with INotifyCollectionChanged being ignored     http://forums.microsoft.com/MSDN ...Show All

  • Smart Device Development How to save and re-use listbox values?

    I need to understand how to best save listbox values when I leave a form, and later reload those values into the listbox when I go back into that form. Note that my program is running in a CE environment, so I need to be careful with resources. I have a text box (txtScanBale) where the user keys or scans in numbers, one at a time, and as he does, I save each entry in a listbox (lstBales), with the most recent entry at the top, using this code: Me .lstBales.Items.Insert(0, Me .txtScanBale.Text) If Me .lstBales.Items.Count > 200 Then Me .lstBales.Items.RemoveAt(200) End If And, as shown, I limit it to the 200 most recent entries. But when I leave the form, the listbox values all go away (as far as I know), beca ...Show All

  • Internet Explorer Development IE7 Style "Explorer bar"

    In Internet Explorer 7, is there a way to make an explorer bar that looks more like the Favorites Center that drops down Is this a specific CATID for it to do this ...Show All

  • Visual C# how to use "foreach" to get values from checkboxlist?

    here is my code↓↓↓ CheckBoxList chklist = (CheckBoxList)FormView1.FindControl("chkList"); CheckBox chkadd = (CheckBox)FormView1.FindControl("chkAdd"); CheckBox chkedit = (CheckBox)FormView1.FindControl("chkEdit"); CheckBox chkdel = (CheckBox)FormView1.FindControl("chkDel"); CheckBox chkquery = (CheckBox)FormView1.FindControl("chkQuery"); string permission; foreach ( CheckBoxList item in chklist) { if (item.SelectedValue.ToString()) { permission += item.SelectedValue +","; } } I would like to use these code to get values from a checkbox list which user select ... but is doesn't work can you let me know ...Show All

©2008 Software Development Network