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

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

kbradl1

Member List

mwlew
Bill Martin
Karlo
gauls
SelTel
Noral
robinjam
komomomo
DRoden
KentaroM
BinuJ
Brian Kramer
Kamii47
GrandpaB
N B
dave2000
Bill Gates II
morphius1
CharlieRussell
AlexU
Only Title

kbradl1's Q&A profile

  • Visual C# System.Diagnostics

    I need to get custom performance counters. I can get them using -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PerformanceCounterCategory cat = new PerformanceCounterCategory ("CATEGORY_NAME"); PerformanceCounter [] pc = cat.GetCounters(); foreach ( PerformanceCounter p in pc){ CounterSample cs = p.NextSample(); TreeNode tn = new TreeNode (p.CounterName); TreeNode ttype = new TreeNode ( "Counter Typee : " + p.CounterType.ToString()); TreeNode tValue = new TreeNode ( "RawValue : " + p.RawValue.ToString()); TreeNode tNext = n ...Show All

  • .NET Development System.Net.WebException: The operation has timed-out.

    I have a very simple web service built with Java and deploy on Websphere server. The WS just receive a string array and return an integer value. I have another .Net client which has to call this WS, the client is deployed on a windows 2003 based Citrix MPS server, and all users has to logon to this server in order to use the client. The MPS server and websphere server is on the same network, there is no network problem between them. What I have spent two months to solve is that some users can call the WS through the .Net client perfectly, but some of users always fail to do that with this exception: System.Net.WebException: The operation has timed-out. at System.Net.HttpWebRequest.GetRequestStream() ...Show All

  • Visual Studio Tools for Office Change customization for xls

    I'm changing assembly following way: if (ServerDocument.IsCustomized(document)) { ServerDocument.RemoveCustomization(document); } ServerDocument.AddCustomization( document, assemblyName, null, applicationVersion, false); And save. In the next time IsCustomized don't return true for the same document, but VSTO is available in this. Maybe it is a problem in the deploymentManifestPath ...Show All

  • Visual Studio 2008 (Pre-release) Nonserializable base class

    I have run into an interesting scenario and was seeking some guidance. Situation: A base class (used for persistence to a database) is inherited throughout a large framework. The base class itself is not serializable (nothing in it actually needs to be). However, WCF wants the base class marked as Serializable or with a DataContract. The base class is very complex and is part of a third-party library; thus, can't be modified at all. Is there a way to tell WCF to ignore the base class and simply serialize the members marked in the class(s) that inherited from the base class Thanks, Trevor You can try using the OnSerializing/OnDeserializing events to provide serialization for the base clas ...Show All

  • Windows Forms DataView

    onload() event DataGridView1.DataSource = ds.Tables(0).DefaultView dv = New DataView(ds.Tables(0)) button1.click() event dv.RowFilter = "Address1 LIKE '" & txt4.Text & "*'" DataGridView1.DataSource = dv button2 click() event dv.RowFilter = "CustomerName LIKE '" & txt2.Text & "*'" DataGridView1.DataSource = dv DataView is automatically applies rowfilter to already filtered data Now I want to display the combined Row filter applied, like "Address1 LIKE '" & txt4.Text & "CustomerName LIKE '" & txt2.Text but we dont know, when the user clicks, what button how can i do it ...Show All

  • SQL Server syscomments table text field does not allow more than 8060 chars

    Hello, I have a table in SQL Server 2000 which has few triggers. When I try to update a record in that table, I get following message: Warning: The table '[TABLE_NAME]' has been created but its maximum row size (17275) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes. where the data I am updating is well less than the field limit. The triggers are stored in syscomments table and when I dropped these triggers, the update statements were executed without this message. Is there anyway I can change the data type of field text in syscomments from nvarchar to ntext Thanks Din Hi Din, You absolutely never ...Show All

  • SQL Server System.NotSupportedException: Different group expressions cannot reference the same field or the same entity

    When running a report with a calculated field from the Report Builder I get the follwing error: System.NotSupportedException: Different group expressions cannot reference the same field or the same entity Any idea what's the reason for this error Thanks. Yes it append to me all the time , a have a new name for the tool , Report BUG because it generat errors at a faster rate then you can generate a report that run ...Show All

  • Visual Basic Data in Dataset to txt file

    Hello, I have data in a dataset, which I would like to save to a text file. This data will be used again in another form upon user's request. How can I do this Or, are there other options Hi I'd recommend you read the xml file into a dataset using it's ReadXML method and then bind the datagridview to the relevant part of it. Just a quick point of note, you can simply pass the WriteXML the filename and let it handle the streaming for you. eg WriteXML(str_FileName) Richard ...Show All

  • .NET Development No coherence with the number of weeks per year. GetWeekOfYear()

    The number of weeks per year depends of the year, the result is either 52 or 53 To get the number of weeks in a year, I use the Calendar.GetWeekOfYear() method. Here is the code I wrote thanks to a MSDN article: // Gets the Calendar instance associated with a CultureInfo. CultureInfo myCI = new CultureInfo ( "fr-FR" ); Calendar myCal = myCI.Calendar; // Gets the DTFI properties required by GetWeekOfYear. CalendarWeekRule myCWR = CalendarWeekRule .FirstFullWeek; DayOfWeek myFirstDOW = myCI.DateTimeFormat.FirstDayOfWeek; DateTime LastDay = new System. DateTime (year, 12, 31); return myCal.GetWeekOfYear(LastDay, myCWR, myFirstDOW); He ...Show All

  • Community Chat Grayson's Live Space

    Check out my live spaces at http://graysonls.spaces.live.com ! My favorite theme is the circuit board and I made my space to be black with green titlebar like Blog, Photo, etc. There's my blog that you can read, but it's kinda narrow and very long and its options and UI customizations, like providing a short version of my article in my spaces and providing a full version of my article in a different page (passing an article number via URL to a webpage to get the full article from a selected article), etc. It could also help if Windows Live Spaces Team could allow me to add tabs and manage sections of the blogs like one tab for homepage, one for XNA/Game Developers, one for tech-savvy users, etc. I hope you'll like it and that you will b ...Show All

  • Visual C++ C standard applications in Visual Studio 2005

    Hello. Is it possible to develop Ansi C applications in Visual Studio .Net 2005 using standard libraries like <stdio.h>, <conio.h> etc. If yes, how Thanks'. OClaudiu wrote: So, if I create a file with .C extension instead the .CPP, it's not necesarry to use /TC command. No, the default setting is /TP, and as Brian points out, this will have the compiler ignore the file extension. ...Show All

  • Visual Basic Question about how to close whole program

    Hey guys i have another stupid question 2 ask, apologise for my ignorace once again as this myt seem like a really stupid question. I have multiple forms for my program. I was wondering how i would close the whole program in the third form ( closing all forms) Me.Dispose() This only closes the form that i put this code in. These are just the final touches to my project for school. Would appreciate it if you guys would reply me! THANK YOU!!! :D You guys have been really helpful to me all along. that is correct but 99% of the time it will exit. The times it will not exit is if there are things like threading happening in the background and its still running - once that is complete it will then ...Show All

  • Community Chat .NET Web Browser Effort - First Preview!

    Hi Guys, A couple of months ago I started an opensource effort to create a Web Browser better than IE7 in .NET. So far its going GREAT, with a team of 3 including me. As of now, source code is not offered - it will be once I get it to a Beta 2 state. Also, if anyone would like to join the project please send an email to netwebbrowser@gmail.com or add mateuszrajca@msn.com to your MSN/Live Messenger contacts list(email is preferred) Here are some stuff you can help in: Write code(C#), fix bugs in code(C#), make sourcefourge web site, report bugs, optimize code(C#), make app more responsive, make installer, graphics (icons logos) and whatever else you can come up with! Download Now Preview 1! ~Matt ...Show All

  • Visual C# Accessing Objects in Form1 from form2

    Hi I'm starting out with C# and am building a simple application to play around with C# code. I have a main form (form1) in which I have declared and instantiated some Objects. Form1 then declares and shows a second form (form2). I want form2 to call methods and get and set properties in my declared objects from form1. ie to change their internal state so when I go back to form1 I can access the objects new internal values (with appropiate properties etc). //example dice class public class dice { private int currentSide; public CurrentSide { get{return currentSide} set{currentSide = value} } } //Form1 class public class Form1 : Form { public Dice D1; public For ...Show All

  • Visual Studio 2008 (Pre-release) Error 403 when browsing to Service.svc file

    I am trying to run one of the wcf samples. I am deploying the server to IIS 6 and keep getting Http Error 403 Forbidden when I try to browse to the service.svc file. The directory and files appear to have the right permissions set. I added a Default.aspx page to the same directory and it works fine. I changed to Basic authentication and the Service.svc file returns the 403 error before I am even prompted to login. The Default.aspx page prompts me to login and then displays correctly. I had the sample working fine on my Windows XP workstation it just won't run on Windows Server 2003. Does anyone know what else I can check to get this working Thanks, Matthew Try to open the service in the browser ...Show All

©2008 Software Development Network