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

Software Development Network >> Sweta Jha's Q&A profile

Sweta Jha

Member List

vipix
garretth
texan149142
mr4100
Zhao_Gil
Constantijn Enders
Deedhun
Nyasha
PedroCGD
mthierauf
GinaK
IGiberson
Rama Boya
A.Kahn
PublicError
Luis Esteban Valencia Muñoz
ck75mk
PhilAustin
bobby_dazzler
Monish Nagisetty
Only Title

Sweta Jha's Q&A profile

  • Windows Forms openFileDialog filename problem

       In my application, Users can uplaod picture. Therefore I used openfileDialog.  And also in my database I have two fields imageName and imageLocaiton. When I use openFileDialog I get the imageLocation and sent to the database. But I can't get imageName.  Does anybody know that how i can get imageName     private void Form6_Load( object sender, EventArgs e) { this .uploadbindingSource.EndEdit(); this .uploadbindingSource.AllowNew = true ; this .uploadbindingSource.AddNew(); } private void browse_Click( object sender, EventArgs e) { this .openFileDialog1.Filter = "JPG files(*.jpg)|*.jpg|All files(*.*)|*.*" ; this .openFileDialog1. ...Show All

  • .NET Development Multiline Option appears not to work.

    I have created a connect issue entitled Regular Expression (Regex) Option Multiline does not behave as advertised . Am I wrong If I am not please view the issue and vote if you feel it is...thanks. Sergei Z wrote: i've got some help for this at http://regexadvice.com/forums/27767/ShowThread.aspx#27767 u might want to look at the thread Below in #1/#2 is what was determined by the above link ...Show All

  • SQL Server Get Sql Documenter

    I need to see a total outline of my relationships on my sql database. Something besides database diagram. I need something like Microsoft access Documenter. I want to be able to print out a complete definition of the relationships. HEllllllllllllPPPPPPPPPP!!!!!!!! You could try SchemaToDoc ( http://www.schematodoc.com ). It creates a Word document that includes info about your database - primary keys, fields (type, size, nullable, defaults), indexes, check constraints, foreign keys, triggers, views, stored procedures, and extended properties. It also includes an interface that lets you annotate your tables and fields. ...Show All

  • Visual C++ Displaying MessageBox in OnInitDialog handler

    When i try to put a messagebox in the OnInitDialog Handler using VS2005 the dialogs modal property is removed. BOOL CDlg::OnInitDialog() { CDialog::OnInitDialog(); AfxMessageBox("hi"); //This message box removes the dialog's modal property and it default properties. return TRUE; } CMyView::OnShowDialog() { CDlg dlg; dlg.DoModal(); } Is this a bug or am i wrong somewhere I dont think you are wrong here. Its the internal implementation of MFC. You can use MessageBox instead of AfxMessageBox. This should not cause any problem. Regards ...Show All

  • Visual Studio Express Editions Having Webbrowser functions to specify tabs?

    I am currently having some trouple getting some of the standard webbrowser functions to work properly when using a tab system. I have it setup so that you can create new tabs with a button click with a webbrowser in each one, but I can't figure out how to get the "Back", "Foward", etc. to work for the visible tab. I am also having trouble getting the address bar to work properly. Can someone please show me how to do it Here is my code so far: Public Class Form1 Public Class WebBrowserTabPage Inherits System.Windows.Forms.TabPage Private WithEvents WebBrowser As WebBrowser Public Event Navigating(ByVal sender As Object, ByVal e As EventArgs) Public Event Navigated(ByVal sender As Object, ByVal e As EventArgs) Public Sub New() ...Show All

  • .NET Development Help with TripleDES and RC2 cryptography.

    I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All

  • Commerce Server Making Commerce Site multilingual

    Hi, I'd like to make my site multilingual. I already use localized text resources for my asp Pages and that works correctly. But now if i open a product detail page i still get the data for the product of the default langugage. What do I have to do so that the correct data gets loaded Another problem is, that i use an extern DLL like the CommeceComponents of the StarterSite. What can I do, that this DLL loads the Correct Resources, Thanks for your help hi, When you get your catalog you should use this function: GetCatalog(catalogname,language); instead: GetCatalog(catalogname); - this always returns catalog in default language. Don't know how the startersite is build. Currently I'm working on my custom c ...Show All

  • Visual Studio 2008 (Pre-release) Generate DataContract with SVCUTIL

    I'm trying to generate a data contract from an XSD. I run "svcutil /dconly c:\projects\schema.xsd /language:CS /out:c:\projects\class.cs" and I get the following error: cannot read <schema file name>. cannot load file <schema name> as an assembly. check the fusion logs for more information. could not load file or assembly 'file...' or one or more of its dependancies. The module was expected to contain an assembly manifest" This is error is confusing to me because I cannot see anything that will make svcutil think this should be an assembly. It runs fine with the same command pointing to another xsd; I only get this error with this particular xsd. Any ideas xsd pasted below... < xml version="1.0&quo ...Show All

  • Visual Studio Express Editions SMS Api

    hi.. im working on a project by which im planning on sending sms using a sony ericsson t610 connected via a com port. i'm looking for a free a free library that supports these api's hello Re: SMS Api Please note that visual c++ express editions forum is dedicated to vc express questions, questions like this is outside the scope of this forum. I'd recommend you to search on the internet or use a open discuss group to have further discussion. thanks rico ...Show All

  • SQL Server Print Preview Button is click on Defaul

    i am viewing the report on report viewer, i want that report preview button is clicked when report is opened in report viewer which property of viewer should be true, or you can tell me the which code is required ...Show All

  • Visual Studio Team System Save default constraints in a separate file

    Hi I have just installed the VS TS DB Pro and it seems really nice to me, however I would like to know if its possible (or will be in comming releases) to save the default constraints in a different file from the table deffinition. Currently each time we have a new release from our software for upgrading the databases of previous versions we drop all objects except from the tables (to save the user's data), and then we create all the objects again: constraints, indexes, stores procedures, etc. It will be very useful to us to have the constraints in a different file, so that when we upgrade a database we use all the scripts except for the table defintions. Thanks Hi Jegar, you a ...Show All

  • Visual C++ CString pointer compatibility with const char* in VS 2005

    Hi, I used a CString variable to instantiate a "const char* " argument of a C++ function. The VS 2005 IDE sent out an error C2664: 'xxx' : cannot convert parameter 1 from 'CString' to 'const char *' message. Does anybody know how to deal with the problem Thanks, Jason LPCTSTR et al are probably best treated as typedefs for Win32 APIs, and not used in your own code. This "hungarian notion" for typedefs doesn't buy one very much other than to introduce "two different ways to say the same thing" in your code. For the original poster, I was suggesting a general replacement of char with TCHAR (using * and const as usual), so that assignments from CString internal buffer ...Show All

  • Visual Studio Express Editions isolated reg free COM in c++ express edition

    Hi, ive been experimenting using a freeware ocx control in winforms in c++ and c# visual studio 2005 express editions I can easily produce a reg-free com application in c#, that will run on an XP computer that does not have the ocx control registered, using the isolated property of the refferenced ocx controls. But importing the same control into winforms c++, there is no isolated property for the referenced ocx control and i can find no way or documentation of how to produce an isolated reg free com application in visual c++ 2005 express, in addition to no clickone deployment capability. Are these features perhaps only available in the full version of visual studio Would realy appreciate information on how to do this th ...Show All

  • Visual Basic background image slowing down sliding panel

    i have a sliding panel to the left of my screen, upon the click of a label it slides open and closes respectively, this works fine and runs very smoothly until i display my background image on either my form or my panel. Now when i operate the sliding panel the smoothness flys out the window and im left with a stuttering mess. is there a way to use direct draw or some form of graphical method to keep this panel sliding smoothly thank you for your help, below is my code. Dim WithEvents T As New Timer Dim WithEvents t1 As New Timer Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Label1.Text = "Open" Label2.Text = &q ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. What's the Story with Background Music?

    Is background music something that's not supposed to be a part of XNAGSE ...or are we meant to use XacT to accomplish this It seems to me, using WAV files for BGM is like using your screwdriver as a hammer, which would suggest it wasn't part of the plan. Background music has a way of breathing life into a game. It would be a shame if it weren't feasible. It's been a while since I did XACT (and I did it in MDX 2, which wasn't exactly well documented), but I believe you need two sound banks. However, I believe you can load multiple sound banks into the same engine, so you wouldn't need multiple engines -- I could remember wrong, though. ...Show All

©2008 Software Development Network