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

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

jeje1g

Member List

-M-
David Sakhelashvili
Franco Finstad
bennymacca
BoomRShine
Jegant
Kamii47
Joel Hensley
Margotta
giba7
Arshu
S Tonstad
Pitchec0934
DrDeath
wiyosaya
prasindo
Jim Shipley
clam0391
Eric Bickle - BlueRealm
Kolf
Only Title

jeje1g's Q&A profile

  • .NET Development Unsubscribing to events from COM Client doesn't work

    I've created a .Net component that has a COM interface. This interface contains events. I've also got a VB6 client that connects to this component. It recieves the events using the VB6 WithEvents "mechanism". Setting the WithEvents variable in VB6 to nothing doesn't make the events stop fireing. Looking deeper into the problem I see that the IConnectionPoint->UnAdvise call that the VB6 client makes when setting the WithEvents variable to nothing fails with error code 0x80040200. The problem gets worse if I set the WithEvents variable to a different object, since the first object still fires events, even if I have no reference to it anymore. I get the same result using VB.Net as C# to create the component. Is thi ...Show All

  • Windows Forms Setting form culture

    HI When using the Thread.CurrentThread.CurrentCulture, it will change the whole program's culture. I am wondering if it is possible to set a the culture for each form separately My goal is that two separate form can run on two different languages at a time Thanks Hi, Sorry about this, but i could not understand the below scenario. Could you please explain the scenario more clearly... "I tried using just one culture but there are case where it just did not work when i tried switching the culture becuase there are subform that can be loaded from the form where the language would also have to match. " thank you, bhanu. ...Show All

  • SQL Server Truncate and foreign keys

    Hello all, Simple question. I have two table with a foreign key in between. Then if I want to truncate the tables, of course this is not possible because of foreign key. But with the following code, this should work: EXEC sp_msforeachtable 'ALTER TABLE NOCHECK CONSTRAINT ALL' GO truncate table Table_1 truncate table Table_2 GO EXEC sp_msforeachtable 'ALTER TABLE CHECK CONSTRAINT ALL' GO But I still have the error Msg 4712, Level 16, State 1, Line 2 Cannot truncate table 'Table_2' because it is being referenced by a FOREIGN KEY constraint. What is wrong You will find below the code for the creation of my two tables Thanks for your help CREATE TABLE [dbo] . [T ...Show All

  • Software Development for Windows Vista Holder-of-Key vs. Bearer

    Until recently I was under the impression that the holder-of-key confirmation would be mandatory in CardSpace aka InfoCard. E.g. the Technical Reference for InfoCard v1.0 in Windows states on p. 5: " The subject confirmation method is always specified as “holder of key” and is identified by the URI “urn:oasis:names:tc:SAML:1.0:cm:holder-of-key” . ". There are also other references to this property e.g. http://www.identityblog.com/codesample.php simple-infocard-demo/signed_token I also saw this value when test-driving InfoCard with self-issued cards against service provider demos such as https://infocard.pingidentity.com/sp/login.jsp After updating my test environment to the .NET Framework 3.0 Runtime Components Ju ...Show All

  • Visual C# Implementing an expression parser

    Hi All, First of all thanks you very much for spending your time to open this post. We are trying to implement a small parser which evaluates expression given by users. We have idenfied a set of operators, functions, keywords, conditional staments which are required for the language. Can you please tell us how shall we implement a parser which checks syntax of the expression and evalutes them If you have any reference to data structure concepts, please let me know. Many thanks in advance. Cheers, Gopi Sounds like you're trying to build an interpreter. If you're new to the subject, read some articles on languages and grammars. It's not an easy subject. First you'll have to build a tokenize ...Show All

  • Visual Studio Express Editions How to I make this change?

    Hello I need some help. Say I have a connect button, and when you push it it would say "Trying to connect." and after it timesout, it would say "Could not connect." dose anyone know how to do that That would help me so much! - Thanks well you would implement a timer, drag and drop a timer on your form and set the interval for the time out (interval is measured in milliseconds, so 1 second = 1000 milliseconds). Double click the timer to make a tick event so when the time has elapsed, this event would fire/be raised Now when you press this button, you simply start the timer: Me.theTimer.Start() Me.theLabel.Text = "Trying to connect..." now in the timer tic ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Saving screenshots

    Since SurfaceLoader has disappeared I tried to make this code work: Texture2D tex = new Texture2D(device, device.Viewport.Width, device.Viewport.Height, 1, ResourceUsage.Dynamic, SurfaceFormat.Color, ResourcePool.SystemMemory); device.CopyFrontBuffer(0, tex.GetSurfaceLevel(0)); tex.Save("C:\\screenshot.png", ImageFileFormat.Png); It throws an exception; and so does this: Surface s = device.CreateOffscreenPlainSurface(device.Viewport.Width, device.Viewport.Height, SurfaceFormat.Color, ResourcePool.SystemMemory); device.CopyFrontBuffer(0, s); Did I miss something or is this a bug --Michael Leaf. wrote: I'll put this into a component and stick it up on my website, if I ge ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. need some help with models and maps

    ok so I can get the spacewar model to load, but when I try to load a model I made it doesent show. As in  it loads everything I put in, but the model is invisible. It is in FBX format and the texture is in TGA. Can someone help me I think it might be the way I load the model. by the way does any body know how to load .map format   here is how i load the model -   //3d model to draw Model myModel; protected override void LoadGraphicsContent( bool loadAllContent) { if (loadAllContent) { myModel = content.Load< Model >( "Content\\Models\\p1_wedge" );  (note i do change the model name to the one i made) } } protected override void UnloadGraphic ...Show All

  • SQL Server Regarding MSsubscription_agents table...

    Hi,            I am using transactional replication with updatable subscriptions. I am not able to apply the snapsnot after doing schema changes. The subscriber throws the error Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. This error is thrown on the below query... select * from MSsubscription_articlecolumns where artid = 4 and agent_id = ( select id from MSsubscription_agents where update_mode > 0 and UPPER ( publisher ) = UPPER ( N 'Servername' ) and publisher_db = N 'TestTransUpdate2' and publication = N 'Test_TransUpdate2' ) The table MSsubs ...Show All

  • SQL Server Export formats

    I have created report project using Business Intelligence Development Studio. When i use Preview tab or run report from Visual Studio in debug mode there is 6 formats available for export. But when i open the same report in Windows Forms based application using ReportViewer control there is only 2 export formats: PDF and Excel. How can i configure ReportViewer control to show all export formats I do not know what "Windows Forms based application" you are using, but the list of available formats is in rsReportServer.config in the <Render> section. You should see about 10 <Extension Name> entries. This tag has a 'Visible' attribute that can hide extensions (Visible="false"). ...Show All

  • SQL Server ETL, simple database mode and a large log file

    All, I have a ETL host database (40 gig) that is running in simple mode, but is generating rather large log files (10 gig). Are these large log files due to the bulk load nature of the ETL process, and if so, how can I mitigate the issue (reduce log size) without specifically shrinking the database Any help is appreciated... Jim You will need to break up the load into smaller chunks. If the entire load is a single transaction, the log will have to grow to accommodate changes, just in case the transaction fails and it has to rollback. If you're using bcp/bulk insert, take a look at batchsize option. ...Show All

  • SQL Server Error 209 Ambiguous column ..Transaction count after EXECUTE indicates .....

    i'm getting following exception when i try to execute stored procedure. {"Ambiguous column name 'MemberID'.\r\nTransaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1." } I know why i'm getting "Ambiguous column name 'MemberID'" exception but i dont know why i'm getting "Transaction count after EXECUTE indicates that......" In my stored proc i'm checking if error occured goto :Error_handler where i do ROLLBACK TRAN /* Its failing at MemberID = tTempResult.MemberID bcoz of Ambiguous column name. I know i have to use RebateInstanceItem.MemberID=tTempResult.MemberID */ here is my stored proc CREATE PROCEDURE ...Show All

  • Smart Device Development Control identify by name of control

    Hello, i need to identify control by its name; Hashtable ht_lang; Inventar.aSQL_routines.LoadTranslation(out ht_lang,"tabLogon","slovak"); foreach (Control ctrl in this.tabLogon.Controls) { string text = ht_lang[ctrl.Name]; ctrl.Text = text; } In .NET framewrok is property "Control.Name" accessible at runtime, but in .NET compact framework 1.0 not. Is there some way how to do it in .NET CF 1.0 thank you for your help. Palo Please do not cross post. Merging... ...Show All

  • Windows Live Developer Forums Virtual Earth: Drawing Lines from each Pin

    I am using virtual Earth and reading from a xml file to display coordinates on Virtual Earth. I want to draw a line from each coordinate which is displayed by a push pin. Is there any way of doing this My xml looks like: < xml version="1.0" encoding="utf-8" > < rss version =" 2.0 " xmlns:geo =" http://www.w3.org/2003/01/geo/wgs84_pos# " > - <!-- This is a XML document generated for to Read Longitude and Latidute Co-ordinates --> < channel > - < item > < geo:lat > 53.0775816666667 </ geo:lat > < geo:long > -7.2556 </ geo:long > & ...Show All

  • Visual Basic intercepting keyDown events

    Public Sub MainForm_KeyDown( ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyEventArgs) Handles MyBase .KeyDown Dim KeyCode As Short = eventArgs.KeyCode Dim Shift As Short = eventArgs.KeyData \ &H10000 is what the upgrade wizard does with the following from vb6...but when I set a breakpoint, it isn't catching the firing of any keydowns , such as if I press on the 'A' keyboard button. What am I missing Thanks, -greg Public Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) ' a b c d e f g h i j k l m n o p q r s t u v w x y z '65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 KeyPreview = True ...Show All

©2008 Software Development Network