Jayx's Q&A profile
Windows Forms AddNew in Navigation Bar - want to autofill data in bound fields
I need to autofill a field on a data entry form after I click the "addnew" button on the Navigation Bar. (The one that is automatically generated by 2005 when I add the dataset's fields to a form.) I use the following code in a button_click function to make sure it worked, and it did. (custStr a global variable with the value I need) CustomerTextBox.Text = custStr But when I move it to this function, the value (of the CustomerTextBox.Text) filled in is blanked back out. (or never filled in at all ) Private Sub BindingNavigatorAddNewItem_Click I assume that the function above is performed before the fields are "reinitialized" and blanked out and that is why it is wiped out. So, is there a function performed ...Show All
Visual Studio Cant find the class for embedded crystal reports?
Hi guys. I'm having a problem finding the class for the embedded crystal report document I've added to my project. I am using VB.Net 2003 and based from the information I've got from MSDN, once you embed a crystal report into your application, a class will be automatically created for you to use to instantiate the report in your code then bind it to a crystal report viewer. But i cant find that class Say for example, ive embeded crystal report document named "CRSample.rpt" to my application. My crystal report viewer is named for example "CRVSample". I want to do it like this. Dim CRSample as ReportDocument CRSample = New [This is where the problem is. The class CRSample is suppose to be listed here after hittin ...Show All
.NET Development Use reflection to load a VB 6.0 dll?
Hello, I have a VB 6.0 dll thta I would like to load in a .NET project using reflection, I do not want to set a reference to it. Can it be done If yes, how I'd really apprecaite any pointers if its possible. Thank you for your time. PP. You can't use reflection to load/inspect a VB6 DLL, reflection requires a .NET assembly, VB6 DLLs are COM servers. Technically, a VB6.DLL contains a tool library as an embedded resource. You could, conceivably, get an ITypeLib interface pointer to that library. No idea how to do that. You can create an instance of a class in the VB6 DLL with the CreateObject function. That gives you a reference of type Object, fairly useless to call any metho ...Show All
Commerce Server Working with Commerce Server tables in ADO.Net
I've frequently run into situations where I need to retrieve data from a one of the Commerce Server databases in a production site. Unfortunately, some of this data is unavailable through the exposed runtime APIs. Occasionally, there are methods available through a management context for accessing this information, but this requires reloading the configuration settings each time one of these contexts is instantiated (which can be really, really expensive). The preferred option is therefore to work directly with these tables in ADO.Net. This is much more effecient than loading the management context objects, and allows the developer to do additional performance tuning if needed. The complication that this introduces is that it require ...Show All
SQL Server Login failed for user ''. The user is not associated with a trusted SQL Server connection.
Hi all, Can someone explain it to me why I am getting the following error when I try to connect SQL server express with .NET 2.0 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Here is my code and i am using windows authentication: <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SqlClient" %> <% Dim connAkaki As SqlConnection Dim cmdSelectAuthers As SqlCommand D ...Show All
Visual C++ what is Deep Copy, shallow copy and bitwises copy.?
what is Deep Copy, shallow copy and bitwises copy. is there any difference between them... help me. manish Shallow copy means, just bitwise copy the objects. Deep copy means copying the content of the pointers present in your object i.e. class A { int* p; }; main() { A a, b; a = b; // now a->p and b->p will point to the same location since it is bitwise copy which is not safe } but if you define class A { int* p; int nSize; operator = (A& a) { if(p != NULL) delete []p; &nb ...Show All
Visual C++ How to convert 4 types of C++ strings?
I am new to C++ programming ... and it seems not everything is written in the books. Can anybody explain to me how to convert between the 4 types of string representations: char * char[ ] string class String ^ class Are there simple recipes for conversions Are the classes string and String^ only used with Microsoft C++, or with ANSI C++ as well It would be wonderful to get a sort of systematic overview, which I could not find in any book anywhere so far. Sounds like you want someone to write documentation for you. There are plenty of answers out there already investigated upon and written up if you do your own searches. (This topic in fact has been covered in this forum and the MS ...Show All
Visual Studio Team System LoadTestPageDetailData does not contain datas
I am trying to do some report in the load Test result, I dig into the LoadTest Database and found LoadTestPageDetailData table is empty, but some of the other do have data like "LoadTestRun", The table LoadTestPageDetailData will only have data if the load test run settings have "Timing Details Storage" set to "All Individual Details". By default, it will be set to "None" and individual page response times will not be stored in the database. There is a good description of this load test setting in the following document http://msdn2.microsoft.com/en-us/library/ms404664(VS.80).aspx See the section titled "Including Timing Details to Collect Percentile Data. Thanks, Rick ...Show All
Visual Studio Team System Problem UpdatePannel of Ajax
hi, i am using updatepannel of ajax1.0 i have put one button in update pannel and one textbox outside of update pannel but when i click on button to change the value of textbox at that time it display nothing in the textbox plz help me.. thank you ...Show All
Visual Studio 2008 (Pre-release) How to instantiate OperationContext.Current inside ChannelMessageInterceptor
Hi, I implemented custom security inside ChannelMessageInterceptor sample infrastructure and I want to use OperationContext inside OnReceive method and after that in OnSend method on the service. On the client side I use client proxy channel to instantiate OperationContext, but on the server side I did not find appropriate channel that I can use to Create OperationContext. class Custom SecurityInterceptor : IChannelMessageInspector { public void OnSend( ref System.ServiceModel.Channels. Message message) { OperationContext.Current = new OperationContext( ).... Can someone help me with this problem Thanks, Indigo Cowboy What do you want to use the OperationCo ...Show All
Windows Live Developer Forums Capturing Images in Virtual Earth
Is it possible to capture / record the animated pan and zoom from a certain point out in space and zoom in as close as possible. I then wish to use the resulting capture in a Microsoft PowerPoint presentation. It would look better in animation mode rather than a series of photographic images. Thank you. Hi, You could try using Wink http://www.debugmode.com/wink/ It records the screen/window to a Flash (.swf) animation, just tried it myself with VE and it worked quite well, it's also FREE Cheers Mike ...Show All
Visual Studio Tools for Office Why do MS Word Automation return different values with and without Debugger?
range.Select(); //line 1 float X = ( float ) ((Microsoft.Office.Interop.Word.ApplicationClass) _application).Selection.get_Information( WdInformation .wdHorizontalPositionRelativeToPage); //line 2 If I set breakpoint at line 1 and stop in debugger, I get another value in line 2. Selected range is located in table cell. May be I have to invoke some refresh function or something else before line 2. I don't really understand why I get different values for the same file and the same range in Debugger and without debugger. I want to declare what I found. If I add some delay between loading of word document and processing the objects - all works fine. I think MS Word do some loading asynchronously, s ...Show All
Windows Forms Error: System.ArgumentException: Culture ID 2155 (0x086B) is not a supported culture.
I run a small program to show all installed win32 cultures on my PC. After running this, program shows me exception like “ System.ArgumentException: Culture ID 2155 (0x086B) is not a supported culture. Parameter name: culture ” Anyone having idea of fixing this problem I want to ger rid of this error and because of this, I am started getting some other errors. I have Dot Net Framework 2.0 installed on my PC. Is this because of some installation problem of Dot Net Framework To fix this up, I tried uninstalling and Reinstalling Dot_Net_Framework_2_0 but still it did not work. Hi Check the link below. http://msdn2.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx Hope it might help ...Show All
Visual Basic problem using COM Class...(urgent help please!)
I decided to develop a COM standard dll aiming to instanciate it using Excel 2003. After some help documentation look up, I realized that .NET 2005 is able to provide me a solution trhought a "COM Class" item. Below the code: <ComClass(XlBasic.ClassId, XlBasic.InterfaceId, XlBasic.EventsId)> _ Public Class XlBasic # Region "COM GUIDs" ' These GUIDs provide the COM identity for this class ' and its COM interfaces. If you change them, existing ' clients will no longer be able to access the class. Public Const ClassId As String = "A9FF699C-5289-4d10-9497-2219719DD2AB" Public Const InterfaceId As String = "94456DA3-99D1-48d0-97A1-09F4A4A5EADC ...Show All
Visual Studio pdb and dmp files, symbol settings, missing files ?
Hello. I have an application that generates minidumps on crash. I am trying to analyze this dumps, but I have a problem with the symbols: I copied some generated files (.pdb, .map, .exp, .lib, vc80.pdb) to another folder, duplicating the entire source-folder structure, and I try to point to them. VS2005 debugger does not recognize the files and the call stack remains a mistery. However if I point to the original source location I get the informations I need. The difference between the source location and the new one is that the new one does not have the source files, the object files and some other files needed by the repository system. I even tried to copy the object files, but no luck. Both locations are on the intranet. A ...Show All
