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

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

Kshama

Member List

Nima_Don
jasmine pham
jCarlisle
Prabu.
A.Carter
RichardR
S Wolfe
project2n5e0o1
cbpd86
Frens
Brad Smith
karimi
Sreekk
basedissonance
Keyth
xkx32
Andrew Hawkins
Dietz
Alex2200
rickyg
Only Title

Kshama's Q&A profile

  • Windows Forms Image problem(simple problem)

    Hey, I found this place online( http://www.vbdotnetheaven.com/UploadFile/scottlysle/WordProcessor09122006234320PM/WordProcessor.aspx ) that told you how to make a simple RichText program, so Ic hecked it out and it had somthing in it that I needed help with in my program, adding an image to the Rich Textbox... So this is my code from the code on that page translated into C#: private void imageToolStripMenuItem_Click( object sender, EventArgs e) { RtextboxUC thisrichtextbox = GetCurrentTextBox(); openFileDialog1.Title = ( "Insert Image" ); openFileDialog1.DefaultExt = ( "rtf" ); openFileDialog1.Filter = ( "Bitmap Files|*.bmp|JPEG Files|*.jpg|GIF Files|*.gif" ); openFileDialog ...Show All

  • .NET Development Unusual WriteXML Behaviour in C#

    Hi Guys I've got an unusual situation here. Am writing the contents of a dataset to XML with a Filestream, which works great. It writes the contents of each of the datatables contained within my dataset nicely. However, after deleting a row from one of my datatables and then writing the XML file, the XML file is written with an extra few lines after closing the root element, as follows: (DataSetConnection is the root element) <DataSetConnection> //entire contents of the Dataset and child datatables are written here successfully... <tblPerUserPass> <UserID>9</UserID> <Password>d/5++rArZQLqhfS1kc7yTQ==</Password> </tblPerUserPass> //the lines above are an example of the data written ...Show All

  • SQL Server Domain group logins failing on SQL 2k5 workgroup

    This question is regarding a brand new out-of-the-box SQL Server 2005 Workgroup Edition install. The old SQL Server 2000 server is working properly with regard to the issue we're having: We are using Windows Authentication, and have created SQL logins for about 40 different groups on our domain. We've given those logins the appropriate permissions on the databases they're supposed to be able to access. The SQL Server is not a domain controller, but is a member of the domain, and domain logins do work for Windows-login purposes on this box. The problem is that when users try to connect to the SQL server, they are denied access. An error 18456 is thrown, and logged in the Application event log stating "L ...Show All

  • Visual Studio Help needed in creating an installer for the guidance package which I've created

    Hi all, I'm trying to create an installer which'll help me in installing the guidance package project which i've created. The thing is when i run the installer, the guidance package project should be activated and get registered into the client machine. And once the installer is run, then the user should be able to find the project template generated by my guidance package. Can anyone who've worked in this area guide me and share their knowledge Thanks in advance, ThunderRock Hi, I have a similar problem. Let me explain what exactly is required for me. 1. I have created a Guidance Package 2. I know that it creates 3 project types and one among them is a setup package. But i really do not ...Show All

  • Visual Studio 2008 (Pre-release) EntitySet.Add

    It looks like EntitySet.Add doesn't work when the entities of the parent side of the association are pulled from the DB. Example : Author and Book. Their association is the most usual : <Table()>Public Class Author <Association(Name:="FK_BookAuthorID", OtherKey:="AuthorID")> _ Public bookSet As New EntitySet(Of Book) '... End Class <Table()>Public Class Book <Column(DbType:="int NULL")> Protected LastBookAuthorID As Nullable(Of Integer) '... snip the Author Property and the and _author storage... End Class In the case of a newly created author : Dim Author As New Author Dim Book As New Book 'snip inserting them in the datacontext's tables Author.bookSet.Add(Author) ...Show All

  • Visual C# Call unmanaged DLL in c#, how?

    For some reason, i have to call a DLL file written in other languages (probably is c++) in a c# windows application. But how to do that Still using DLLImport then following with the metheod header Any help will be great cheers danny danny1999 wrote: But how to do that Still using DLLImport then following with the metheod header Yes, that or use COM interop depending on what kind of DLL it is. ...Show All

  • Visual Basic Changing color

    Hi, I need to increment the colour in the following statement: - Dim plotnumber as byte = 1 Dim myCurve1 As LineItem = myPane.AddCurve("Plot " & plotnumber, list, Color.Red, SymbolType.None) Plotnumber = plotnumber + 1 You can ignore most of the statement as it relates to an add-on, but it uses the system colour function, to change the colour of a cure. Unlike a number (like the name of the curve where I have simply & plotnumber and incremented so each curve has a different name. but I have no idea how I would do this for the colour, does anybody have any ideas Regards, Andy highlight it in VB and press F1: it will tell you that it is a modulus operator (Divides ...Show All

  • Visual Studio 2008 (Pre-release) Func definition syntax to change?

    LINQ is pretty cool but when I see this: delegate TR Func<TR>(); delegate TR Func<T0, TR>(T0 a0); delegate TR Func<T0, T1, TR>(T0 a0, T1 a1); delegate TR Func<T0, T1, T2, TR>(T0 a0, T1 a1, T2 a2); delegate TR Func<T0, T1, T2, T3, TR>(T0 a0, T1 a1, T2 a2, T3 a3); It stands out pretty quickly that a slightly different language structure is needed here... this brute-force approach is trouble. What if I need a predicate with 13 parameters I've lost the convenience this syntax intends. One obvious alternative would have been the pre-existing EventHandler model, by using one EventArgs object the author overrides - in this case a QueryArgs object: delegate TR Func<TArgs, TR>(TArgs args) where TArgs : QueryArgs; ...Show All

  • Visual Studio Express Editions Deserialization

    This is very aggrevating!!! I have serialized three simple questions (textboxes) that is entered by the user. I cannot figure out how deserialize and have the three textboxes show what I have serialized My code (Visual Basic Express) on my main form is as follows: Imports System.Xml Imports System.Xml.Serialization Imports System.IO Public Class Form1 Private theCollectionOfPatients As New ArrayList() Private Sub DoSerializePatient( ByVal patientcollection As ArrayList) Dim theTypes(1) As Type theTypes(0) = GetType (ArrayList) theTypes(1) = GetType (Patient) Dim theSerializer As New XmlSerializer( GetType (ArrayList), theTypes) Dim theWriter As New FileStream ...Show All

  • Smart Device Development Disable Window Mobile screen orientation changes

    Is there anyway to disable the screen orientation changes on wm5 We had to port over an old .Net 2003 application to wm5 pocket PC and we don't want to change the layout of the screen, customer also agree to use only potrait view. but letting user switch the screen orientation to landscape will misleading the user where they will see a lot of garbage we hide on the right side of the screen. Someone from ms tell me to detect the orientation change and force it change back the orientation layout to portract if it is in landscape layout. I can detect the orientation changes, but what is the command to change the orientation Thank you Hi I also facing same problem, to get the idea I followed t ...Show All

  • Software Development for Windows Vista ActiveX Installer Service does not work

    I've created an ATL COM component, packaged to a CAB, the signing certificate is marked as trusted. I can successfully install the component, obviously through the UAC elevation dialog. But nonadmins need to install this component. So, I've installed the ActiveX Installer Service on a standalone machine, not in a domain member. The service is started. I setup the necessary policy to silently install the component. The policy is propagated. I can see the effect of the policy in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\ Microsoft\Windows\AxInstaller\ApprovedActiveXInstallSites Value Name: http://localhost Value Data: 2,1,0,0 Despite these efforts, Vista displays ...Show All

  • SQL Server Not trivial MDX - help needed

    Hi, I have a cube with: - a Version dimension {1,2,3,4} - a FY Time dimension {2001,2002,....2006} - a measure X (currrency) I want to show "Current Version USD" value on my report, which will be a value of the measure X associated with the latest version for a given year. Example: __________________FY_01__|__02__|__03__|__04__|__05__|__06 Version 1_____________100__|_50__|__10__|______|__980_|___ __ Version 2_____________200__|_____|______|______|______|__35_ Version 3_____________30___|__70_|______|__60__|______|___ __ Version 4__________________|_____|______|__80__|__30__|___ __ ----------------------------------------------------------------- Current Version USD___30___|__70_|__10__|__80__|__30___|_35 I'm trying to come up w ...Show All

  • Visual Studio Create a Template

    Hi, Is it possible to create a Item / Project Template using GAT If yes, could anyone please throw some light on how to go about achieving the same. Thanks, Lahiri   Hi ALahiri, Not sure about what you're looking for. If you are looking to use GAT to unfold templates, yes, project and item templates are supported and if you're looking to create project and item templates using GAT that is possible too. Please provide some more detail in order to better assist you, thanks, -Victor. ...Show All

  • SharePoint Products and Technologies can't create workflow - sharepoint designer 2007

    I'm testing out WSS3 & sharepoint designer. I want to create some custom workflows, but everytime I try to create on I get an error box "Failed to load the workflow". Any guesses as to what the problem is and how to fix it Hey, I've been doing caught by this and found a guy who sussed a good bit out here http://blogs.informationhub.com/jnadrowski/archive/2007/01/12/8128.aspx then I found out some more by accident that fixed my particular problem. basically, you get this error if there are any problems with instantiating the activity or accessing the dependencyproperties. Shame it's not a bit more meaningful, or even logged anywhere. It's just a rubbish error that means that som ...Show All

  • Visual Studio Tools for Office How to Configure OfficeVSTOBenefitsRegistrationSystem.....

    Hi... I had downloaded the Application (Benefits Registration System) from http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOBenefitsRegistration.asp While opening the solution file I’m getting the following error…. One or more projects in the solution could not be loaded for the following reason(s) The application for the project is not installed. The projects will be labeled as unavailable in the solution explorer. Expand the project node to show the reason the project could not be loaded. And the Main project (BenefitForm) was not included in the solution... Can any one please tell me how to solve this problem Tha ...Show All

©2008 Software Development Network