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

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

Soonyu

Member List

Alexey Nayda
Jan Friberg
null_loop
RPKJBP
PeacError
Steev
sweet_salt
Eddie Garcia
BarataMota
m.a.fuchs
David_P9
fewiii
Umair-Shahzad
Beast Forever
DarthCoder
hrubesh
gteddy
XNA Rockstar
neely
hrubesh
Only Title

Soonyu's Q&A profile

  • .NET Development Datatable: works in windowsApp, not in ASP.NET

    Hi all, I've got a very weird problem. I'm trying to retrieve a datatable and in my view this works. Here's my (test) code in ans ASP.NET code page. 1 Public Sub New () 2 cls_datamanager = New DataManager() 3 Get_errors() 4 End Sub 5 6 Public Sub Get_errors() 7 Dim cls_Error As New Error_Logger(cls_datamanager) 8 Dim cls_datatable As New DataTable 9 cls_datatable = cls_Error.List_errors 10 11 'grd_errors.DataSource 12 lbl_test.Text = cls_datatable.Rows(0).Item(0) 13 14 End Sub cls_error and cls_datamanager are some classes for DAL and three tier development I use and they work. I get a NullReference Exception when I get to the last line of code. The strang ...Show All

  • Windows Forms tableadapter + connection pooling + corrupt connections in pool

    Hi, let's say we have plenty of table adapters in application and connection pool corrupts pretty often. How nice and elegant with minimal rewriting make those table adapters work without exceptions using this (or if you get the point of the problem and know better one) solution (idea in pseudo code): try { fill datatable using adapter with plenty of usrfull data } catch { looks like our connection pool has corrupten connections, let's clear it try to use table adapter to fill datatable once again } Hi It seems that you are using Asp.Net. Maybe someone has a better answer on the ASP.Net Data Access forums . I 've used this setup several times and i have never had any problems. Are you using st ...Show All

  • Windows Forms Control.Focus & Control.Select

    Hi - quick question here: what's the difference between Control.Focus and Control.Select (is there any or are there just two different methods on some controls for readability purposes e.g. you "select" a textbox when you want to input text rather than "focus" it ). If someone could clarify the difference and/or an example of where to use each, that'd be great. Thanks in advance! A container like a form has an ActiveControl. That's the control that gets the focus when the form gets the focus. Select() just makes a control the ActiveControl. Focus() gives it the focus *and* makes it the active control if that worked. That's why Select works in the form's Load event but Focus doesn't; the ...Show All

  • .NET Development Generating proxy classes to individual files?

    I have 6 separate wsdl files which represent various HL7 v3 interactions. Each of these wsdl files declare the same base HL7 v3 data types. Each wsdl is about 350K in size. I have used Thinktecture's WSCF v0.6 tool to generate a separate class file for each data type (class). I have some minor problems using WSCF, so I was wanting to do the same thing using the standard .NET framework tools, i.e., wsdl.exe or wsewsdl3.exe. Unless I have missed something obvious, I cannot find a way of doing the same thing using wsdl.exe or wsewsdl3.exe. A couple of notes to assist in your answer: I am not the maintainer of the wsdl, so changing the source wsdl is out of the question There are 348 generated classes (1.5MB of C#) in all of the ws ...Show All

  • Visual C++ CTabCtrl drawing problem with XP Style

    VC++ 2005 MFC. I'm using a CTabCtrl. The control works just fine if I do not include a manifest for XP Style. If I include a manifest for XP Style, the CTabCtrl stops drawing on most of it's client area. By stop drawing on most of the client area, I mean it draws about 4 pixels from the top and left correctly and everything else is not drawn. The controls on top of the CTabCtrl are drawn properly, it's the background and bottom/right borders that do not draw. By not drawing I mean it just keeps whatever was on the screen there before. If I drag a window across it, I see the remanents of the dragged window. It's like the CTabCtrl just decided to clip out everthing below & right of (4,4) of it's client area. Another way to visua ...Show All

  • Visual Studio Express Editions Computed Column

    I am having trouble finding the correct sytax for formulae in creating computed columns. I would like to create three computed columns in my table in my database. The first is an average of the last 20 prices, the second is the average plus one standard deviation and the third is the average minus one standard deviation. I would appreciate any help. I have tried even simple formula but nothing seems to work, i keep getting error messages. I tried creating computed column formulas in the designer and only ended up with errors at run time. I have not figured out how to handle these errors. But to answer your question you do not need to use "dataset" in the designer. You just use the column names: column1+column2 , etc. ...Show All

  • Visual Basic open ".doc" file in vb.net appl9ication

    i want to open an existing word document in my vb.net application. how cani do that is there any reference file to be added plz tell the code Do you want to spawn Word or show the doc inplace in your app Inplace - not sure if there are .Net controls implementing inplace viewing. Spawning is easy: System.Diagnostics.Process.Start("YourPath\YourFile.doc") -- SvenC ...Show All

  • .NET Development Can't refresh schema in sqldatasrc/gridview from dynamic SQL stored proc

    I have an asp.net page with a gridview and sqldatasource. My backend is SQL Server 2005. The data I am going after is a many to many relationship with a link table. I created a stored proc to dynamically create my sql statement. I've done this before and used gridviews/datasources with no problems, but this one is stumping me. When refreshing the data source, I get a simple 'Unable to retrieve schema. Ensure that the ConnectionString and SelectCommand properties are valid.' I can use the 'Test Query' in the SQLDatasource wizard and successfully retrieve the data. I can set the grid to autogenerate and everything works fine. I cannot use the 'Refresh Schema' to set my grid up. I'm not sure how to determine what the underlying ...Show All

  • Visual Basic Can I create wizards for my program?

    i was just wondering if I create wizards for my program like to accept input from user then process them and stuff. i will try it out quite confident i can do it. but a question, then won't my program have alot of forms u said no wizard control for winforms does it mean if i use something else there is Also i will have alot of controls doing the same functions. is it ok, done professionally anyway of reusing them say i lay them out in a panel control. can i 'copy'  it ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How do i do rigid,soft physics and particle stuff in XNA?

    I'm new to XNA, got the basics. Can you help There are no existing ways of doing rigid body or soft body physics, or particle systems in XNA. You'd have to develop your own engine(s) for these, or find an existing one written in .net that doesn't use unmanaged code. ...Show All

  • SQL Server sharedenyread didn't work in ADO

    hi .. i made an application using vb6 that access the table in a sqlserver database and in the load event i write cn.mode=adsharedenyread and i make two copies of the application and run them both of them read the data and no deny happen !!! although both of the applications have adsharedenyread how can i make privilage for some users to read or write by the way is that can be done in ado.net 2.0 thanks in advance. i do this and i check the mode at runtime and it gives me 4 it means that its sharedenyread but no use the user is able to connect with no exception !!! thanks in advance. ...Show All

  • Software Development for Windows Vista SUA does not create log file - only error is: log file does not appear to be well formed - No (valid) log file is found

    Hello everybody, Please excuse me, if this is not the correct place to post, then please direct me. I also had a search in MSDN Forums with these searches, which did not help me much: well formed standard user well formed SUA (no results) well formed (just too many results to scan through :-( ) So, I post it here.   I did test with SUA other applications, which worked fine, but this one makes probs. I am using Standard User Analyzer 1.0.1.700 (I tried in predictive mode and diagnose mode) on 32bit VISTA Ultimate (6.0.6000 Build 6000): When I exit after a certain step my testobject, I do not get a logfile by SUA: I just get the error from SUA: The log file does not appear to be well formed: Syntaxfehler: Fehlender ...Show All

  • Visual C++ read excel cell

    hi there, i try to read a excel cell value. and i don't know how. i can open the excel file but after that.... maybe you can help me. i try to read the value and show it in an edit field. i am using visual studio c++ 6.0 ; excel 2003 i included all excel.h classes. here is what i tried so far. greetings daniel void CAutoProjektDlg::OnGetvalue() { // Commonly used OLE variants. COleVariant covTrue((short)TRUE), covFalse((short)FALSE), covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR); _Application app; Workbooks books; _Workbook book; Worksheets sheets; _Worksheet sheet; Range range; Font font; Range cols; COleVariant Data; int Value=0; long cell; long *pcell = &ce ...Show All

  • Windows Forms NotifyIcon double image

    I am using the NotifyIcon class outside of a windows form. It works fine, but when I try to swap out the image, I get two images, the original and the new one...the original will go away after a second or two...but it is noticeable. Is there anything I can do to solve this double vision problem Here is a code snippet of what I am doing: NotifyIcon nti = new NotifyIcon(); nti.Icon = ((System.Drawing.Icon)(MainApp.Properties.Resources.services)); nti.Visible = true; // Here is the requested change. nti.Icon = ((System.Drawing.Icon)(MainApp.Properties.Resources.servicestopped)); advTHANKSance Hi OmegaMan, I set the interval of the timer to 1 sec, and use the following code to swap the icon image. private v ...Show All

  • SQL Server DB mirroring + load balancing

    Is it compatible to set up SQL DB mirroring on 2 different physical servers (High availbility + FULL transaction safety + Automatic failover with a third server as witness) and simultaneously set up network load balancing between these 2 servers (option with Windows Server 2003 Enterprise) If yes, which type of licenses do I need and how many (for SQL server 2005 and Windows Server 2003) with such a configuration - 4 physical servers in total : A, B, C and D - load balancing between A and B (same application) - load balancing between C and D (same application) - A hosts principal DB X, B hosts mirror of DB X - C hosts principal DB Y, D hosts mirror of DB Y - D is witness for A and B - B is ...Show All

©2008 Software Development Network