all groups > dotnet general > june 2005
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Compress Image
Posted by Edward at 6/30/2005 11:11:03 PM
Thanks to Bob Powel (http://www.bobpowell.net/onebit.htm) I'm able to
compress an image. However, this method takes a long time to compress an
image. Does anyone know a quicker way? (The images I have to compress are
already in black and white).
Code used:
Bitmap bmpOrig =
(System.Drawi... more >>
Sample Database projects
Posted by prabhu at 6/30/2005 10:14:01 PM
Hi all,
I am new to .net 2003 and learning fast. we are planning to do our
coming projects using .net 2003 and sqlserver 2000. but i feel the coding is
different when compared to vb. I am not getting any idea like how to start
with datbase programming. Pls help me to find some sample d... more >>
ebooks for vb.net 2003
Posted by prabhu at 6/30/2005 10:06:05 PM
Hi all,
For all these i am a vb programmer and now our company is planning to
go with vb.net and sqlserver 2000. Pls suggest me some good ebooks for
beginners and as an advanced programming for vb.net and sqlserver 2000
Thanks in advance....
... more >>
LNK 1104 error with glut32.lib
Posted by Mike at 6/30/2005 4:45:02 PM
I'm trying to recover MSVC.net to a new laptop to run an open source flight
simulation program and have suceeded in building the required plib and
simgear projects. I am nearing completion and have recieved the LNK 1104
error, "cannot find glut32.lib" file. when the file is actually located i... more >>
Keep an ADO Connection open
Posted by jabailo NO[at]SPAM texeme.com at 6/30/2005 12:33:07 PM
I created a web method to insert data on a DB2 database.
It runs well, except every time I call it, it opens and closes the ADO
connection.
I think it would run faster, since I send it hundreds of records, if I
could just keep a connection open at the point the web service starts up
an... more >>
Automatically 'Switch to code view' ?
Posted by jabailo NO[at]SPAM texeme.com at 6/30/2005 10:28:20 AM
For web services, is there a way to have VS.NET '03 automatically
'switch to code view' when clicking on a asmx file in the solution.... more >>
VS.NET 2003 and IIS
Posted by DougW2004 at 6/30/2005 10:21:06 AM
We have two (2) workstations and one (1) server.
All are running Windows 2000 Professional (not "Server").
Have NOT loaded Visual SourceSafe Server yet, but intend to.
Loaded VS.NET and IIS on the server.
(Note: I realize that I didn't have to install VS.NET *on* the server, but I
wanted the... more >>
VS.NET 2003 and IIS
Posted by Doug at 6/30/2005 10:02:02 AM
We have two (2) workstations and one (1) server.
All are running Windows 2000 Professional (not "Server").
Have NOT loaded Visual SourceSafe Server yet, but intend to.
Loaded VS.NET and IIS on the server.
(Note: I realize that I didn't have to install VS.NET *on* the server, but I
wanted the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can an event state be serialized
Posted by jabailo NO[at]SPAM texeme.com at 6/30/2005 8:56:01 AM
Suppose I have a windows service, with a FileWatcher class.
A file appears, and an event is raised -- but then the server is
rebooted or crashes.
When the server is rebooted, I want that event state to be where it was.
So, can an event be serialized?
And can it then be 're-raised' on... more >>
Can a web service be 'cached' ?
Posted by jabailo NO[at]SPAM texeme.com at 6/30/2005 8:19:54 AM
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.
What I notice is:
When the web service gets called, there seems to be a slowness and
potential... more >>
How to format individual cells or rows of a VB.NET DataGrid?
Posted by Richard at 6/30/2005 7:58:13 AM
I know that you can format a grid and its columns using DataGridTableStyle
and DataGridTextBoxColumn in VB.NET. But can you change the format of the
individual rows, or even cells, to something other than the default?
For instance, I have a datagrid displaying a list of products in stock. I ... more >>
CustomValidator problems.
Posted by jcpmeticulus at 6/30/2005 7:19:06 AM
Hi
I've spent the last day or so debugging a problem with a CustomValidator and
am now totally stumped! Basically I use a number of CustomValidator's on my
page, but have cut this down now to only 2. When the page is first loaded the
CustomValidator are made and the generated HTML contains ... more >>
Easy VB.Net Question
Posted by Stingray5678 at 6/30/2005 4:48:06 AM
How can you retrieve the exe name of the program?
... more >>
How to identify money datatype in ASP.Net
Posted by Sri at 6/30/2005 4:13:03 AM
In VB, to know the field type of a column stored in a recordset the command I
use is
If rsQuery.Fields(k).Type = adCurrency Then
How will I achieve the same in ASP.net. I could not find a currency data
type in asp.net and the type is idenfied as decimal.
I have two fields defined in... more >>
How to find the process id of excel application in ASP.Net
Posted by Sri at 6/30/2005 3:56:01 AM
I am writing an asp.net applicaition using VB coding.
In a function, I am opening an excel file with the following code,
Dim objExcel As Object
Dim objWorkBook As Object
objExcel = CreateObject("Excel.Application")
objWorkBook = objExcel.Workbooks.Open(targetfilename)
* targetfilename is... more >>
general strong name question
Posted by marcel NO[at]SPAM mbcode.de at 6/30/2005 12:33:52 AM
Hi,
I have written a component in c#. But when I recompile this component,
all other apps which includes my component can not start correctly:
An exception "System.IO.FileLoadExceptio" occurred. Only when I
compiled the app (with the new version of my component) it works. Can
it be because my c... more >>
Debug and break point problem - There is no source code available for the current location
Posted by aaj at 6/30/2005 12:00:00 AM
Hi all
I have written a small app on my machine that I have passed on to a
colleague for testing.
The problem is, as soon as he steps through in debug mode and reaches
try
{
conn.Open(); <- HERE
The error message 'There is no source code available for the current
location ' pops up... more >>
Help, cannot debug in visual studio.NET
Posted by CWeb NO[at]SPAM office at 6/30/2005 12:00:00 AM
Hi Guys,
I got into trouble again in debugging the web service developed before. Got the error message "Unable to start debugging on the
web server.", I have met this problem before and solved by information's on Microsoft support homepage. I suspect that this problem
occur again is due to ... more >>
Text Services Framework
Posted by Wencheng Magiya at 6/30/2005 12:00:00 AM
Hi,
Anybody know if there is a Text Services Framework sample in VB.NET or C#?
Thanks,
Wencheng
... more >>
Code Security Thoughts
Posted by Antony at 6/30/2005 12:00:00 AM
I am currently writing an application (VB.NET) and I was thinking about all
the hype that seems to be given to security and if I should pay it any
attention or not.
My first thought was, nah, no need to worry about security because my app
will not include WEB services, thus won't be hosted,... more >>
Resize DataGrid Control's columns - VB.NET
Posted by Tom Rahav at 6/30/2005 12:00:00 AM
Hi!
My question is if it's possible to adjust DataGrid control's columns' width
by code (runtime).
I have a DataGrid control that displays table from dataset that contains two
fields. The first one is just an ID, which is 4 digits long, while the other
field is a long text field. I don't w... more >>
Urgent
Posted by Yoshitha at 6/30/2005 12:00:00 AM
HI
Am trying to retrieve the cpuid of the system from web application and am
geting the followng exception can anybody tell me how to solve this problem
its very urgent for me
i got error in the follwoing line of code
Dim moc As ManagementObjectCollection = mc.GetInstances()
Exceptio... more >>
Unable to fire Timer1_Tick in Windows Service Application
Posted by Mustaq at 6/29/2005 7:24:02 PM
Hi
I am unable to get Timer1_Tick event in Windows Service Application inspite
of setting following things
Timer1.enabled = True
Timer1.interval = 1000
Let me know how to resolve
Thanks &
Regards,
Mustaq ... more >>
DCOM errors while running as domain user - scheduled task
Posted by David Olive at 6/29/2005 5:55:02 PM
Hi guys,
I'm having a bit of a problem getting a VB .NET console app to run happily
as a scheduled task. The app itself generates a bunch of word documents on a
file share on another server by reading from a template file and inserting
text at bookmark locations (with details pulled from a ... more >>
How to delete rows?
Posted by baylor at 6/29/2005 3:27:03 PM
i have a DataSet (TDS). It has 4 rows in it. i want to erase those. For the
life of me i can't figure out how
Option 1: foreach
foreach (DataRow row in dataSet.MY_TABLE.Rows) {
row.Delete();
}
This doesn't work. It erases the first row and then throws the exception
Someone Chang... more >>
VisualStudio - Localization Question
Posted by Anne DeBlois at 6/29/2005 1:53:38 PM
Hi,
I am about to order Visual Studio .NET. We work with the French Canadian
version of Windows XP Professional. I don't know exactly how it works, but I
have a question that may sound stupid, but I want to ask it anyway - it's
about localization and culture:
-->We want to develop an app... more >>
Multiple web farms sharing Machinekey
Posted by dgermano at 6/29/2005 12:37:07 PM
I need some info to make sure I avoid problems with my webfarms.
Currently I'm running 3 separate sites, each with their own webfarm of
2-3 webservers. All of these sites are using the same backend machine
for SessionState info.
I'm wondering what problems might pop up if I set the MachineKey... more >>
Value of an HTML Textbox not seen in .Net
Posted by CoreyMas at 6/29/2005 12:23:05 PM
Hello everyone,
Here is my situation
I created an HTML text box that contains a value that is calculated using
Javascript.
I expose this control so that .Net sees it, but when I go to retrieve the
value in .Net i do not get the calculated value, but the default value that I
set at 0
... more >>
Windows OS events
Posted by Microsoft News Server at 6/29/2005 8:59:32 AM
I know that it's possible to register with the OS to receive certain file
system events. Does anyone know if it's possible to receive an event when
the user changes the default printer setting? Thanks.
Jerry
... more >>
optimizing .net NTD application
Posted by sameer at 6/29/2005 8:49:05 AM
Hi All,
We had developed a .Net application which has the following environment
Uses the No touch deployment concept
Uses framework 1.1 on client and server machine,
Visual studio 2003,
Sql server 2000,
Deployed on a windows 2003 box.
Reporting is done using Crystal reports 10
A third p... more >>
Installed .Net Framework V2.0 but VS.Net still references V1.1
Posted by Scott Gunn at 6/29/2005 8:30:14 AM
Hi
I have not managed to install .net framework v2.0 but how can I use it?
VS.Net still references v1.1
Why?
... more >>
Creating/working with classes in .NET
Posted by John . at 6/29/2005 7:34:29 AM
As a newbie, can someone recommend a link/tutorial to help me understand
how to create Classes and how to integrate within a .NET app?
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Printing Crystal Reports in a Windows Forms App
Posted by Paul Daly (MCP) at 6/29/2005 6:01:02 AM
Hello,
I have an application that uses the version of CR.NET that came with VS.NET
2003. The CrystalReportViewer control prints the report fine when initiated
by the user on the form, but I have problems when I try to call PrintReport()
or PrintToPrinter(1, false, 1, 2).
Calling either ... more >>
How to cancel user-clicks in AxWebBrowser
Posted by OS at 6/29/2005 3:31:01 AM
Hi,
I am trying to present HTML in the AxWebBrowser control, but I want to
cancel the even of user-clicks, since I don't want to user to navigate any
further than the presented page. Any ideas?... more >>
Building all projects in solution
Posted by Stephen Ritchie at 6/29/2005 1:29:01 AM
At the moment we have in Solution Explorer 12 projects and using the
configuration manager we ahve all dependancies and build order set correctly.
The problem is that when we do >Debug>Start (F5) then all projects are again
built even though no change has occurred in most of them since the la... more >>
SendMessage(handle, WM_CHAR, VirtualKeys.VK_A, 0) does not trigger KeyDown...
Posted by Fred Heida at 6/29/2005 12:00:00 AM
Hi All,
maybe this is a sill question..but if i have TextBox and use the
SendMessage(..) to send
a character the control.. the KeyDown event is not triggered.... in would
need to check in the WndProc(...) of the WM_CHAR event...
Is there another way to send characters to the TextBox, when ... more >>
Crystal Report Viewer very slow (about 1 minute)
Posted by sleepyant at 6/29/2005 12:00:00 AM
Hi, I'm using VB .NET 2003. I have a form which only has a
CrystalReportViewer to view a report on screen. But every time I run then
project, the form is shown but the Report itself is very slow to show up
(about 1 minute). Is there any setting I can use to make it show faster? My
testing only g... more >>
Looking for a RegEx pattern
Posted by AWHK at 6/28/2005 11:30:29 PM
I have some address string like this:
101st Street 45J
45th Karamba Street 123
1st Street 45L
I would like to use RegEx to extract any digits from the string as long as
they are not at the start of the string. I have a pattern like this
(?!^\d+)\d+ which works fine on '1st St... more >>
Handle is not initialized.
Posted by Raj at 6/28/2005 3:28:04 PM
I have an asp.net application hosted on a IIS6.0. Randomly I get "Handle is
not initialized" error. But when I try the same page again, it works. Can
somebody tell me why this problem is trigged and why I am not able to
reproduce it. How can I fix this problem.
Thanks,
Raj... more >>
How to sync-up DataSet during multi-table update
Posted by PV at 6/28/2005 12:55:56 PM
When performing a parent-child table updates using DataAdapters, the
updates have to be performed in at least two passes. The deletes must
be done child first, then parent. Conversely, the inserts must be done
parent first, then child. This is generally accomplished by using
DataSet.GetChange... more >>
Obstruct the Developpers to Develop and Deploy a newer version
Posted by DraguVaso at 6/28/2005 12:35:55 PM
Hi,
I have a, maybe strange looking, question:
Is there any way to obstruct developpers to Develop and or Deploy a newer
version of a VB.NET-application?
Things should happen like this:
- Developpers develop the application
- The application is tested, and audited for the final release
- Th... more >>
1 solution or 2?
Posted by Richard L Rosenheim at 6/28/2005 12:02:29 PM
I'm writing an application and the corresponding web services. Am I better
off with having 2 solutions (1 for the app, 1 for the web services) or 1
solution (both app and web services as projects within the solution)?
Pros? Cons?
TIA,
Richard Rosenheim
... more >>
Randomly occuring error DAMAGE: after Normal block
Posted by Chucker at 6/28/2005 9:37:21 AM
Hi Folks,
I got an error that drives me crazy because it only occurs sometimes and I
can`t even reproduce it.
I got a __gc class here is it`s header:
#pragma once
#include "../empLib/empImg.h"
namespace empDll
{
public __gc struct Image {
int x;
int y;
int z;
float da... more >>
Licenses.licx file error
Posted by Todd Bright at 6/28/2005 9:01:08 AM
I'm getting an error building my app. The error is...
'Could not transform licenses file 'Licenses.licx' into a binary resource.
(1): error LC0004: Exception occured creating type
'System.ComponentModel.LicenseException'
This previously worked just fine. We have recently moved to a new ... more >>
Getting the Value of a DropDownList
Posted by John Smith at 6/28/2005 7:35:28 AM
I have a Repeater that is paginated, and I would like the user to
navigate to each page via a DropDownList. I have set the AutPostBack
attribute to true and written code that fires on the
OnSelectedIndexChange event. However, I am unable to retrieve the
value of the DropDownList after the Post... more >>
How to encode video file
Posted by Bishop at 6/28/2005 6:57:07 AM
Is there anything built into .NET for encoding a video file? If not, can
anyone suggest 3'rd party API?
I'm trying to save a series of pictures to a video file. It can be avi,
wmi, mpg, or any popular filetype.... more >>
rotate label 90 degrees
Posted by Joecx at 6/28/2005 5:41:06 AM
Hi
Is there anyway to rotate a label 90 degrees so that the letters in the
label are printing sideways? I need to do this for headers on skinny
columns. Thanks for any help you can offer!!!!!... more >>
is 128 bits the max?
Posted by P1ayboy at 6/28/2005 1:44:01 AM
I've written a script that uses bits to store permissions, however, once I go
over 128 bits I get an error:
System.OverflowException: Arithmetic operation resulted in an overflow.
Is this a limitation of the system?... more >>
GridView Exception: reentrant call to the SetCurrentCellAddressCore function
Posted by Martin B at 6/28/2005 12:00:00 AM
Hallo to everyone!
Problem:
--------
GridView Exception: reentrant call to the SetCurrentCellAddressCore function
System:
-------
WinXP Professional, english, .NET Framework 2.0 Beta Language C#
Simplified Architecture of my Porgram:
2 Forms:
--------
- MainForm
- DetailForm
2 ... more >>
Pong Network Comms
Posted by Josh at 6/28/2005 12:00:00 AM
Hi,
I'm looking to build a networked ( LAN ) version of Pong. Any quick
pointers on what libraries to use. Should I use Sockets ( whatever they
are) ?
... more >>
|