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

Software Development Network >> Pavan Battula's Q&A profile

Pavan Battula

Member List

Gianluca Colucci
kennm
DBAJDS
Orenbutn
billb59
mmmmBeeeer
Özge Çolak
bake084
Snowrider
Gunnar Adler
nzmike
exal
kastanienreis
vijil
Jon500
Jeronimo215697
dotnetbee
Dinesh Kokate
CodeDjinn
CuriousG
Only Title

Pavan Battula's Q&A profile

  • Visual Studio 2008 (Pre-release) TabControl and XmlDataProvider

    I have templated TabControl and want to display in content part of it the value of data attribute of Item element from XmlDataProvider. But it seems that something wrong in my sintax. < UserControl.Resources > < XmlDataProvider x:Key = " TabSource " XPath = " TabControlItems " > < x:XData > < TabControlItems xmlns = "" > < Item name = "Tab 1 " data="TabData1" /> </ TabControlItems > </ x:XData > </ XmlDataProvider > < ControlTemplate x:Key = " TabControlTemplate " TargetType = " {x:Type TabControl} " > .... < ContentPresenter ...Show All

  • Windows Forms Modify ConnectionString

    Hi, I searched, but couldn't find an answer. Is it possible to modify a connection string at runtime This code throws an exception, not sure how to fix. string connectionString = this .txtConnectionString.Text; ConnectionStringSettingsCollection col = ConfigurationManager .ConnectionStrings; ConnectionStringSettings section = col[ "MyConnection" ]; section.ConnectionString = connectionString; The last line throws this: System.Configuration.ConfigurationErrorsException was unhandled Message="The configuration is read only." Is this something I can configure I have a requirement to allow certain users the ability to change the connections string, rather than forcing them to modify the app. ...Show All

  • Smart Device Development write to file...CFile?

    Hi folks. Simple problem and I've searched a lot and just can't seem to get it to work: I need to write null delimited strings to a simple text file on a smart device. I've tried CFile and CStdioFile and can't get it to work (I think because I can't figure out a way to convert a CString to a const char *). I tried this but I get a bunch of weird boxes at the end of and before every line of text: CString thisString = "Hello there"; writeToFile = thisString + _T( "\r\n" ); csfWrite.SeekToEnd(); csfWrite.WriteString(writeToFile); I just read that apparently CStdioFile is not supported in smart device applications... Is that true Can someone please tell/show me a way to write to a text file Thanx in ...Show All

  • Visual C# Regarding Properties

    Hi, I have a problem can any one help me ASAP I have developed a property which is of type collection, it works fine if i access that property with coding, when i try to access the property at design time it shows me not marked as Serializable if i add this attribute it is asking for DeSerialize. How to Serialize and DeSerialize the Property with collections, I have created a class that class I am using as Collection in my usercontrol, class code as below : File Name : DGVDataSource.cs   using System; using System.Collections.Generic; using System.ComponentModel.Design.Serialization; using System.Text; namespace IrsGrid { public class DGVDataSource { private DGVColumnType _dg ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Please Post First Impressions Here.

    For the working stiff's like myself, could those of you who have successfully downloaded GSE post you first impressions here. Thanks. can you use it with vs 2005 the setup says, that i dont have the express edition.. but i do have vs 2005. ...Show All

  • SQL Server Newb question

    If I am using Ado.Net from a .Net Class library hosted outside SqlServer to do Sends and Receives do I have to use anything else other than queues The reason I am asking is because I already have an abstraction layer for a couple of our queueing systems and I was hoping to put SSB in there as well but the abstraction layers' primitive is the Queue not Conversation/Dialog/Service, etc. Thanks Costas Uncomment the begin dialog lines. Use the @service parameter as the to service in that statement. That will allow you to begin a dialog and send a message in your stored proc. This proc can be called from ADO.Net. ...Show All

  • Visual Basic Problem with “data bound ComboBox” with “Visual Basic 2005”

    It seems that there is a problem with “data bound ComboBox” with “Visual Basic 2005” Please try this… (I used SQL 2005 Express for database.) Create a new Windows Application. Add a new database named “ComputerUsers.mdf” In the DataSource Configuration Wizard, click cancel (since there’s no table yet) In Server Explorer, create two tables Users and UserTypes with the following definitions: Users table FirstName varchar(50) notnull LastName varchar(50) notnull UserType int notnull UserTypes table UserTypeId int notnull primaryKey UserTypeName varchar(50) notnull In th ...Show All

  • Visual Basic How to Read/Write to a COMM port from an ASP.NET page

    Hi, I have an older VB6 application which uses a scanner on the COMM port and does the following... (I have been tasked with re-writing it in ASP.NET (VB)... OLD APPLICATION... 1. reads a Scanner and loads the data onto the PC 2. FTP's the data file to a SQL Server (where a small app picks it up and processes it) 3. Deletes the data from the scanner I have been tasked in converting this to an ASP.NET 2.0 broweser based application. I would like it to follow these steps... NEW VB.NET Browser/Application... 1. Load ASP pages from server 2. Read local PC's COMM port to access the scanner... 3. Transfer the data from the scanner directly to the SQL server, process the data... display message on browser OR s ...Show All

  • Visual Studio Express Editions Stream data revisited.

    Hello all, I would like to ask for some opinions on the best way to do something and possibly the solution. I am beginning to think that my "programming logic" is off when it comes to figuring out how to do something and I would like some advice on that as well. I will use my current project as a case for this. I need to stream data into an application, run calculations or manipulation queries against the data and output the data into a Data Grid View (eventually I will use C# to access Excel and create a custom report). My first idea was to stream the data into a list and from the list into a DataTable then to the Data Grid View. I was advised to stream it directly into the DataTable. Below I have pasted the code for the main form and th ...Show All

  • Visual Studio Tools for Office How do I create a table title in PowerPoint Slide Item.

    I have 4 items in a powerpoint slide copied from Excell range. I managed to set a charttitle for the chart items in the slide but I do have a table created from Excel.Name. How do i create a header/title for a table created from Excel. Name ( se CopyTable method as i could do in Excel.Chart(se method CopyChart) Any Ideas private void CopyTable(SlideItem item) { Excel.Name name; name = wb.Names.Item("chart item name",Constants.missing, Constants.missing) as Excel.Name; name.RefersToRange.CopyPicture(Excel.XlPictureAppearance.xlPrinter,Excel.XlCopyPictureFormat.xlPicture); Marshal.ReleaseComObject(name); name=null; } private void CopyChart(string chartName,string chartTitle) { (wb.Charts[c ...Show All

  • SQL Server Document Map

    Problems with Document Map creating a side scroll to get to Up/Down Scroll for the Map itself. There are two scroll bars once you side scroll over in the map window. Anyone seen this or know how to fix Or Anyone know how to change any of the properties on the Document Map or map window Thanks!!!!! Hi, I wondered if you ever got a resolution on this. I have a similar problem that once I deploy the report the scroll bar for the document map does not let you scroll to the document map. It only allows you to scroll through what initially fits when the report is first displayed. Before it was deployed, when the report was previewed, the scrolling worked fine... it was only after it was deployed that I ...Show All

  • Visual Basic Hiding the cursor when not on a form

    I have tried the following for hiding the cursor from the desktop: showcursor(false) or system.windows.forms.cursor.hide() both of these only hide the cursor while it is over the form that I am developing. I would like to know if there is a way to hide a the cursor while you are not on the form. Thanks, Tim Tim There is a way to do this but I would like to know why you are trying to do it before suggesting a solution. Can you provide a little more information please Richard ...Show All

  • Visual Studio 2008 (Pre-release) Enumerations over indigo

    I am getting the following error on a call I'm making over indigo from an asp client(and non asp client also) Enum value '258' is invalid for type 'ImageInfoOptions' and cannot be serialized. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute. This is my Indigo Contract: [OperationContract] Result GetImage(int imageId, string userName, ImageInfoOptions imageInfoOptionsEnum); This is my enumeration declaration: public enum ImageInfoOptions : short { a = 0, b = 1, c = 2, d = 4, e = 8, f = 16, g = 32, h = 64, i = 128, j = 256 } And this is my call from the client: GetImage(1, "Test", ...Show All

  • Windows Forms Saving Data from a datagrid to a dataset

    I have inserted records from another database table, into the clients table. All records are visible in the datagrid component after the insert. I can edit them in the grid and changes are saved. If I close the application and reopen it the data has not been saved to the dataset. What am I doing wrong Thank you very much Jon Stroh if (RBFirstSync.Checked) //Radiobutton { this .clientsTableAdapter.DeleteQuery(); this .horseTableAdapter.DeleteQuery(); this .proceduresTableAdapter.DeleteQuery(); DataSet1 . CUSTDataTable dt = new DataSet1 . CUSTDataTable (); DataSet1TableAdapters. CUSTTableAdapter ta = new FBWinMobileSync.DataSet1TableAdapters. CUSTTableAdapter (); dataSet1.EnforceConstraints = ...Show All

  • Visual Studio Previewing a sample report at runtime?

    Hi there, I am writing a windows forms app (C#, VS.NET 2005) that includes a few reports. I want to be able to provide something similar to Microsoft Small Business Accounting which shows a 'sample' report as an image when the user clicks on different reports in a list. I considered exporting a copy of my report to HTML which I could then display in my app, but my report only has PDF, rtf, MS Word and Excel options for exporting. I also wondered if I could access the image preview generated when you check the 'save image preview' option for the crystal reports, but I cannot find any information on accessing this. Has anyone got any suggestions Many thanks in advance. James ...Show All

©2008 Software Development Network