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

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

Matt_

Member List

theinspector
motostamp
HotKeeper
Fusion1224
Tomay
Rruna
TRACEYMS
bombdrop
Jeff Weber
hooman.tadbiri
vick2020
BeguiledFoil
Pipz
bluefocs
Demiurg
lsproc
Scottzrn
morpheus3230
Jonathan Rajotte
Lucas Pasquali
Only Title

Matt_'s Q&A profile

  • Visual C# question about assembly loading

    I'm dynamically loading an assembly at runtime and trying to use it but I'm running across something strange. Assembly A contains a common interface type Assembly B contains an executable that loads a type from Assembly C, and contains a reference to the common interface. Assembly C contains a type that inherits from a class that implements the common interface found in Assembly A. now. at runtime I load up the an assembly which is specified in the app config, and recursively walk its references until I've loaded every reference possible from Assembly C. In that walk I load all loadable assemblies, then get all the types in that assembly and cache that data. After recursively walking all the dependencies of th ...Show All

  • Visual Studio Team System Debugging and Tracing

    Hi, Ok here's a scenario, we are using VS team System and developing a product in C#.Net. We have created our own architecture and It is common to various products so it is developed as a separate solution. We are preparing daily builds for the architecture and storing in a network location. All the references are thus made from GAC and it is updated frquently. The problem is that while working on a specific solution (lets call it SP) (this one is separate from the architecuture framework solution lets call it A) for a product we have references from the GAC. Is there any possibility to debug and trace the architecture from within the solution SP. In other words we want the trace to go to architecture as if it is included in the same so ...Show All

  • Windows Forms strange program error...

    Hey, in this code: public int Print( int charFrom, int charTo, System.Drawing.Printing. PrintPageEventArgs e) { do { CHARRANGE cRange; cRange.cpMin = StartPosInRichTextBox1; cRange.cpMax = StopPosInRichTextBox1; RECT rectToPrint; rectToPrint.Top = Convert .ToInt32(e.MarginBounds.Top * AnInch); rectToPrint.Bottom = Convert .ToInt32(e.MarginBounds.Bottom * AnInch); rectToPrint.Left = Convert .ToInt32(e.MarginBounds.Left * AnInch); rectToPrint.Right = Convert .ToInt32(e.MarginBounds.Right * AnInch); IntPtr hdc = e.Graphics.GetHdc(); FORMATRANGE fmtRange; fmtRange.chrg = cRange; fmtRange.hdc = hdc; fmtRange.hdcTarget = hdc; fmtRange.rc = rectToPrint; fmtRange.rcPage = ...Show All

  • Windows Forms Dynamic Help!

    Another help related question: I am using HelpProvider and I see dynamic help functionality for my controls. My question is how can I make that happen at run-time. That is if the users are able to see the dynamic help while running my application, that would be too good, instead of them pressing F1 whenever a control gets focus. Thanks for your time! The key is to catch the control's Enter event. Here's some sample code: using System; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); InstallDynamicHelp(this); } private void InstallDynamicHelp(Control container) { foreach (Control ctl in container.Controls ...Show All

  • Visual Studio Express Editions Nested loop

    Ok i got a book and this eludes me. here is m situation the textbox name is JAN01box and there are actually quite a few of them. What i wanted to figure out is how to read the "01" in the box then set up a nested loop to adjust text or add text or whatever. ...... how do i read through textbox names with a nested loop. Please assist... i have a few hrs trying to accomplish the task Shihan OH BOY I am appreciative of such a quick response.. what I am trying to do is read through textboxes and for each read i may format the boxes or do a calculation or update them. Maybe to use the if then to read soem of them and do a database write. Its how this is done. Reading a part of the ...Show All

  • .NET Development Will assembly be functional after sending it with WCF?

    My question extends from the second part of Zhisheng Huang's reply in this post: http://forums.microsoft.com/MSDN/showpost.aspx postid=1205641&siteid=1 I am trying to create a WCF service, that should enable the user to create his own plugins, install them on the server at runtime and make them available to the clients. So basically the server loads plugins that implements an IModule interface with Assembly.LoadFrom and creates instances with Activator.CreateInterface. These instances are then returned to clients. The modules implement 4 methods that I want to execute on the clients. But when the client tries to deserialize an actual module received, I get the following FileNotFoundException: "Could not load ...Show All

  • Microsoft ISV Community Center Forums Limit Macro to current workbook

    I have two Excel files with two macros in each one. One Macro Protects the all Worksheets and the other one Unprotects them. The difference between files is that one needs a password protection and other one doesn't. If I don't have both files open at the same time, they work fine, but as soon as I'm working with both files at the same time, then macros from one file can be used in the other one. Is there a way to avoid that and to limit macros from other files being execute when they share the same Shortcut keys. Here a sample code for the file with Password protection: Sub UnprotectSheets() ' ' UnprotectSheets Macro ' Macro recorded 7/12/2006 ' Keyboard Shortcut: Ctrl+Shift+U ' Dim shtCurrent As Worksheet Dim strP ...Show All

  • SQL Server Need to prevent database assembly creation

    On certain servers, I don't want developers to be able to create assemblies. Unfortunately, the command sp_configure 'clr enabled', 0 only prevents the CLR-type from being executed, not its creation . I am unable to rename nor put triggers on sys.assemblies, sys.assembly_modules, sys.assembly_files, and sys.assembly_references . I would prefer the user know the boundaries well before implementation. Has anyone succeeded at this Thanks, that helped quite a bit! CREATE TRIGGER trg_CLR_Alert ON DATABASE FOR CREATE_ASSEMBLY, ALTER_ASSEMBLY AS   BEGIN     PRINT 'Assembly implementation is not supported on this machine.'     ROLLBACK   END I will p ...Show All

  • Smart Device Development Combobox.SelectedValue has a value of Nothing

    Dim rs As SqlCeResultSet Const Field0="lngID" Const Filed1 = "txtName" GetSetX(iSql, rs) 'assume this fills the resultset, cuz it does cbo.ValueMember = Field0 If Field1 = "" Then cbo.DisplayMember = Field0 Else cbo.DisplayMember = Field1 End If cbo.DataSource = rs.ResultSetView i have tried this many ways...but when i later use code: cbo.SelectedValue=39 the item with lngID=39 is NOT selected, nothing is selected!!! please help thank Mase Combobox.SelectedValue has a value of Nothing... i have code cbo.SelectedValue = 200 but the SelectedValue is NOTHING!!!!! please please please anyone... the ValueMemeber is there and i can msgbox it.....help I can se ...Show All

  • SQL Server The process could not connect to Distributor - Need some help

    hi friends i am creating the Merge Replication between two server(both SQLServer-2005, on XP). Server names are as 1. HB5B 2. VSNET1 i)    On server HB5B, i had created the Publication with name 'hb_pub'. (publisher & Distributer on HB5B server) ii)   On server VSNET1, i had created the Pull Subscription, for the publication name hb_pub( form the server HB5B), this starts fine. iii)   When i went to Viwe Synchroniztion status, it says       The process could not connect to Distributor 'HB5B'   iv)  i too check the Distributor properties, its seems fine for me. v)  On server VSNET1, if creats the Push Subscription, for the ...Show All

  • SQL Server The setup has encountered an unexpected error while Setting reporting service and share point exclusion path.

    I got this error message during install with no error code on Server 2003 SP1. I'm installing on an older development machine and although I do have a very large log file somewhere I wanted to post before I even dug into it. I noticed in IIS under my Webs that the MSSQLExpress webs were there at first but when I clicked on them to get any info or Properties... they dissapeared. So they were almost installed but they no longer exist. Also I do not have a SQL Service Manager icon down near the clock. I almost took a step to fix this. After reading a few posts about similar problems I thought maybe this happened because the Default Web Sites IP # was not set to (All Unassigned). I was going to try a repair install from Add/Remove Progr ...Show All

  • Visual Studio Express Editions VB.Net & WMI & BCD

    All, I am trying to use enumerateobjects() in the BCD WMI programming and are having some problems. I have everything working except for this one function. If anyone has any experience with this please help. Here is the MSDN information on it. http://msdn.microsoft.com/library/en-us/BCD/bcd/enumerateobjects_bcdstore.asp My biggest problem is that I am getting a "Type Mismatch" error any time I pass a UInt32 into EnumerateObjects. That is what the value type is suppose to be but for some reason it is not working. I have tried to use Convert.ToUIn32(Cint(1)) and Convert.ToUInt32(CInt("1")) and even just use 1 and many different variations and I always get the same errors. I tried changing the type from UInt32 ...Show All

  • Visual Studio 2008 (Pre-release) Creating an instance of class with classname stored in array

    hi all, I have developed an application in which i am storing the interface name and class name in the string array.Depending upon whether it is a class or interface,i want to get the Type so that i could use the class and instantiate it.How could i achieve this.Any help would be appreciated. Regards, spshah This is a bit off topic for the WPF forum, but, you can dynamically load a dll ( Assembly ) using Assembly.Load (...). If the problem is that these assemblies and their references can't be resolved by the runtime, you can hook the AppDomain.CurrentDomain.AssemblyResolve event, manually determine the location of the referenced assembly, then load and return it using something li ...Show All

  • Visual Studio 2008 (Pre-release) OneWay Databinding not working if we modify target value

    Hi There, Requirement : txt2.Text should update according to txt1.Text always. This is the code I am using < TextBox Grid.Column = " 0 " Name = " txt1 " Text = " dsf " /> < TextBox Grid.Column = " 1 " Name="txt2" Text = " {Binding ElementName=txt1,Path=Text,Mode=OneWay} " /> It works well ( text in the second textbox txt2 updating correctly according to txt1.Text) But as soon as I change Text of txt2 using keyboard the databinding is not working. ie the txt2.Text is not updating as per txt1.Text ) Somewhere I read that we should not change the value of target explicitly.If so how can I implement this scenario Thanks in advance. Joy ...Show All

  • Smart Device Development RFID Reader Project

    Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. I'm doing this just to ensure that the code works and when i'm done with this i will modify the code for an iPAQ (the Reader works on COM7 on iPAQ). The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read ...Show All

©2008 Software Development Network