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

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

Rassol

Member List

Eugen_S
Jeroen Bransen - J-Thread
jaegd
Jangid
Riaan van Schoor
briendjf
Keithyboy1
Allan-Nielsen
rWarrior
J_Dude2003
mattdawg
JIM.H.
JohnDB
Twyford
Euclidez
Chris Fink
Vedet..
Matt Clements
furjaw
ramkrishnamca
Only Title

Rassol's Q&A profile

  • Visual Studio 2008 (Pre-release) ListView - Get Columns from Datatable

    Hi, Does anyone know if it is possible to establish the columns for a listview in gridview mode from the columns in a datatable I have a datatable which will have a variable number of columns when the window is opened. I can programatically add the columns but I would prefer to use a Xaml declaration. If anyone can point me in the right direction I would be grateful. Regards, Trev ...Show All

  • Visual Studio Express Editions Options page with TreeView control

    I don't mean to rant, but for the past nine hours I have tried everything I can think of to create an Options page with a TreeView control, and I still can't figure it out. My goal is create an Options dialog with a layout very similar to the one is VB 2005 Express Edition. I've searched through IntelliSense an insane number of times to see if I can find something useful. And with no luck, I'm afraid. I can create the TreeView control, but the "dynamic" controls are what's giving me trouble. Simply put, how can I display X number of options on the right side of dialog when a certain node is selected, and then display a totally different set of options when selecting another node I was thinking of creating a load of User Controls, ...Show All

  • .NET Development Exception message from business layer

    The MethodY is a DLL of the business layer. This method throw an Exception with the message "Hello" but the message that receive the cath in the WebMethod is "Aplicattion error". What I should do for receive the correct Exception object. Thanks a lot. [WebMethod] public void X() { try { if (MethodY()) ... ... } catch ( Exception error) { ErrorSoap(error.Message); return null ; } } Interesting topic. I'm facing a similar question. In our web service we use user name and password token to verify user's identity in each web method. The code for a web method looks like this [WebMethod] Public string DoBusiness() ...Show All

  • SQL Server Extract data from ACCESS database with pwd via ODBC

    Hi, My task is simple, I want to use the execute sql task editor to grab a value from a database in Access and put it in a variable. The connection is via ODBC and the access database is protected by a password. I've done all the preliminary stuff such as running profiler to make sure that the package is getting the call to the database, setting up the ResultSet to be "single row" in the general tab, mapped the Result Set correctly, but nothing works. I get the same error every time. This is my sql command: select count(FingerPrintID) as FingerPrint from Employee Result Set is set up like this: Result Name: FingerPrint ; Variable Name: User:: varDataset Here is the error I get: Error: 0xC0 ...Show All

  • Visual Studio 2008 (Pre-release) Positioning a UserControl

    I'm trying to position my UserControl on my form. To do so I have a method which picks a position for it. I've verified that my method is in fact returning unique positions, but all my user controls are rendered in the exact center of the window. The relevant code looks like this: MyControl ss = new MyControl (); System.Drawing. Rectangle ssRect = new System.Drawing. Rectangle (10,10,10,10 ); System.Drawing. Point newLoc = PositionPost(ssRect); this .Grid.Children.Add(ss); Canvas .SetLeft(ss, newLoc.X); Canvas .SetTop(ss, newLoc.Y); "this" is my main window which has this hierarchy DocumentRoot --> Canvas --> Grid. I initially did not have a canvas on there at all, but could d ...Show All

  • Visual Basic compile both dll and exe

    how can i set up vb.net to create both a dll AND exe on the same compile and then also have the install project recognize both dll and exe and register (with COM) the dll on install at the users computer not only is it a pain to continually switch between the two types of projects for each update, but also a pain to maintain two install packages. thanks thanks for all your responses, but i guess i am not explaining myself correctly. i want to have ONE set of source files compiled into a dll and exe at the same time. if i have two projects, then i have two copies of the SAME source code. this is not what i want. i only want ONE copy of the source code, that is compiled into an exe and dll. i have ...Show All

  • Visual Studio There is no source code available for the current location. (Why???) - More Information

    I have a VC++ solution configured as follows: a.exe b.dll c.dll All 3 projects are part of the solution, with a being the startup project, and running in debug configuration. All 3 projects output their .pdb files as expected. a is dependent upon b, and b is dependent upon c. I set a breakpoint in b at a point where the code is in c. When I do that, VS complains that "There is no source code available for the current location." There is source code, and current .pdb. Any ideas why this happens Thanks, -HS Just to let you know, no joy here. Cleaned out all bin and obj, rebuilt project and same thing happens. It seems to be one particular library I have built. I'm going to stub with another ...Show All

  • Visual C# Please help me confirm on windows service

    Dear All, I have a windows service which I need to run on particular time of a day. So I have build my windows service and add the code of my action of checking the database in the onStart function Is this correct or must I have a main function Another thing I have added is the debug.write I dont know whether it prints or not I done with installer and manage to successfully install my window service. So I dont know how to confirm if my windows service is running or not How can I set the time to be like specify for certain hours in a day eg. to run at 10 am, 12 pm, 2pm and 4pm daily Thanks. Dear Rizwan, What you are saying is that in my onStart to run a timer rite Then run it for e ...Show All

  • Visual C# assembly load unload event

    I have an assembly for which I need to increment/decrement the counter in registry when assembly load/unload. are there any events which tells assembly is loading or unloading Try using the AppDomain AssemblyLoad and DomainUnload events. ...Show All

  • Windows Forms datagridview cellformatting when cell is selected

    I am using dgv and the cellformatting event to customize the cell format, back color, forecolor, etc. Everyt thing works fine as long as the cell is not selected. If the cell is selected and a new row is inserted causing a scroll of the control, the previous and the new text both appear in the cell making it unreadable. Must be something I am doing wrong in the cellformatting event or with the cellstyles Any help would be appreciated. I have not found a thread that discuss this particular situation. Thanks! ...Show All

  • Visual Studio disappearing controls ( VS 2005 SP1 with Vista Hotfix )

    Hi there, I am using VS 2005 SP1 with the Vista Beta hotfix. I am running Vista Business RTM version. I have created a form with a tabcontrol on it. I have added multiple pages and some controls on each page. I have saved the project, exited and then reloaded, some of the controls have disappeared. For instance 2 lables and textboxes disappeared. I can find them in the controls list but they do not show up visually on the form. No matter what I do they do not display, unless I delete them and then recreate them. This has happened with other controls as well (toolstripbutton). Any help would be appreciated. Thanks, Garth. Gabriel, Not sure what you mean, I am very new to VS 2005 and programming in general. ...Show All

  • Windows Forms Simple Event Help

    Hello, I am trying to understand some really simple event matters. I have a windows application, where i want to change a label everytime an event is risen. To be more concrete: I start a thread process in the Form_Load section. Let's say that the process runs a simple for loop counting numbers from 1 till 1000 and raises an event, when the number is dividible by 7. When the event is risen the number should be written out in a label in windows application. To be more specific. I want to port the example on the link bellow, to be working in a windows application, where the loop that raises an event runs in a seperated class. Link: http://www.codeproject.com/csharp/csevents01.asp Thank you for your reply. It ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. directinput not working!

    I'm trying to get directinput working but for some reason it just does not work. Why doesn't the following code cause any visible results in the textbox keyboardData I had a previous program i wrote that used directinput,, but it was much more complex and for the most part i just copied the basic idea behind what i did then and that works, but for some reason this doesn't work :( using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using DXInput = Microsoft.DirectX.DirectInput; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace DirectInput {     public partial class Form1 : Form &nbs ...Show All

  • Visual Studio Debugger opens wrong files

    I am running a relatively large unmanaged VC++ solution (~110 projects) in Visual Studio 2005 which builds a handful of dependant libraries, unit tests, and a couple sample executables. As one might imagine, this solution contains a number of files in different projects which share the same name ("test.cpp", for instance). When stepping though code, the debugger has the tendancy to bring up the wrong file. I can set a break point in a given file which is respected by the debugger, but it then proceeds to follow the execution path, correctly following line numbers but in the wrong source file. This behavior suggests to me that maybe the system is using some kind of hash based on file name which has some-how fallen out of sync with the files ...Show All

  • Gadgets g:image sizing problem

    I'm trying to scale a g:image element using i d.width=34; but it's not working. I'm still using RC1 because I want my gadget to be compatible for now and I have a feeling this is the reason why it doesn't work. I get the error "Object doesn't support this action". I checked the documentation, it says the property exists. Also, is it possible to use a remote URL for the g:image:/// protocol I've tried various different solutions with no luck. Andy You need to upgrade to RTM, RC1 is missing a lot of functionality with regard to Flyout support and gimage: support. gimage: only works on local files. I'm not sure how MS implemeted it, but it doesn't use the method Explorer uses (IExtractImage), so the thumbnails are not always ...Show All

©2008 Software Development Network