Sarita Bafna's Q&A profile
Windows Forms Can't get images on toolbar buttons when running
Hi everyone, I have a VB.net application that has a toolbar with several buttons. The first two buttons are the standard "save" and "print", with those typical images. My problem is they show up and work fine in the form designer, but when I run the application the images assigned to the buttons do not appear. Can anyone tell me  ...Show All
.NET Development Calling Javascript from C#.NET
Hi, I have an HTML page with contains both Javascript and a .NET control on it. the html is: <html> <head> </head> <body> <SCRIPT LANGUAGE="JavaScript" src="javascript/projectJS.js"> </SCRIPT> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="100%" HEIGHT="100%" id="project"> <param name="allowScriptAccess" value="always" /> <param name='src' value='index.mxml.swf' ...Show All
.NET Development Threading
Hi all, In my pocket pc applicaiton, I'm trying to send data from internal database on the pocket to a main database on a remote server. Every thing is OK till I have communication problems (No internet, Server is down , low signal ,...). Whn I have a prolem the pocket is locked while it recieves an exception there is a problem. So, I separated the connection and sending data by a thread. Each thim I call the function SyncData() I call it with a thread T . What about if the user call this function many times, then I'll get many threads run in the background. How I can control the background threads Is there a way to know how ...Show All
Visual C++ Linker error when calling legacy DLL methods with CString arguments
I am developing a C++ application in Visual Studio 2005 that needs to call methods in a legacy MFC DLL that exports a class with CString arguments in its public methods. The legacy DLL is compiled in Visual Studio 6 and I don't have the source files for it so I have to use it as it is. My problem is that I cannot link with the DLL. When I call one of the methods having a CString argument I get this linker error: error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl DFUEngine::IsDFUFileValid(class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> & ...Show All
Visual Studio 2008 (Pre-release) Multiple Service (class) Hosts - How to configure?
I would really appreciate if someone can educate/enlight me on following issues: 1. We have a business component with more than 20 different interfaces and corresponding classes which implements these interfaces. We would like to expose all of these classes in an NT service with tcp/ip for LAN clients and may be as an http endpoint in the future for intranet clients. How do I configure my service to expose these interfaces Do I have to create 20 ServiceHost<x> objects 2. Is there a ASP like Session(key) feature in Indigo We have a requirement where we would like to store an unmanaged COM object reference on the service side that need ...Show All
Visual Studio Setting report viewer width
I am trying to set the width of my report viewer in my asp.net page and for some reason it is not seeing it. It always comes up as 869px. I tried setting it at runtime in the code and in the properties of the reportviewer but no luck. I veiwed the source and saw that crystal injects it's own style in a div like so: <div class="crystalstyle" style="width:869px;height:629px;position:absolute;top:0px;left:0px"> <div id="ReportHeaderSection1" style="z-index:3;clip:rect(0px,864px,50px,0px);top:0px;left:0px;width:864px;height:50px;"> is there any way around this Thanks, Sam Problem still exists. ...Show All
Visual FoxPro what is the maximum field VFP9 can handle
Good day to everybody... just a little problem with my update at VFP interface with my back-end database I dont have this problem updating my employees table in SQL2000 with 35 columns at my VFP interface, but recently I add another 3 columns at my table, that's where I encounter this problem. Inserting a new record or deleting there's no problem, but when i edit a particular record then saved the changes,the update is OK.. but after I close the form and open it again, that particular record I edited does not really saving the changes. why is there a limit in field column use by VFP Just asking.. or there's i miss... but I already m ...Show All
Windows Forms webbrowser html events vs.2005
greetings, this code works for vs.2003, how is this done with vs.2005 beta 2 Dim doc As mshtml.HTMLDocument = DirectCast(webBrowser1.Document, mshtml.HTMLDocument) ' Cast to the interface that defines the event you're interested in Dim docevents As mshtml.HTMLDocumentEvents2_Event = DirectCast(doc, mshtml.HTMLDocumentEvents2_Event) ' Define a handler to the onclick event AddHandler docevents.onclick, AddressOf onclickproc &nbs ...Show All
Windows Forms how can i save the text format to the database?
i'm using richtextbox, If you want to save the text including the formatting you can retrieve it from the RichTextBox.Rtf property . ...Show All
Smart Device Development How to open/close GPRS connect?
Hi there, I would like to write a program for data socket with GPRS connection. My smartphone, Dopod 585, is as the client and PC is the TCPserver. To deliver string from smartphone and show it on PC is my current task. However, I can do that via USB connection but failed in GPRS. It seems to mean that both programs in client and server are correct but something wrong in GPRS connection. Maybe I need to write a program in C# to start GPRS connection. However I could not get any information about GPRS connection in the MSDN for C#. Would you please do me a favor to give a example program or tell me what function or structure could accomplish ...Show All
Windows Forms Visual Inheritance
Dears, I created a base form containing few ToolStripButton and panels, but another (mdi)child form can't show all these controls after inheriting the base form. Is there any properties need to defined first, or Bring To Front (I can view it successfully in Designer Mode of VS2005, but not in runtime... :( Thanks, Yes, you're correct, I've marked both of your answer as "bingo" here. :) Thanks! ...Show All
SQL Server Possible to use Calendar control with date parameter?
SQL 2005 on XP Pro. I want to call up a Calendar Control when a user enters a report parameter which is a date. Is this possible I am using the out-of-the-box SQL Srvr Reporting Services, not a custom implementation. Thanks in advance This is supported. A calendar control will be displayed for date parameters that do not have a valid values list. ...Show All
SQL Server Setting defaults on a multi-valued parameter
I want to set defaults for my multi-valued report parameter MONTH so that when the report starts, it automatically selects all the months prior to the current month (effectively creates a YTD report). However, using RS2005, I can't seem to figure out how to do this. I can create an IIF expression in 12 different value entries in the report parameters that returns the month based on the system date, but the first time I pass blanks, null or anything except a valid parameter, it clears the entire parameter list when the report displays. Does anyone have any suggestions for auto-populating multiple values in a parameter at runtime where one ...Show All
Visual Basic VB6 App to query data remotely
Hi to all, I have a VB6 app that can query/update/insert data successfully on an ACCESS database which can either reside on my pc or any other pc in the intranet. However, our company has another site in the same country but miles apart, so we're not connected by intranet. How can i make the database also accessible through internet such that my app can still carry out database transactions from the second site My idea is to set up a ftp drive that can be access from internet (with username and password) and have my app look for the database there. Question is not sure if it'll work and whats the code to look for the ftp drive and a ...Show All
.NET Development SECURITY IN MY WEB SERVICE
Is it possible to pop the enter username/password window when i started accessing my web service How Thanks. - zack am using .Net Framework 1.1 and Win2000 Pro... Your link seems to be focusing Framework 2.0 apps. Thanks anyway ...Show All
