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

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

arikve

Member List

Gavin Lilley
nzmike
mcnamaragio
Mark Hopkins - MSFT
mike.groh
dougzhoez
Lady Mog
Chris D Jones
Beth
SDyke
andradrr
hrhoe
Sean McKenna
Cynkan
Aaron Sulwer
SCRunner
xplosiv_1
Billr17
Ralf_from_Europe
Toni Greco
Only Title

arikve's Q&A profile

  • Visual Basic System.Threading.ThreadStateException

    Program: Window Application (vs2005 with vb.net) Error: ActiveX control ‘648a5600-2c6e-101b-82b6-000000000014’ cannot be instantiated because the current thread is not in a single-threaded apartment. This error only occurred when debugging source code in version VS2005 but doesn’t occur when using VS2003. Program can be built successfully and program can be start with EXE that built without any problem. Program will throw exception when: Me .ScanSerial = New AxMSCommLib.AxMSComm or Me .wbrWorkInstruction = New AxSHDocVw.AxWebBrowser Refer to http://support.microsoft.com/kb/841295 But this error occurred in declaration, not yet to start Thread. is it MSCOMM32 ...Show All

  • Visual Studio 2008 (Pre-release) How to combine data from two tables into one EntityType?

    Using the vNext August CTP and Linq May CTP LINQtoEntities Sample I would like to include the CategoryName of the Northwind Categories table in the Product EntityType, to be able to do following query: var products = from p in db.Products orderby p.CategoryName select p; foreach ( Product p in products) Console .WriteLine( "{0}\t{1}" , p.CategoryName, p.ProductName); What does the entity model have to look like Thanks! You can achieve this effect by declaring entity sets for Products, Categories, and an association set for ProductCategories - then you can use navigation properties for getting the CategoryName. Here is the CSDL for that: < xml version ...Show All

  • Windows Forms Preventing Form refreshing while resizing

    Is there a way to prevent a form from repainting its contents while it is being resized or moved Thanks for any help! Try modifying your form's constructor like this: public Form1() { InitializeComponent(); SetStyle(ControlStyles.ResizeRedraw, false); } ...Show All

  • SQL Server Oracle to SQL Server connection.

    Hi, I have access the SQL Server Database Objects(Tables) from Oracle Server client through ODBC Link. In Oracle defalult transaction is uncommitted transaction. But in SQL Server it is committed transaction defalut. When I update any values in the SQL Server table from Oracle client through ODBC link, either is committed transaction or uncommitted transaction. Kindly explain the logics. Regards, S.Balavenkatesh ...Show All

  • SQL Server connecting to server but not to database-Newbie Question

    Hi everyone, I created a database in SSMS,but I can't connect to it using VB Express code.When I delete the database name from the server I can connect to server,but when I mention the name of the database or initial catalog,I receive a login failure error for the mentioned database... My connection string is: Dim conn1 As SqlConnection = New SqlConnection( "Data Source=.\SQLEXPRESS;initial catalog=TEST1;" _ & "Integrated Security=True;" & "user instance=true;" ) Everything is Local,I am using express version of SQL server and VB.How I am not be able to connect the database I created under the server in SSMS...I am really confused... Thanks in advance!!!! Can ...Show All

  • Visual Studio Team System TFS26201 This workitem has unsupported fields, or user does not have permssions

    Hello, I created a workitem and it imported correctly. I removed some fields and changed states and transitions. I can create the workitem but when I try to pass from one state to another, I got that error. From state Implementado to State-- No cumple or From state Implementato to State -- Revisado Interno. I am going to paste the section of states and transitions. <WORKFLOW> <STATES> <STATE value="Propuesto"> <FIELDS> <FIELD refname="Microsoft.VSTS.Common.ResolvedDate"> <EMPTY/> </FIELD> <FIELD refname="Microsoft.VSTS.Common.ResolvedBy"> <EMPTY/> </FIELD> <FIELD ...Show All

  • SQL Server SQL Client Redirect - Database Mirroring

    Hi All, My apologies if this question seems abit basic, but I'm a DBA by trade and programming .Net isn't my strong point ;) I've enabled database mirroring on 3 SQL 2005 servers, a principal, a mirror and a witness. Principal - SQL 2005 Enterprise Edition, SP1 Mirror - SQL 2005 Enterprise Edition, SP1 Witness - SQL 2005 Express, SP1 I've written some test code to test the mirroring but as soon as the connection is pulled from the principal, the client re-direct doesn't work and the program bombs. I'd be grateful fi someone could have a look at my code below and tell me if there's any schoolboy errors (NB, the user running the code is a sys admin on all 3 servers) Thanks in advance. Im ...Show All

  • Visual Studio Express Editions how to convert Date to Integer

    I have 2 DateTimePickers and one is used for arrival date and other one is pick-up date. To find out delayed days I want to take away arrival date from pick-up date but the problem is it says you cannot convert date to integer. I would be appericiated if you can help me with this problem. DateTime.Subtract() subtracts two dates. So does Date.Subtract(). It produces a TimeSpan instance, use any of its properties to measure the difference. The Ticks property is the most accurate but you'll probably want to use something like TotalSeconds or TotalDays. The VB.NET DateDiff() function produces a Long value (not Integer). For example: Dim diff As Integer = CInt(DateDiff(DateInterval.Second, d1, d2)) ...Show All

  • Visual Studio Express Editions Problems linking GridView to DetailsView

    im linking a GridView to a DetailsView , the GridView has Paging Enabled but when I go to the second page of the GridView and select a record it doesnt update the DetailsView with the selection. when i make a selection on page 1 it works fine but for some reason doesnt work when i click page 2 of the records. heres the syntax i used: Protected Sub GridView1_SelectedIndexChanged( ByVal sender As Object , ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged DetailsView1.PageIndex = GridView1.SelectedIndex End Sub Hi 535510175, This looks live VB code to me, and this is the C# Forum. This post would be better of posted to http://forums.microsoft.com/MSDN/ ...Show All

  • Windows Forms Process preview window

    I am looking to create a preview window in a form that I have that will display a running process. It's much that same as the preview window when selecting a screensaver in Windows. Basically I want to have a preview button that will display the running process in a preview window on my form and then be able to adjust parameters and see the results of this on the process. Does anyone have any ideas on how to do this, just the getting the process to display in a preview window part. Thanks Hi one thing you could do is to use Performance Counters to get some data on the process http://msdn2.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx display that data in a screen.. Hop ...Show All

  • Visual Studio Team System Any limitation of the VSTS automated testing?

    We're conducting studies regarding the limitations of VSTS Automated testing. Your input is highly appreciated. Thanks.   No support for delegates with VB test projects. ...Show All

  • Visual Basic This LoaderLock Error msg prompt out each time i stop the program in VS 2005

    The program is running correctly, but the problem is, each time i Stop Running the testing program, this error Message is prompt out.   1."No Symbols are loaded for any call stack frame. The source code cannot be displayed" 2. LoaderLock was Detected Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.   Troubleshooting tips: Get information about MDAs   How to Solve this error What is the effect of this error What the means of LoaderLock I suspected the Error Msg is come out due to I am using the Chart Viewer. Please kindly help Thanks.   ...Show All

  • Windows Forms Listbox to show options from a related table

    On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All

  • Visual Studio 2008 (Pre-release) ChannelFactory and abstract

    Hi , I create a abstract class named as Test and add [ServiceContract] property to it, but in client I call ChannelFactory<Test> to generate proxy object, it will throw exception: ChannelFactory must use interface type,so How to create client object if I use abstractor class Thanks, Zhihao For ChannelFactory<T>, T must be an interface type. If you need the abstract class for some reason, you can always just make an interface IA with the same methods as your abstract class, move the [ServiceContract] and [OperationContract] attributes to the interface, and then have your abstract class 'Test' implement the IA interface abstract class Test : IA ... ...Show All

  • Windows Forms Simple Bound Control updating issue

    Hello, I have bound a textbox to a CustomerName column of my DB, using the data binding property, and selected it from the DataTable. when i change the text in the texbBox, i try to update the DataSource but no luck, it seems that the datarow wasn't affected. Hows the binding of the textBox supposed to make the change  in the data row if not - how to i solve this problem and make every change of the text in the TextBox update the DataSet and then the DataSource after submiting a this .daFriends.Update(dsAllTable); aprritate any help, 10x. for it to update the datasource, I believe you have to implement the UpdateCommand method in the DataAdapter. But you only do this if the ...Show All

©2008 Software Development Network